[PATCH 1/4] um: Make the definition of cpu_data more compatible

2023-01-12 Thread Peter Foley
/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2157:16: note: in expansion of macro ‘cpu_data’ 2157 | return cpu_data(first_cpu_of_numa_node).apicid; Signed-off-by: Peter Foley --- arch/um/include/asm/processor-generic.h | 2 +- arch/um/kernel/um_arch.c| 2 +- 2 files changed

[PATCH 3/4] um: Prevent building modules incompatible with MODVERSIONS

2023-01-12 Thread Peter Foley
The manual ld invocation in arch/um/drivers doesn't play nicely with genksyms. Given the problematic modules are deprecated anyway, just prevent building them when using MODVERSIONS. e.g. MODPOST Module.symvers arch/um/drivers/.pcap.o.cmd: No such file or directory --- arch/um/drivers/Kconfig |

[PATCH 4/4] um: Use CFLAGS_vmlinux

2023-01-12 Thread Peter Foley
link-vmlinux.sh doesn't use LDFLAGS_vmlinux when linking the kernel for UML. Move the LDFLAGS_EXESTACK options into CFLAGS_vmlinux so they're actually respected. e.g. /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: warning: .tmp_vmlinux.kallsyms3.o: missing

[PATCH 0/4] um: Various build fixes for allyesconfig

2023-01-12 Thread Peter Foley
Fix some build failures I ran across when trying to build an allyesconfig kernel for ARCH=um. To: Richard Weinberger To: Anton Ivanov To: Johannes Berg Cc: linux-um@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Peter Foley --- Peter Foley (4): um: Make

[PATCH 2/4] um: Avoid pcap multiple definition errors

2023-01-12 Thread Peter Foley
Change the function name in pcap_kern to avoid conflicting with libpcap.a. e.g. ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64/libpcap.a(pcap.o): in function `pcap_init': (.text+0x7f0): multiple definition of `pcap_init'; arch/um/drivers/pcap_kern.o:pcap_kern.c:(.text.unlikely+0x0):

[PATCH] um: put power options in a menu

2023-01-13 Thread Peter Foley
Because having them all dumped at top-level is a bit messy. Signed-off-by: Peter Foley --- arch/um/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/um/Kconfig b/arch/um/Kconfig index ad4ff3b0e91e..65bc4c5f2e64 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -242,4

[PATCH] um: Support LTO

2023-01-13 Thread Peter Foley
Only a handful of changes are necessary to get it to work. Signed-off-by: Peter Foley --- arch/um/Kconfig | 2 ++ arch/um/Makefile | 2 +- arch/x86/um/vdso/Makefile | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/um/Kconfig b/arch/um/Kconfig index