mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02:00
ARM: 9473/1: kprobes: test: add MODULE_DESCRIPTION
All loadable modules must have a description, and since commit
6c6c1fc09d ("modpost: require a MODULE_DESCRIPTION()"), the kernel build
warns about it missing:
WARNING: modpost: missing MODULE_DESCRIPTION() in arch/arm/probes/kprobes/test-kprobes.o
Add the missing description tags. Noticing that the existing license tag
is unnecessarily hidden in an #ifdef section, remove the #ifdef and
use conventional placing of the initcall and module_exit tags as well
as the license and description.
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
committed by
Russell King
parent
254f49634e
commit
d5bbc9b3d2
@@ -1649,24 +1649,16 @@ out:
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
late_initcall(run_all_tests);
|
||||
|
||||
/*
|
||||
* Module setup
|
||||
*/
|
||||
|
||||
#ifdef MODULE
|
||||
|
||||
static void __exit kprobe_test_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
module_init(run_all_tests)
|
||||
module_exit(kprobe_test_exit)
|
||||
|
||||
MODULE_DESCRIPTION("Test code for ARM kprobes");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
#else /* !MODULE */
|
||||
|
||||
late_initcall(run_all_tests);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user