Skip to content

Commit 72a59aa

Browse files
author
Paul Gortmaker
committed
kernel: params.c needs module.h not moduleparam.h
Through various other implicit include paths, some files were getting the full module.h file, and hence living the illusion that they really only needed moduleparam.h -- but the reality is that once you remove the module.h presence, these show up: kernel/params.c:583: warning: ‘struct module_kobject’ declared inside parameter list Such files really require module.h so simply make it so. As the file module.h grabs moduleparam.h on the fly, all will be well. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 1596425 commit 72a59aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/params.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
along with this program; if not, write to the Free Software
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1717
*/
18-
#include <linux/moduleparam.h>
18+
#include <linux/module.h>
1919
#include <linux/kernel.h>
2020
#include <linux/string.h>
2121
#include <linux/errno.h>

0 commit comments

Comments
 (0)