Patch "selftests: vm: Do not override definition of ARCH" has been added to the 5.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests: vm: Do not override definition of ARCH

to the 5.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-vm-do-not-override-definition-of-arch.patch
and it can be found in the queue-5.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 10d177fb31519755f5c6a82f4a18404e925299d4
Author: Sandipan Das <sandipan@xxxxxxxxxxxxx>
Date:   Thu Jan 30 12:31:18 2020 +0530

    selftests: vm: Do not override definition of ARCH
    
    [ Upstream commit 24c3f063c57b2a8ae21b259bcfa7690e2eb56dd9 ]
    
    Independent builds of the vm selftests is currently broken because
    commit 7549b3364201 ("selftests: vm: Build/Run 64bit tests only on
    64bit arch") overrides the value of ARCH with the machine name from
    uname. This does not always match the architecture names used for
    tasks like header installation.
    
    E.g. for building tests on powerpc64, we need ARCH=powerpc
    and not ARCH=ppc64 or ARCH=ppc64le. Otherwise, the build
    fails as shown below.
    
      $ uname -m
      ppc64le
    
      $ make -C tools/testing/selftests/vm
      make: Entering directory '/home/sandipan/linux/tools/testing/selftests/vm'
      make --no-builtin-rules ARCH=ppc64le -C ../../../.. headers_install
      make[1]: Entering directory '/home/sandipan/linux'
      Makefile:653: arch/ppc64le/Makefile: No such file or directory
      make[1]: *** No rule to make target 'arch/ppc64le/Makefile'.  Stop.
      make[1]: Leaving directory '/home/sandipan/linux'
      ../lib.mk:50: recipe for target 'khdr' failed
      make: *** [khdr] Error 2
      make: Leaving directory '/home/sandipan/linux/tools/testing/selftests/vm'
    
    Fixes: 7549b3364201 ("selftests: vm: Build/Run 64bit tests only on 64bit arch")
    Signed-off-by: Sandipan Das <sandipan@xxxxxxxxxxxxx>
    Tested-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
    Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile
index 7f9a8a8c31da9..3f2e2f0ccbc9a 100644
--- a/tools/testing/selftests/vm/Makefile
+++ b/tools/testing/selftests/vm/Makefile
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 # Makefile for vm selftests
 uname_M := $(shell uname -m 2>/dev/null || echo not)
-ARCH ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/')
+MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/')
 
 CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
 LDLIBS = -lrt
@@ -19,7 +19,7 @@ TEST_GEN_FILES += thuge-gen
 TEST_GEN_FILES += transhuge-stress
 TEST_GEN_FILES += userfaultfd
 
-ifneq (,$(filter $(ARCH),arm64 ia64 mips64 parisc64 ppc64 riscv64 s390x sh64 sparc64 x86_64))
+ifneq (,$(filter $(MACHINE),arm64 ia64 mips64 parisc64 ppc64 riscv64 s390x sh64 sparc64 x86_64))
 TEST_GEN_FILES += va_128TBswitch
 TEST_GEN_FILES += virtual_address_range
 endif



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux