I am getting this error message when using nxstyle to check a header file:

boards/arm/sama5/sama5d2-xult/src/sama5d2-xult.h:419:3: error: Invalid
section for this file type

There is a Public Functions header in this file, and then after it there
are declarations of public functions. Should I disregard this error? Or
should there be no public function declarations here?

The error is correct.  Check the coding standard.  "Public Functions" is permitted only in C files, not header files.  Header files may have "Public Function Prototypes" but not public functions.

You should not disregard it, you should fix it.  Change Public Functions to Public Function Prototypes.

This is all covered in the Appendix to the coding standard.




Reply via email to