+ =utf-8qslub-=20add=20=5f=5fprintf=20verification=20to=-=utf-8q=20=e2=80=98slab=5ferr=e2=80=99-=.patch added to -mm tree

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

 



The patch titled
     Subject: mm/slub.c: add __printf verification to slab_err()
has been added to the -mm tree.  Its filename is
     =utf-8qslub-=20add=20=5f=5fprintf=20verification=20to=-=utf-8q=20=e2=80=98slab=5ferr=e2=80=99-=.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/%3Dutf-8qslub-%3D20add%3D20%3D5f%3D5fprintf%3D20verification%3D20to%3D-%3Dutf-8q%3D20%3De2%3D80%3D98slab%3D5ferr%3De2%3D80%3D99-%3D.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/%3Dutf-8qslub-%3D20add%3D20%3D5f%3D5fprintf%3D20verification%3D20to%3D-%3Dutf-8q%3D20%3De2%3D80%3D98slab%3D5ferr%3De2%3D80%3D99-%3D.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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mathieu Malaterre <malat@xxxxxxxxxx>
Subject: mm/slub.c: add __printf verification to slab_err()

__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@xxxxxxxxxx
Signed-off-by: Mathieu Malaterre <malat@xxxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Christoph Lameter <cl@xxxxxxxxx>
Cc: Pekka Enberg <penberg@xxxxxxxxxx>
Cc: David Rientjes <rientjes@xxxxxxxxxx>
Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/slub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/slub.c~=utf-8qslub-=20add=20=5f=5fprintf=20verification=20to=-=utf-8q=20=e2=80=98slab=5ferr=e2=80=99-= mm/slub.c
--- a/mm/slub.c~=utf-8qslub-=20add=20=5f=5fprintf=20verification=20to=-=utf-8q=20=e2=80=98slab=5ferr=e2=80=99-=
+++ a/mm/slub.c
@@ -711,7 +711,7 @@ void object_err(struct kmem_cache *s, st
 	print_trailer(s, page, object);
 }
 
-static void slab_err(struct kmem_cache *s, struct page *page,
+static __printf(3, 4) void slab_err(struct kmem_cache *s, struct page *page,
 			const char *fmt, ...)
 {
 	va_list args;
_

Patches currently in -mm which might be from malat@xxxxxxxxxx are

=utf-8qslub-=20add=20=5f=5fprintf=20verification=20to=-=utf-8q=20=e2=80=98slab=5ferr=e2=80=99-=.patch
mm-page_allocc-put-is_pageblock_removable_nolock-inside-ifdef.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