Merge tag 'linux-kselftest-4.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2018 05:24:28 +0000 (07:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2018 05:24:28 +0000 (07:24 +0200)
Pulled kselftest fixes from Shuah:
 "This Kselftest fixes update for 4.9-rc5 consists of:

  -- fixes to build failures
  -- fixes to add missing config files to increase test coverage
  -- fixes to cgroup test and a new cgroup test for memory.oom.group"

1  2 
Makefile

diff --combined Makefile
+++ b/Makefile
@@@ -2,7 -2,7 +2,7 @@@
  VERSION = 4
  PATCHLEVEL = 19
  SUBLEVEL = 0
 -EXTRAVERSION = -rc1
 +EXTRAVERSION = -rc4
  NAME = Merciless Moray
  
  # *DOCUMENTATION*
@@@ -299,19 -299,7 +299,7 @@@ KERNELRELEASE = $(shell cat include/con
  KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
  export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
  
- # SUBARCH tells the usermode build what the underlying arch is.  That is set
- # first, and if a usermode build is happening, the "ARCH=um" on the command
- # line overrides the setting of ARCH below.  If a native build is happening,
- # then ARCH is assigned, getting whatever value it gets normally, and
- # SUBARCH is subsequently ignored.
- SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
-                                 -e s/sun4u/sparc64/ \
-                                 -e s/arm.*/arm/ -e s/sa110/arm/ \
-                                 -e s/s390x/s390/ -e s/parisc64/parisc/ \
-                                 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
-                                 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \
-                                 -e s/riscv.*/riscv/)
+ include scripts/subarch.include
  
  # Cross compiling and selecting different set of gcc/bin-utils
  # ---------------------------------------------------------------------------
@@@ -616,11 -604,6 +604,11 @@@ CFLAGS_GCOV      := -fprofile-arcs -ftest-co
        $(call cc-disable-warning,maybe-uninitialized,)
  export CFLAGS_GCOV
  
 +# The arch Makefiles can override CC_FLAGS_FTRACE. We may also append it later.
 +ifdef CONFIG_FUNCTION_TRACER
 +  CC_FLAGS_FTRACE := -pg
 +endif
 +
  # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
  # values of the respective KBUILD_* variables
  ARCH_CPPFLAGS :=
@@@ -760,6 -743,9 +748,6 @@@ KBUILD_CFLAGS      += $(call cc-option, -fe
  endif
  
  ifdef CONFIG_FUNCTION_TRACER
 -ifndef CC_FLAGS_FTRACE
 -CC_FLAGS_FTRACE := -pg
 -endif
  ifdef CONFIG_FTRACE_MCOUNT_RECORD
    # gcc 5 supports generating the mcount tables directly
    ifeq ($(call cc-option-yn,-mrecord-mcount),y)
@@@ -809,9 -795,6 +797,9 @@@ KBUILD_CFLAGS += $(call cc-option,-Wdec
  # disable pointer signed / unsigned warnings in gcc 4.0
  KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
  
 +# disable stringop warnings in gcc 8+
 +KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
 +
  # disable invalid "can't wrap" optimizations for signed / pointers
  KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)