Skip to content

Commit 9c5f647

Browse files
Jeff Johnsonmpe
authored andcommitted
powerpc: add missing MODULE_DESCRIPTION() macros
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 50b5fed commit 9c5f647

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

arch/powerpc/kernel/rtas_flash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,4 +773,5 @@ static void __exit rtas_flash_cleanup(void)
773773

774774
module_init(rtas_flash_init);
775775
module_exit(rtas_flash_cleanup);
776+
MODULE_DESCRIPTION("PPC procfs firmware flash interface");
776777
MODULE_LICENSE("GPL");

arch/powerpc/platforms/85xx/t1042rdb_diu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,5 @@ static int __init t1042rdb_diu_init(void)
149149

150150
early_initcall(t1042rdb_diu_init);
151151

152+
MODULE_DESCRIPTION("Freescale T1042 DIU driver");
152153
MODULE_LICENSE("GPL");

arch/powerpc/platforms/cell/cbe_powerbutton.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,6 @@ static void __exit cbe_powerbutton_exit(void)
101101
module_init(cbe_powerbutton_init);
102102
module_exit(cbe_powerbutton_exit);
103103

104+
MODULE_DESCRIPTION("Driver for powerbutton on IBM cell blades");
104105
MODULE_LICENSE("GPL");
105106
MODULE_AUTHOR("Christian Krafft <[email protected]>");

arch/powerpc/platforms/cell/cbe_thermal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ static void __exit thermal_exit(void)
381381
}
382382
module_exit(thermal_exit);
383383

384+
MODULE_DESCRIPTION("Cell processor thermal driver");
384385
MODULE_LICENSE("GPL");
385386
MODULE_AUTHOR("Christian Krafft <[email protected]>");
386387

arch/powerpc/platforms/cell/cpufreq_spudemand.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,6 @@ static struct cpufreq_governor spu_governor = {
129129
cpufreq_governor_init(spu_governor);
130130
cpufreq_governor_exit(spu_governor);
131131

132+
MODULE_DESCRIPTION("SPU-aware cpufreq governor for the cell processor");
132133
MODULE_LICENSE("GPL");
133134
MODULE_AUTHOR("Christian Krafft <[email protected]>");

arch/powerpc/platforms/cell/spufs/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static void __exit spufs_exit(void)
822822
}
823823
module_exit(spufs_exit);
824824

825+
MODULE_DESCRIPTION("SPU file system");
825826
MODULE_LICENSE("GPL");
826827
MODULE_AUTHOR("Arnd Bergmann <[email protected]>");
827828

arch/powerpc/platforms/chrp/nvram.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,5 @@ void __init chrp_nvram_init(void)
9292
return;
9393
}
9494

95+
MODULE_DESCRIPTION("PPC NVRAM device driver");
9596
MODULE_LICENSE("GPL v2");

arch/powerpc/platforms/pseries/papr_scm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,5 +1536,6 @@ static void __exit papr_scm_exit(void)
15361536
module_exit(papr_scm_exit);
15371537

15381538
MODULE_DEVICE_TABLE(of, papr_scm_match);
1539+
MODULE_DESCRIPTION("PAPR Storage Class Memory interface driver");
15391540
MODULE_LICENSE("GPL");
15401541
MODULE_AUTHOR("IBM Corporation");

arch/powerpc/sysdev/rtc_cmos_setup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ static int __init add_rtc(void)
6666
}
6767
fs_initcall(add_rtc);
6868

69+
MODULE_DESCRIPTION("PPC RTC CMOS driver");
6970
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)