From 1a635bb0ea7096146f57408f9348f0372dc0b204 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 21 May 2024 07:38:31 +0100 Subject: [PATCH] conftest: Fix tests for Linux v6.10 Some of the conftest tests are no longer working with the mainline kernel and this is causing various build failures for drivers. Upstream commit a3b00f10da80 ("objpool: enable inlining objpool_push() and objpool_pop() operations") inlined some code that causes build error to occur when the tests are built with 'Werror=address-of-packed-member'. Upstream commit 6f303d60534c ("gcc-9: silence 'address-of-packed-member' warning") disables the option 'address-of-packed-member' for the kernel already and so fix these new build failures by disabling this option for the conftest tests. Bug 4593750 Change-Id: I37af97079bb7734fcd5bf10384b1afc071613594 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3142214 Reviewed-by: Brad Griffis GVS: buildbot_gerritrpt --- scripts/conftest/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/conftest/Makefile b/scripts/conftest/Makefile index 492c30d8..b186fb31 100644 --- a/scripts/conftest/Makefile +++ b/scripts/conftest/Makefile @@ -43,7 +43,7 @@ NV_CONFTEST_CMD := /bin/sh $(NV_CONFTEST_SCRIPT) \ NV_CFLAGS_FROM_CONFTEST := $(shell $(NV_CONFTEST_CMD) build_cflags) -NV_CONFTEST_CFLAGS = $(NV_CFLAGS_FROM_CONFTEST) $(EXTRA_CFLAGS) -fno-pie -Werror +NV_CONFTEST_CFLAGS = $(NV_CFLAGS_FROM_CONFTEST) $(EXTRA_CFLAGS) -fno-pie -Werror -Wno-address-of-packed-member NV_CONFTEST_COMPILE_TEST_HEADERS := $(obj)/conftest/macros.h NV_CONFTEST_COMPILE_TEST_HEADERS += $(obj)/conftest/functions.h