[Linux-kernel-mentees] GCC section alignment, and GCC-4.9 being a weird one

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Wed Oct 21 19:27:15 UTC 2020


On Wed, Oct 21, 2020 at 8:35 PM Joe Perches <joe at perches.com> wrote:
>
> Perhaps something to add as a generic test in checkpatch.

Agreed! It would be nice to check all of them. Even checking for
`attribute` and `__attribute__` could be potentially reasonable (i.e.
so that people are reminded to consider adding whatever attributes
they need into `compiler_attributes.h`), although perhaps too
annoying/noisy for some (e.g. for `arch/*` devs...).

Cheers,
Miguel


More information about the Linux-kernel-mentees mailing list