Skip to content

Commit bdfa97b

Browse files
author
Paul Gortmaker
committed
kernel: fix up module header handling in rcutiny files
The file rcutiny.c does not need moduleparam.h header, as there are no modparams in this file. However rcutiny_plugin.h does define a module_init() and a module_exit() and it uses the various MODULE_ macros, so it really does need module.h included. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 72a59aa commit bdfa97b

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/rcutiny.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* For detailed explanation of Read-Copy Update mechanism see -
2323
* Documentation/RCU
2424
*/
25-
#include <linux/moduleparam.h>
2625
#include <linux/completion.h>
2726
#include <linux/interrupt.h>
2827
#include <linux/notifier.h>

‎kernel/rcutiny_plugin.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include <linux/kthread.h>
26+
#include <linux/module.h>
2627
#include <linux/debugfs.h>
2728
#include <linux/seq_file.h>
2829

0 commit comments

Comments
 (0)