Patch "modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o" has been added to the 6.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

    modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o

to the 6.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:
     modpost-do-not-warn-about-missing-module_description.patch
and it can be found in the queue-6.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 a918c813fef3d9d046174a64508226334be7b3c7
Author: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Date:   Fri Jun 7 03:36:12 2024 +0900

    modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o
    
    [ Upstream commit 9185afeac2a3dcce8300a5684291a43c2838cfd6 ]
    
    Building with W=1 incorrectly emits the following warning:
    
      WARNING: modpost: missing MODULE_DESCRIPTION() in vmlinux.o
    
    This check should apply only to modules.
    
    Fixes: 1fffe7a34c89 ("script: modpost: emit a warning when the description is missing")
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 269bd79bcd9ad..828d5cc367169 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1684,10 +1684,11 @@ static void read_symbols(const char *modname)
 			namespace = get_next_modinfo(&info, "import_ns",
 						     namespace);
 		}
+
+		if (extra_warn && !get_modinfo(&info, "description"))
+			warn("missing MODULE_DESCRIPTION() in %s\n", modname);
 	}
 
-	if (extra_warn && !get_modinfo(&info, "description"))
-		warn("missing MODULE_DESCRIPTION() in %s\n", modname);
 	for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
 		symname = remove_dot(info.strtab + sym->st_name);
 




[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