From c1e1690f629d2fc5c99fbbb1fd81856b02d3cc7d Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Sun, 8 Apr 2018 18:55:09 -0400 Subject: [PATCH] linux: Hide test warnings from 4.16+ kernels --- .../linux/kernel/common-config.nix | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 5fbd9955c2a3..2eb6b09b5994 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -32,7 +32,6 @@ with stdenv.lib; # Debugging. DEBUG_KERNEL y DYNAMIC_DEBUG y - BACKTRACE_SELF_TEST n DEBUG_DEVRES n DEBUG_STACK_USAGE n DEBUG_STACKOVERFLOW n @@ -640,43 +639,46 @@ with stdenv.lib; # This menu disables all/most of them on >= 4.16 RUNTIME_TESTING_MENU? n # For older kernels, painstakingly disable each symbol. - ARM_KPROBES_TEST? n - ASYNC_RAID6_TEST? n - ATOMIC64_SELFTEST? n - BACKTRACE_SELF_TEST? n + ${optionalString (versionOlder version "4.16") '' + ARM_KPROBES_TEST? n + ASYNC_RAID6_TEST? n + ATOMIC64_SELFTEST? n + BACKTRACE_SELF_TEST? n + INTERVAL_TREE_TEST? n + PERCPU_TEST? n + RBTREE_TEST? n + TEST_BITMAP? n + TEST_BPF? n + TEST_FIRMWARE? n + TEST_HASH? n + TEST_HEXDUMP? n + TEST_KMOD? n + TEST_KSTRTOX? n + TEST_LIST_SORT? n + TEST_LKM? n + TEST_PARMAN? n + TEST_PRINTF? n + TEST_RHASHTABLE? n + TEST_SORT? n + TEST_STATIC_KEYS? n + TEST_STRING_HELPERS? n + TEST_UDELAY? n + TEST_USER_COPY? n + TEST_UUID? n + ''} + CRC32_SELFTEST? n CRYPTO_TEST? n DRM_DEBUG_MM_SELFTEST? n EFI_TEST? n GLOB_SELFTEST? n - INTERVAL_TREE_TEST? n LNET_SELFTEST? n LOCK_TORTURE_TEST? n MTD_TESTS? n NOTIFIER_ERROR_INJECTION? n - PERCPU_TEST? n - RBTREE_TEST? n RCU_PERF_TEST? n RCU_TORTURE_TEST? n TEST_ASYNC_DRIVER_PROBE? n - TEST_BITMAP? n - TEST_BPF? n - TEST_FIRMWARE? n - TEST_HASH? n - TEST_HEXDUMP? n - TEST_KMOD? n - TEST_KSTRTOX? n - TEST_LIST_SORT? n - TEST_LKM? n - TEST_PARMAN? n - TEST_PRINTF? n - TEST_RHASHTABLE? n - TEST_SORT? n - TEST_STATIC_KEYS? n - TEST_STRING_HELPERS? n - TEST_UDELAY? n - TEST_USER_COPY? n - TEST_UUID? n WW_MUTEX_SELFTEST? n XZ_DEC_TEST? n