On Wed, 2 Aug 2023 at 12:18, Arnd Bergmann <arnd@xxxxxxxx> wrote: > > 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> Would it be a good idea to provide a link to the original report ? Link: https://lore.kernel.org/linux-scsi/CA+G9fYur8UJoUyTLJFVEJPh-15TJ7kbdD2q8xVz8a3fLjkxxVw@xxxxxxxxxxxxxx/ > > 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> -- Linaro LKFT https://lkft.linaro.org