]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42e455c0eb6edfd4a3601d115b79d6b0f4752320
treefea0a36db4dd8c8bcfbfdd5830170de3492917a4
parentd494f836f1afb05775a058b86c9c12884ea0d2cc
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