]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - mm/slub.c
mm/slub.c: add __printf verification to slab_err()
authorMathieu Malaterre <malat@debian.org>
Fri, 8 Jun 2018 00:05:17 +0000 (17:05 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:30 +0000 (14:20 +0100)
commit495201b4e093135253c3d40e462edcaf16d4cab2
tree9e4faae517cda74c8540b7730207f2cdfe9c06ef
parent9c5a1f6d0afc3f074a407c35a6c0bc6cf296a022
mm/slub.c: add __printf verification to slab_err()

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit a38965bf941b7c2af50de09c96bc5f03e136caef ]

__printf is useful to verify format and arguments.  Remove the following
warning (with W=1):

  mm/slub.c:721:2: warning: function might be possible candidate for `gnu_printf' format attribute [-Wsuggest-attribute=format]

Link: http://lkml.kernel.org/r/20180505200706.19986-1-malat@debian.org
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
mm/slub.c