The patch titled Subject: mm: add printf attribute to shrinker_debugfs_name_alloc has been added to the -mm mm-unstable branch. Its filename is mm-add-printf-attribute-to-shrinker_debugfs_name_alloc.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-add-printf-attribute-to-shrinker_debugfs_name_alloc.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Lucy Mielke <lucymielke@xxxxxxxxxx> Subject: mm: add printf attribute to shrinker_debugfs_name_alloc Date: Fri, 6 Oct 2023 22:30:51 +0200 This fixes a compiler warning when compiling an allyesconfig with W=1: mm/internal.h:1235:9: error: function might be a candidate for `gnu_printf' format attribute [-Werror=suggest-attribute=format] Link: https://lkml.kernel.org/r/ZSBue-3kM6gI6jCr@mainframe Fixes: c42d50aefd17 ("mm: shrinker: add infrastructure for dynamically allocating shrinker") Signed-off-by: Lucy Mielke <lucymielke@xxxxxxxxxx> Cc: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/internal.h~mm-add-printf-attribute-to-shrinker_debugfs_name_alloc +++ a/mm/internal.h @@ -1235,8 +1235,8 @@ unsigned long shrink_slab(gfp_t gfp_mask int priority); #ifdef CONFIG_SHRINKER_DEBUG -static inline int shrinker_debugfs_name_alloc(struct shrinker *shrinker, - const char *fmt, va_list ap) +static inline __printf(2, 0) int shrinker_debugfs_name_alloc( + struct shrinker *shrinker, const char *fmt, va_list ap) { shrinker->name = kvasprintf_const(GFP_KERNEL, fmt, ap); _ Patches currently in -mm which might be from lucymielke@xxxxxxxxxx are mm-add-printf-attribute-to-shrinker_debugfs_name_alloc.patch