+ suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w=1.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: fs/proc/task_mmu.c: suppress compilation warnings with W=1
has been added to the -mm tree.  Its filename is
     suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w=1.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w%3D1.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w%3D1.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: Valdis Kletnieks <Valdis.Kletnieks@xxxxxx>
Subject: fs/proc/task_mmu.c: suppress compilation warnings with W=1

Suppress a bunch of warnings of the form:

fs/proc/task_mmu.c: In function 'show_smap_vma_flags':
fs/proc/task_mmu.c:635:22: warning: initialized field overwritten [-Wt override-init]
   [ilog2(VM_READ)] = "rd",
                      ^~~~
fs/proc/task_mmu.c:635:22: note: (near initialization for 'mnemonics[0]')

They happen because of the way we intentionally build the table, so
silence the warning when building with 'make W=1'.

Link: http://lkml.kernel.org/r/8727.1470022083@xxxxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/proc/Makefile |    1 +
 1 file changed, 1 insertion(+)

diff -puN fs/proc/Makefile~suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w=1 fs/proc/Makefile
--- a/fs/proc/Makefile~suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w=1
+++ a/fs/proc/Makefile
@@ -4,6 +4,7 @@
 
 obj-y   += proc.o
 
+CFLAGS_task_mmu.o	+= -Wno-override-init
 proc-y			:= nommu.o task_nommu.o
 proc-$(CONFIG_MMU)	:= task_mmu.o
 
_

Patches currently in -mm which might be from Valdis.Kletnieks@xxxxxx are

fix-bitrotted-value-in-tools-testing-radix-tree-linux-gfph.patch
suppress-warnings-when-compiling-fs-proc-task_mmuc-with-w=1.patch
init-kconfig-add-clarification-for-out-of-tree-modules.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



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]
  Powered by Linux