mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
printk: Remove ratelimit.h from kernel.h
Decouple kernel.h from ratelimit.h: the global declaration of printk's ratelimit_state is not needed, and it leads to messy circular dependencies due to ratelimit.h's (new) adding of a spinlock_types.h include. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: David S. Miller <davem@davemloft.net> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
edaac8e316
commit
3fff4c42bd
7 changed files with 10 additions and 3 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <linux/sysrq.h>
|
||||
#include <linux/highuid.h>
|
||||
#include <linux/writeback.h>
|
||||
#include <linux/ratelimit.h>
|
||||
#include <linux/hugetlb.h>
|
||||
#include <linux/initrd.h>
|
||||
#include <linux/key.h>
|
||||
|
@ -155,6 +156,8 @@ extern int no_unaligned_warning;
|
|||
extern int unaligned_dump_stack;
|
||||
#endif
|
||||
|
||||
extern struct ratelimit_state printk_ratelimit_state;
|
||||
|
||||
#ifdef CONFIG_RT_MUTEXES
|
||||
extern int max_lock_depth;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue