The patch titled printk: declare printk_ratelimit_state in ratelimit.h has been added to the -mm tree. Its filename is printk-declare-printk_ratelimit_state-in-ratelimith.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: printk: declare printk_ratelimit_state in ratelimit.h From: Namhyung Kim <namhyung@xxxxxxxxx> Adding declaration of printk_ratelimit_state in ratelimit.h removes potential build breakage and following sparse warning: kernel/printk.c:1426:1: warning: symbol 'printk_ratelimit_state' was not declared. Should it be static? Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/ratelimit.h | 4 ++++ kernel/sysctl.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff -puN include/linux/ratelimit.h~printk-declare-printk_ratelimit_state-in-ratelimith include/linux/ratelimit.h --- a/include/linux/ratelimit.h~printk-declare-printk_ratelimit_state-in-ratelimith +++ a/include/linux/ratelimit.h @@ -36,6 +36,10 @@ static inline void ratelimit_state_init( rs->begin = 0; } +#ifdef CONFIG_PRINTK +extern struct ratelimit_state printk_ratelimit_state; +#endif + extern int ___ratelimit(struct ratelimit_state *rs, const char *func); #define __ratelimit(state) ___ratelimit(state, __func__) diff -puN kernel/sysctl.c~printk-declare-printk_ratelimit_state-in-ratelimith kernel/sysctl.c --- a/kernel/sysctl.c~printk-declare-printk_ratelimit_state-in-ratelimith +++ a/kernel/sysctl.c @@ -161,8 +161,6 @@ extern int no_unaligned_warning; extern int unaligned_dump_stack; #endif -extern struct ratelimit_state printk_ratelimit_state; - #ifdef CONFIG_PROC_SYSCTL static int proc_do_cad_pid(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); _ Patches currently in -mm which might be from namhyung@xxxxxxxxx are linux-next.patch init-mark-__user-address-space-on-string-literals.patch printk-fixup-declaration-of-kmsg_reasons.patch printk-add-lock-context-annotation.patch printk-change-type-of-boot_delay-to-int.patch printk-declare-printk_ratelimit_state-in-ratelimith.patch exit-add-lock-context-annotation-on-find_new_reaper.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html