mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 02:23:05 +00:00
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 <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>