Patch "kbuild: dummy-tools: fix inverted tests for gcc" has been added to the 5.11-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

    kbuild: dummy-tools: fix inverted tests for gcc

to the 5.11-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:
     kbuild-dummy-tools-fix-inverted-tests-for-gcc.patch
and it can be found in the queue-5.11 subdirectory.

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



commit 902d23b3eafe8d25b7816071df3d2ed2270973fc
Author: Jiri Slaby <jslaby@xxxxxxx>
Date:   Wed Mar 3 11:43:14 2021 +0100

    kbuild: dummy-tools: fix inverted tests for gcc
    
    [ Upstream commit b3d9fc1436808a4ef9927e558b3415e728e710c5 ]
    
    There is a test in Kconfig which takes inverted value of a compiler
    check:
    * config CC_HAS_INT128
            def_bool !$(cc-option,$(m64-flag) -D__SIZEOF_INT128__=0)
    
    This results in CC_HAS_INT128 not being in super-config generated by
    dummy-tools. So take this into account in the gcc script.
    
    Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
index 5c113cad5601..0d0589cf8184 100755
--- a/scripts/dummy-tools/gcc
+++ b/scripts/dummy-tools/gcc
@@ -85,3 +85,8 @@ if arg_contain -print-file-name=plugin "$@"; then
 	echo $plugin_dir
 	exit 0
 fi
+
+# inverted return value
+if arg_contain -D__SIZEOF_INT128__=0 "$@"; then
+	exit 1
+fi



[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