Hi Greg,
please apply commit 5c4e0a21fae8 ("string: uninline memcpy_and_pad") to v5.15.y to avoid the following build error seen with gcc 11.x.
Building m68k:allmodconfig ... failed -------------- Error log: In file included from include/linux/string.h:20, from include/linux/bitmap.h:10, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/slab.h:15, from drivers/nvme/target/discovery.c:7: In function 'memcpy_and_pad', inlined from 'nvmet_execute_disc_identify' at drivers/nvme/target/discovery.c:268:2: arch/m68k/include/asm/string.h:72:25: error: '__builtin_memcpy' reading 8 bytes from a region of size 7
Thanks, Guenter
On Fri, Nov 19, 2021 at 03:13:46AM -0800, Guenter Roeck wrote:
Hi Greg,
please apply commit 5c4e0a21fae8 ("string: uninline memcpy_and_pad") to v5.15.y to avoid the following build error seen with gcc 11.x.
Building m68k:allmodconfig ... failed
Error log: In file included from include/linux/string.h:20, from include/linux/bitmap.h:10, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/slab.h:15, from drivers/nvme/target/discovery.c:7: In function 'memcpy_and_pad', inlined from 'nvmet_execute_disc_identify' at drivers/nvme/target/discovery.c:268:2: arch/m68k/include/asm/string.h:72:25: error: '__builtin_memcpy' reading 8 bytes from a region of size 7
Now queued up, thanks.
greg k-h
linux-stable-mirror@lists.linaro.org