The patch titled Subject: kfifo: initialize fifo accordingly to C99 standard has been added to the -mm tree. Its filename is kfifo-initialize-fifo-accordingly-to-c99-standard.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 *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Subject: kfifo: initialize fifo accordingly to C99 standard When building a kernel with "make W=1" we will get a warning about missing initializer. It comes from kfifo usage style. The DEFINE_KFIFO macro doesn't initialize the buf[] field of the fifo structure. Using C99 initialization fixes this. Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Cc: Stefani Seibold <stefani@xxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/kfifo.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN include/linux/kfifo.h~kfifo-initialize-fifo-accordingly-to-c99-standard include/linux/kfifo.h --- a/include/linux/kfifo.h~kfifo-initialize-fifo-accordingly-to-c99-standard +++ a/include/linux/kfifo.h @@ -155,8 +155,7 @@ struct kfifo_rec_ptr_2 __STRUCT_KFIFO_PT #define DEFINE_KFIFO(fifo, type, size) \ DECLARE_KFIFO(fifo, type, size) = \ (typeof(fifo)) { \ - { \ - { \ + .kfifo = { \ .in = 0, \ .out = 0, \ .mask = __is_kfifo_ptr(&(fifo)) ? \ @@ -166,11 +165,9 @@ struct kfifo_rec_ptr_2 __STRUCT_KFIFO_PT .data = __is_kfifo_ptr(&(fifo)) ? \ NULL : \ (fifo).buf, \ - } \ } \ } - static inline unsigned int __must_check __kfifo_uint_must_check_helper(unsigned int val) { _ Patches currently in -mm which might be from andriy.shevchenko@xxxxxxxxxxxxxxx are linux-next.patch string-introduce-helper-to-get-base-file-name-from-given-path.patch lib-dynamic_debug-use-kbasename.patch mm-use-kbasename.patch procfs-use-kbasename.patch procfs-use-kbasename-fix.patch trace-use-kbasename.patch drivers-of-fdtc-re-use-kernels-kbasename.patch kfifo-initialize-fifo-accordingly-to-c99-standard.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