Kselftest fixes for Linux 6.10-rc1
Shuah Khan
maintainerHi Linus,
Please pull this urgent kselftest fixes update for Linux 6.10-rc1.
This kselftest fixes update for Linux 6.10-rc1 consists of reverts framework change to add D_GNU_SOURCE to KHDR_INCLUDES to Makefile, lib.mk, and kselftest_harness.h and follow-on changes to cgroup and sgx test as they are causing build failures and warnings.
These three reverts have bee in next for a few days prior to a rebase before generating the pull request.
diff for pull request is attached.
thanks,
-- Shuah
----------------------------------------------------------------
The following changes since commit ea5f6ad9ad9645733b72ab53a98e719b460d36a6:
Merge tag 'platform-drivers-x86-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 (2024-05-16 09:14:50 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-next-6.10-rc1-fixes
for you to fetch changes up to a97853f25b06f71c23b2d7a59fbd40f3f42d55ac:
Revert "selftests/cgroup: Drop define _GNU_SOURCE" (2024-05-20 09:00:15 -0600)
----------------------------------------------------------------
linux_kselftest-next-6.10-rc1-fixes
This kselftest fixes update for Linux 6.10-rc1 consists of reverts framework change to add D_GNU_SOURCE to KHDR_INCLUDES to Makefile, lib.mk, and kselftest_harness.h and follow-on changes to cgroup and sgx test as they are causing build failures and warnings.
----------------------------------------------------------------
Shuah Khan (3):
Revert "selftests: Compile kselftest headers with -D_GNU_SOURCE" Revert "selftests/sgx: Include KHDR_INCLUDES in Makefile" Revert "selftests/cgroup: Drop define _GNU_SOURCE"
tools/testing/selftests/Makefile | 4 ++-- tools/testing/selftests/cgroup/cgroup_util.c | 3 +++ tools/testing/selftests/cgroup/test_core.c | 2 ++ tools/testing/selftests/cgroup/test_cpu.c | 2 ++ tools/testing/selftests/cgroup/test_hugetlb_memcg.c | 2 ++ tools/testing/selftests/cgroup/test_kmem.c | 2 ++ tools/testing/selftests/cgroup/test_memcontrol.c | 2 ++ tools/testing/selftests/cgroup/test_zswap.c | 2 ++ tools/testing/selftests/kselftest_harness.h | 2 +- tools/testing/selftests/lib.mk | 2 +- tools/testing/selftests/sgx/Makefile | 2 +- tools/testing/selftests/sgx/sigstruct.c | 1 + 12 files changed, 21 insertions(+), 5 deletions(-)
----------------------------------------------------------------
tools/testing/selftests/Makefile +2 -2
@@ -170,11 +170,11 @@ ifneq ($(KBUILD_OUTPUT),) # $(realpath ...) resolves symlinks abs_objtree := $(realpath $(abs_objtree)) BUILD := $(abs_objtree)/kselftest - KHDR_INCLUDES := -D_GNU_SOURCE -isystem ${abs_objtree}/usr/include + KHDR_INCLUDES := -isystem ${abs_objtree}/usr/include else BUILD := $(CURDIR) abs_srctree := $(shell cd $(top_srcdir) && pwd) - KHDR_INCLUDES := -D_GNU_SOURCE -isystem ${abs_srctree}/usr/include + KHDR_INCLUDES := -isystem ${abs_srctree}/usr/include DEFAULT_INSTALL_HDR_PATH := 1 endif
tools/testing/selftests/cgroup/cgroup_util.c +3 -0
@@ -1,4 +1,7 @@/* SPDX-License-Identifier: GPL-2.0 */ + +#define _GNU_SOURCE +#include <errno.h> #include <fcntl.h> #include <linux/limits.h>
tools/testing/selftests/cgroup/test_core.c +2 -0
@@ -1,4 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ + +#define _GNU_SOURCE#include <linux/limits.h> #include <linux/sched.h> #include <sys/types.h>
tools/testing/selftests/cgroup/test_cpu.c +2 -0
@@ -1,4 +1,6 @@// SPDX-License-Identifier: GPL-2.0 + +#define _GNU_SOURCE#include <linux/limits.h> #include <sys/sysinfo.h> #include <sys/wait.h>
tools/testing/selftests/cgroup/test_hugetlb_memcg.c +2 -0
@@ -1,4 +1,6 @@// SPDX-License-Identifier: GPL-2.0 +#define _GNU_SOURCE +#include <linux/limits.h> #include <sys/mman.h> #include <stdio.h>
tools/testing/selftests/cgroup/test_kmem.c +2 -0
@@ -1,4 +1,6 @@// SPDX-License-Identifier: GPL-2.0 +#define _GNU_SOURCE +#include <linux/limits.h> #include <fcntl.h> #include <stdio.h>
tools/testing/selftests/cgroup/test_memcontrol.c +2 -0
@@ -1,4 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ +#define _GNU_SOURCE +#include <linux/limits.h> #include <linux/oom.h> #include <fcntl.h>
tools/testing/selftests/cgroup/test_zswap.c +2 -0
@@ -1,4 +1,6 @@// SPDX-License-Identifier: GPL-2.0 +#define _GNU_SOURCE +#include <linux/limits.h> #include <unistd.h> #include <stdio.h>
tools/testing/selftests/kselftest_harness.h +1 -1
@@ -51,7 +51,7 @@#define __KSELFTEST_HARNESS_H#ifndef _GNU_SOURCE -static_assert (0 ,"kselftest harness requires _GNU_SOURCE to be defined" ); +#define _GNU_SOURCE#endif #include <asm/types.h> #include <ctype.h>
tools/testing/selftests/lib.mk +1 -1
@@ -67,7 +67,7 @@ MAKEFLAGS += --no-print-directory endif ifeq ($(KHDR_INCLUDES),) -KHDR_INCLUDES := -D_GNU_SOURCE -isystem $(top_srcdir)/usr/include +KHDR_INCLUDES := -isystem $(top_srcdir)/usr/include endif # The following are built by lib.mk common compile rules.
tools/testing/selftests/sgx/Makefile +1 -1
@@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy endif INCLUDES := -I$(top_srcdir)/tools/include -HOST_CFLAGS := -Wall -Werror $(KHDR_INCLUDES) -g $(INCLUDES) -fPIC +HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC HOST_LDFLAGS := -z noexecstack -lcrypto ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ -fno-stack-protector -mrdrnd $(INCLUDES)
tools/testing/selftests/sgx/sigstruct.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2016-20 Intel Corporation. */ +#define _GNU_SOURCE#include <assert.h> #include <getopt.h> #include <stdbool.h>
The pull request you sent on Mon, 20 May 2024 11:34:03 -0600:
The pull request you sent on Mon, 20 May 2024 11:34:03 -0600:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftesttags/linux_kselftest-next-6.10-rc1-fixes
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/70ec81c2e2b4005465ad0d042e90b36087c36104
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html