]> git.baikalelectronics.ru Git - kernel.git/commit
fs/proc/task_mmu.c: suppress compilation warnings with W=1
authorValdis Kletnieks <Valdis.Kletnieks@vt.edu>
Tue, 2 Aug 2016 21:03:25 +0000 (14:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 21:31:41 +0000 (17:31 -0400)
commitf99fbbc85d95d159d1b86ce22d6e82e040de7e5b
tree3cbeb9a1ecfca66a267890a3fd2d9c92b37178d0
parent8ccd147111b592afb9393dc16d78f6a3958ff8cc
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@turing-police.cc.vt.edu
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/Makefile