Patch "kbuild: fix -Wimplicit-function-declaration in license_is_gpl_compatible" has been added to the 6.0-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: fix -Wimplicit-function-declaration in license_is_gpl_compatible

to the 6.0-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-fix-wimplicit-function-declaration-in-license.patch
and it can be found in the queue-6.0 subdirectory.

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



commit ef268e57b665da9aaed9278c6a1e3aad17d9659c
Author: Sam James <sam@xxxxxxxxxx>
Date:   Wed Nov 16 18:26:34 2022 +0000

    kbuild: fix -Wimplicit-function-declaration in license_is_gpl_compatible
    
    [ Upstream commit 50c697215a8cc22f0e58c88f06f2716c05a26e85 ]
    
    Add missing <linux/string.h> include for strcmp.
    
    Clang 16 makes -Wimplicit-function-declaration an error by default.
    Unfortunately, out of tree modules may use this in configure scripts,
    which means failure might cause silent miscompilation or misconfiguration.
    
    For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2],
    or the (new) c-std-porting mailing list [3].
    
    [0] https://lwn.net/Articles/913505/
    [1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
    [2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
    [3] hosted at lists.linux.dev.
    
    [akpm@xxxxxxxxxxxxxxxxxxxx: remember "linux/"]
    Link: https://lkml.kernel.org/r/20221116182634.2823136-1-sam@xxxxxxxxxx
    Signed-off-by: Sam James <sam@xxxxxxxxxx>
    Cc: <stable@xxxxxxxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/license.h b/include/linux/license.h
index 7cce390f120b..ad937f57f2cb 100644
--- a/include/linux/license.h
+++ b/include/linux/license.h
@@ -2,6 +2,8 @@
 #ifndef __LICENSE_H
 #define __LICENSE_H
 
+#include <linux/string.h>
+
 static inline int license_is_gpl_compatible(const char *license)
 {
 	return (strcmp(license, "GPL") == 0



[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