linux-yocto/arch/um
Tiwei Bie 46ec762e19 um: vector: Reduce stack usage in vector_eth_configure()
[ Upstream commit 2d65fc13be85c336c56af7077f08ccd3a3a15a4a ]

When compiling with clang (19.1.7), initializing *vp using a compound
literal may result in excessive stack usage. Fix it by initializing the
required fields of *vp individually.

Without this patch:

$ objdump -d arch/um/drivers/vector_kern.o | ./scripts/checkstack.pl x86_64 0
...
0x0000000000000540 vector_eth_configure [vector_kern.o]:1472
...

With this patch:

$ objdump -d arch/um/drivers/vector_kern.o | ./scripts/checkstack.pl x86_64 0
...
0x0000000000000540 vector_eth_configure [vector_kern.o]:208
...

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506221017.WtB7Usua-lkp@intel.com/
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250623110829.314864-1-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-17 18:32:13 +02:00
..
configs um: Fix hostaudio build errors 2023-09-13 09:42:58 +02:00
drivers um: vector: Reduce stack usage in vector_eth_configure() 2025-07-17 18:32:13 +02:00
include um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h 2025-07-06 10:57:55 +02:00
kernel um: use proper care when taking mmap lock during segfault 2025-07-06 10:57:55 +02:00
os-Linux um: remove copy_from_kernel_nofault_allowed 2025-04-10 14:33:36 +02:00
scripts
.gitignore
Kbuild
Kconfig um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:47 +02:00
Kconfig.debug
Makefile um: let 'make clean' properly clean underlying SUBARCH as well 2025-06-04 14:40:26 +02:00
Makefile-os-Linux
Makefile-skas