Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

moduleparam: include required headers explicitly

The following patch drops moduleparam.h dependency on kernel.h. In
preparation to it, list all the required headers explicitly.

Link: https://lkml.kernel.org/r/20260116042510.241009-3-ynorov@nvidia.com
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Suggested-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Cc: Aaron Tomlin <atomlin@atomlin.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Yury Norov and committed by
Andrew Morton
25b66674 f2e0abdc

+5
+5
include/linux/moduleparam.h
··· 2 2 #ifndef _LINUX_MODULE_PARAMS_H 3 3 #define _LINUX_MODULE_PARAMS_H 4 4 /* (C) Copyright 2001, 2002 Rusty Russell IBM Corporation */ 5 + 6 + #include <linux/array_size.h> 7 + #include <linux/build_bug.h> 8 + #include <linux/compiler.h> 5 9 #include <linux/init.h> 6 10 #include <linux/stringify.h> 7 11 #include <linux/kernel.h> 12 + #include <linux/types.h> 8 13 9 14 /* 10 15 * The maximum module name length, including the NUL byte.