On Wed, Aug 2, 2023, at 01:21, Bart Van Assche wrote: > gcc compilers before version 10 cannot do constant-folding for sub-byte > bitfields. This makes the compiler layout tests fail. Hence skip the > layout checks for gcc 9 and before. > > Cc: Arnd Bergmann <arnd@xxxxxxxx> > Cc: Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> > Cc: Nathan Chancellor <nathan@xxxxxxxxxx> > Reported-by: Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> > Suggested-by: Arnd Bergmann <arnd@xxxxxxxx> > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> Looks good to me, I gave it a quick spin with all versions from gcc-6 through gcc-10 to make sure this works for all of them. Tested-by: Arnd Bergmann <arnd@xxxxxxxx>