linux-yocto/arch/um/drivers
Tiwei Bie 825088c903 um: vector: Reduce stack usage in vector_eth_configure()
[ Upstream commit 2d65fc13be ]

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:35:20 +02:00
..
chan_kern.c
chan_user.c
chan_user.h
chan.h um: remove unused reactivate_chan() declaration 2022-09-19 23:02:21 +02:00
cow_sys.h
cow_user.c
cow.h
daemon_kern.c
daemon_user.c
daemon.h
fd.c
harddog_kern.c um: harddog: fix modular build 2023-05-10 00:21:30 +02:00
harddog_user_exp.c um: harddog: fix modular build 2023-05-10 00:21:30 +02:00
harddog_user.c um: harddog: fix modular build 2023-05-10 00:21:30 +02:00
harddog.h um: harddog: fix modular build 2023-05-10 00:21:30 +02:00
hostaudio_kern.c uml: audio: fix -Wmissing-variable-declarations 2023-08-26 22:43:42 +02:00
Kconfig um: Fix hostaudio build errors 2023-08-19 23:30:22 +02:00
line.c um: line: always fill *error_out in setup_one_line() 2024-09-12 11:11:35 +02:00
line.h tty: make tty_operations::write()'s count size_t 2023-08-11 21:12:46 +02:00
Makefile um: Fix hostaudio build errors 2023-08-19 23:30:22 +02:00
mconsole_kern.c um: Refactor deprecated strncpy to memcpy 2023-08-26 22:48:38 +02:00
mconsole_kern.h
mconsole_user.c
mconsole.h
mmapper_kern.c um: mmaper: add __exit annotations to module exit funcs 2022-09-19 23:01:50 +02:00
net_kern.c um: net: Do not use drvdata in release 2024-12-09 10:32:49 +01:00
net_user.c
null.c
pcap_kern.c um: Avoid pcap multiple definition errors 2023-02-13 10:13:48 +01:00
pcap_user.c
pcap_user.h
port_kern.c um: port_kern: fix -Wmissing-variable-declarations 2023-08-26 22:44:37 +02:00
port_user.c
port.h
pty.c
random.c hwrng: core - treat default_quality as a maximum and default to 1024 2022-11-18 16:59:34 +08:00
rtc_kern.c
rtc_user.c
rtc.h
slip_common.c
slip_common.h
slip_kern.c
slip_user.c
slip.h
slirp_kern.c um: fix 3 instances of -Wmissing-prototypes 2023-08-26 22:45:05 +02:00
slirp_user.c
slirp.h
ssl.c um: Do not initialise statics to 0. 2022-09-19 23:10:07 +02:00
stderr_console.c
stdio_console.c um: Do not initialise statics to 0. 2022-09-19 23:10:07 +02:00
stdio_console.h
tty.c
ubd_kern.c um: ubd: Do not use drvdata in release 2024-12-09 10:32:49 +01:00
ubd_user.c um: ubd: Add missing error check in start_io_thread() 2025-07-06 11:00:12 +02:00
ubd.h
umcast_kern.c
umcast_user.c
umcast.h
vde_kern.c
vde_user.c
vde.h
vector_kern.c um: vector: Reduce stack usage in vector_eth_configure() 2025-07-17 18:35:20 +02:00
vector_kern.h
vector_transports.c
vector_user.c um: vector: refactor deprecated strncpy 2023-08-26 22:42:50 +02:00
vector_user.h uml: vector: Remove unused definitions VECTOR_{WRITE,HEADERS} 2023-02-13 10:14:32 +01:00
vhost_user.h
virt-pci.c um: virt-pci: fix platform map offset 2024-01-25 15:35:50 -08:00
virtio_uml.c um: virtio_uml: move device breaking into workqueue 2023-02-13 10:14:32 +01:00
xterm_kern.c um: fix 3 instances of -Wmissing-prototypes 2023-08-26 22:45:05 +02:00
xterm.c
xterm.h