rcu: Export init_rcu_head() and destroy_rcu_head() to GPL modules
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 7 Dec 2017 17:40:38 +0000 (09:40 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Dec 2017 00:51:49 +0000 (19:51 -0500)
commit156baec39732f025dc778e00da95fc10d6e45885
tree40a3d2d868b6a22f3080cd7b2d384430f4dc96b2
parentfa576b43f66ef67d1db5730b5745c468b1f9ed2b
rcu: Export init_rcu_head() and destroy_rcu_head() to GPL modules

Use of init_rcu_head() and destroy_rcu_head() from modules results in
the following build-time error with CONFIG_DEBUG_OBJECTS_RCU_HEAD=y:

ERROR: "init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!

This commit therefore adds EXPORT_SYMBOL_GPL() for each to allow them to
be used by GPL-licensed kernel modules.

Reported-by: Bart Van Assche <Bart.VanAssche@wdc.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
kernel/rcu/update.c