]> git.baikalelectronics.ru Git - kernel.git/commit
xen: audit usages of module.h ; remove unnecessary instances
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 22 Feb 2016 00:06:04 +0000 (19:06 -0500)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 21 Mar 2016 15:13:32 +0000 (15:13 +0000)
commit9f70deb4f3ec9e92979e90d892caed648f7fb138
treeb5706616cb4c675bf430942264a0c744d5d1653d
parent2d2bf0d139264d9c7c0e9660f1c8e8ee0ae38de5
xen: audit usages of module.h ; remove unnecessary instances

Code that uses no modular facilities whatsoever should not be
sourcing module.h at all, since that header drags in a bunch
of other headers with it.

Similarly, code that is not explicitly using modular facilities
like module_init() but only is declaring module_param setup
variables should be using moduleparam.h and not the larger
module.h file for that.

In making this change, we also uncover an implicit use of BUG()
in inline fcns within arch/arm/include/asm/xen/hypercall.h so
we explicitly source <linux/bug.h> for that file now.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
12 files changed:
arch/arm/include/asm/xen/hypercall.h
drivers/xen/events/events_2l.c
drivers/xen/events/events_base.c
drivers/xen/events/events_fifo.c
drivers/xen/features.c
drivers/xen/grant-table.c
drivers/xen/xen-pciback/conf_space.c
drivers/xen/xen-pciback/pciback_ops.c
drivers/xen/xen-pciback/xenbus.c
drivers/xen/xen-selfballoon.c
drivers/xen/xenbus/xenbus_xs.c
drivers/xen/xenfs/xensyms.c