headers: move module_bug_finalize()/module_bug_cleanup() definitions into module.h
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 16 Jun 2009 22:33:37 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:48 +0000 (19:47 -0700)
commit0d9c25dde878a636ee9a9b53923569171bf9a55b
treefea0a36db4dd8c8bcfbfdd5830170de3492917a4
parent4938d7e0233a455f04507bac81d0886c71529537
headers: move module_bug_finalize()/module_bug_cleanup() definitions into module.h

They're in linux/bug.h at present, which causes include order tangles.  In
particular, linux/bug.h cannot be used by linux/atomic.h because,
according to Nikanth:

linux/bug.h pulls in linux/module.h => linux/spinlock.h => asm/spinlock.h
(which uses atomic_inc) => asm/atomic.h.

bug.h is a pretty low-level thing and module.h is a higher-level thing,
IMO.

Cc: Nikanth Karthikesan <knikanth@novell.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/bug.h
include/linux/module.h