]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc: add missing MODULE_DESCRIPTION() macros
authorJeff Johnson <quic_jjohnson@quicinc.com>
Sat, 15 Jun 2024 17:06:18 +0000 (10:06 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2024 12:39:20 +0000 (22:39 +1000)
With ARCH=powerpc, make allmodconfig && make W=1 C=1 reports:
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/kernel/rtas_flash.o
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/sysdev/rtc_cmos_setup.o
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/platforms/pseries/papr_scm.o
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/platforms/cell/spufs/spufs.o
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/platforms/cell/cbe_thermal.o
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/platforms/cell/cpufreq_spudemand.o
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/powerpc/platforms/cell/cbe_powerbutton.o

Add the missing invocation of the MODULE_DESCRIPTION() macro to all
files which have a MODULE_LICENSE().

This includes 85xx/t1042rdb_diu.c and chrp/nvram.c which, although
they did not produce a warning with the powerpc allmodconfig
configuration, may cause this warning with other configurations.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240615-md-powerpc-arch-powerpc-v1-1-ba4956bea47a@quicinc.com
arch/powerpc/kernel/rtas_flash.c
arch/powerpc/platforms/85xx/t1042rdb_diu.c
arch/powerpc/platforms/cell/cbe_powerbutton.c
arch/powerpc/platforms/cell/cbe_thermal.c
arch/powerpc/platforms/cell/cpufreq_spudemand.c
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/chrp/nvram.c
arch/powerpc/platforms/pseries/papr_scm.c
arch/powerpc/sysdev/rtc_cmos_setup.c

index 359577ec1680195350cd719f9d77190d297eb971..5407024881e5fb10c0582c8a992abd0112d8eead 100644 (file)
@@ -773,4 +773,5 @@ static void __exit rtas_flash_cleanup(void)
 
 module_init(rtas_flash_init);
 module_exit(rtas_flash_cleanup);
+MODULE_DESCRIPTION("PPC procfs firmware flash interface");
 MODULE_LICENSE("GPL");
index 767eed98a0a8b13a4076afa8b46fc6a40813b71f..d4fbb6eff38ae3de2cb9ef44ad21c37f66e8c8d5 100644 (file)
@@ -149,4 +149,5 @@ static int __init t1042rdb_diu_init(void)
 
 early_initcall(t1042rdb_diu_init);
 
+MODULE_DESCRIPTION("Freescale T1042 DIU driver");
 MODULE_LICENSE("GPL");
index a3ee397486f6f20979b0068e32b4052a1a546f26..3d121acdf69b3934e666189cdcc69c0ab7932df3 100644 (file)
@@ -101,5 +101,6 @@ static void __exit cbe_powerbutton_exit(void)
 module_init(cbe_powerbutton_init);
 module_exit(cbe_powerbutton_exit);
 
+MODULE_DESCRIPTION("Driver for powerbutton on IBM cell blades");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Christian Krafft <krafft@de.ibm.com>");
index 2f45428e32c895ccb86abb64cef70b83c2191273..c295c6714f9bc557ef802f189956f710cc5b07c1 100644 (file)
@@ -381,6 +381,7 @@ static void __exit thermal_exit(void)
 }
 module_exit(thermal_exit);
 
+MODULE_DESCRIPTION("Cell processor thermal driver");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Christian Krafft <krafft@de.ibm.com>");
 
index ca7849e113d7fbc485eef1a873e3241e4abaf287..79172ba36ecad52cc1e7264f18ba9990508a269d 100644 (file)
@@ -129,5 +129,6 @@ static struct cpufreq_governor spu_governor = {
 cpufreq_governor_init(spu_governor);
 cpufreq_governor_exit(spu_governor);
 
+MODULE_DESCRIPTION("SPU-aware cpufreq governor for the cell processor");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Christian Krafft <krafft@de.ibm.com>");
index 030de2b8c145f6638c446bd17bb04217b3e35bbc..70236d1df3d3e09713a2633f7dc060f9348674c4 100644 (file)
@@ -822,6 +822,7 @@ static void __exit spufs_exit(void)
 }
 module_exit(spufs_exit);
 
+MODULE_DESCRIPTION("SPU file system");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Arnd Bergmann <arndb@de.ibm.com>");
 
index 0eedae96498c1d5712d00589a854f7676de5e843..d3bf56a46656ecc6768291719cfa03d5e9c3a2cc 100644 (file)
@@ -92,4 +92,5 @@ void __init chrp_nvram_init(void)
        return;
 }
 
+MODULE_DESCRIPTION("PPC NVRAM device driver");
 MODULE_LICENSE("GPL v2");
index 9b6420eb3567dfe7a07b3a6920a7a53061e2e92d..f6a70bc92e8357f277dd7321cb428b25dd241811 100644 (file)
@@ -1536,5 +1536,6 @@ static void __exit papr_scm_exit(void)
 module_exit(papr_scm_exit);
 
 MODULE_DEVICE_TABLE(of, papr_scm_match);
+MODULE_DESCRIPTION("PAPR Storage Class Memory interface driver");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("IBM Corporation");
index 47cc87bd6a3365be87dbcaaf8579d12801e0d87d..9a232ae5e3607ac9c597873919d709ca35dc3147 100644 (file)
@@ -66,4 +66,5 @@ static int  __init add_rtc(void)
 }
 fs_initcall(add_rtc);
 
+MODULE_DESCRIPTION("PPC RTC CMOS driver");
 MODULE_LICENSE("GPL");