From b4a937788cead345f8f00419bd250d1d92b0290f Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 1 Oct 2025 11:54:47 -0400 Subject: Fix build warnings and errors on Linux 6.14 - Remove repetitive declarations of two `bus_type` structs. - Fix mmu.c to use an always-64-bit member for `parent_addr`. - Remove call to `page_mapcount_reset()` that isn't needed. - Correct `nvdebug_pd_page` documentation. - Disable missing prototype and missing declaration warnings. - Fix an improper type, and a missing type conversion. Tested build on Linux 6.14.0 (x86_64), 5.4.0 (x86_64), and 4.9.337 (aarch64). --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9d6d374..e7b160c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ obj-m += nvdebug.o nvdebug-objs = runlist_procfs.o device_info_procfs.o runlist.o mmu.o \ nvdebug_entry.o bus.o nvdebug_linux.o copy_topology_procfs.o -KBUILD_CFLAGS += -DGIT_HASH=\"$(shell git --git-dir=$(PWD)/.git rev-parse --short HEAD)\" +KBUILD_CFLAGS += -DGIT_HASH=\"$(shell git --git-dir=$(PWD)/.git rev-parse --short HEAD)\" \ + -Wno-missing-prototypes -Wno-missing-declarations # -mfentry above if not building due to mcount missing all: -- cgit v1.2.2