Here are the supported sections:
https://github.com/apache/incubator-nuttx/blob/master/tools/nxstyle.c#L131
(There is an "s" too many in what I wrote above, it's "Public Function
Prototypes")

On Mon, Apr 27, 2020 at 7:20 PM Abdelatif Guettouche
<abdelatif.guettou...@gmail.com> wrote:
>
> > (1) arch/arm/include/stm32/stm32f40xxx_irq.h:361:3: error: Invalid
> > section for this file type
>
> For a header file the section "Public Functions" should not exist,
> it's actually "Public Functions Prototypes"
>
> > (2) arch/arm/include/stm32/irq.h:81:3: warning: #include outside of
> > 'Included Files' section
>
> I think you are referring to this
> https://github.com/apache/incubator-nuttx/issues/606
>
>
> On Mon, Apr 27, 2020 at 6:20 PM Nathan Hartman <hartman.nat...@gmail.com> 
> wrote:
> >
> > I am not sure what to do about the following nxstyle complaints:
> >
> > (1) arch/arm/include/stm32/stm32f40xxx_irq.h:361:3: error: Invalid
> > section for this file type
> >
> > Should I just remove the section? What to do with the unused
> > __ASSEMBLY__, __cplusplus, and extern "C" stuff?
> >
> > (2) arch/arm/include/stm32/irq.h:81:3: warning: #include outside of
> > 'Included Files' section
> >
> > This error appears once for each #include. The includes are
> > conditioned upon defines that appear earlier in the file, thus they
> > can't be moved to the correct section; neither can the defines be
> > moved below. This error is reported for other irq.h files as well,
> > such as for stm32h7.
> >
> > Thanks,
> > Nathan

Reply via email to