The patch titled linux/ratelimit.h: fixed "missing initializer" warning has been added to the -mm tree. Its filename is linux-ratelimith-fixed-missing-initializer-warning.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: linux/ratelimit.h: fixed "missing initializer" warning From: Max Kellermann <mk@xxxxxxxxxx> When compiled with -Wmissing-field-initializers (-Wextra), gcc complains that there are uninitialized fields in the struct: include/linux/ratelimit.h: In function 'ratelimit': include/linux/ratelimit.h:23: warning: missing initializer include/linux/ratelimit.h:23: warning: (near initialization for 'rs.printed') Fix this by using C99 initializers. Signed-off-by: Max Kellermann <mk@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/ratelimit.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -puN include/linux/ratelimit.h~linux-ratelimith-fixed-missing-initializer-warning include/linux/ratelimit.h --- a/include/linux/ratelimit.h~linux-ratelimith-fixed-missing-initializer-warning +++ a/include/linux/ratelimit.h @@ -13,8 +13,11 @@ struct ratelimit_state { unsigned long begin; }; -#define DEFINE_RATELIMIT_STATE(name, interval, burst) \ - struct ratelimit_state name = {interval, burst,} +#define DEFINE_RATELIMIT_STATE(name, _interval, _burst) \ + struct ratelimit_state name = { \ + .interval = _interval, \ + .burst = _burst, \ + } extern int __ratelimit(struct ratelimit_state *rs); _ Patches currently in -mm which might be from mk@xxxxxxxxxx are linux-ratelimith-fixed-missing-initializer-warning.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