Files
linux/arch/um/drivers
Tiwei Bie 2d65fc13be um: vector: Reduce stack usage in vector_eth_configure()
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>
2025-06-25 09:28:17 +02:00
..
2023-05-10 00:21:30 +02:00
2023-05-10 00:21:30 +02:00
2023-12-08 12:02:38 +01:00
2023-12-08 12:02:38 +01:00
2024-07-03 12:24:25 +02:00
2021-02-12 21:38:52 +01:00
2022-09-19 23:10:07 +02:00
2024-09-12 20:16:42 +02:00
2025-02-12 23:40:55 +01:00
2024-07-03 12:24:25 +02:00