From 8d7859d165dbdf6e8d77b76500fc990f26c8310d Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 4 Sep 2026 15:42:48 -0400 Subject: [PATCH] nfsd: shorten extack string returned with dodgy listener The kernel test robot reports: >> fs/nfsd/nfsctl.c:2253:4: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 94 [-Wformat-truncation] Shorten the extack string in this case so that it will fit in 80 chars. Signed-off-by: Jeff Layton Link: https://patch.msgid.link/20260904-nfsd-nl-hang-v1-1-8c8035b6294d@kernel.org Signed-off-by: Chuck Lever --- fs/nfsd/nfsctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 967c21ff7199..1be8f98a293d 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -2251,7 +2251,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info) bad_xprt); else if (skipped_rpcb) NL_SET_ERR_MSG_FMT(info->extack, - "cannot create %s listener; rpcbind did not answer earlier, so some listeners are not registered", + "cannot create %s listener; rpcbind did not answer earlier", bad_xprt); else NL_SET_ERR_MSG_FMT(info->extack,