]> git.baikalelectronics.ru Git - kernel.git/commit
mm, mempolicy: silence gcc warning
authorDavid Rientjes <rientjes@google.com>
Thu, 21 Nov 2013 22:32:06 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Nov 2013 00:42:27 +0000 (16:42 -0800)
commit01746c899dc1aeaffdb0ce8d394c110f68350cb6
tree17c9854b57621cf465522177e4d591f2dea01ec3
parentc8b9615e30ea11fe8efb4e24f9d4ba2f4eb83b54
mm, mempolicy: silence gcc warning

Fengguang Wu reports that compiling mm/mempolicy.c results in a warning:

  mm/mempolicy.c: In function 'mpol_to_str':
  mm/mempolicy.c:2878:2: error: format not a string literal and no format arguments

Kees says this is because he is using -Wformat-security.

Silence the warning.

Signed-off-by: David Rientjes <rientjes@google.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Suggested-by: Kees Cook <keescook@chromium.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c