From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a4-smtp.messagingengine.com (fhigh-a4-smtp.messagingengine.com [103.168.172.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E4143A7F7E; Wed, 25 Mar 2026 13:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774446556; cv=none; b=XTELGg3F7t25dsH4PXPKcc49Tp+kiM3fMX3YHlhLO7bCZlXUORSAMTYpULiTgQGUwlyg/ZVb9OlEXx4eihbrXgTYEZX8fuz1VleQ6rSdufzAU5sbJvFe18sjfU1JG1ngvdtUGDFNaigYci7Wp8imdAt8qiPDAqmCoeBK90SOJFE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774446556; c=relaxed/simple; bh=RUVqa+RRB+Blgh5kTh82WxFI2rrCB+MaiOvjcswq+IM=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=kQOE1iZDWrd68SRn6klaExpQfTq8JztnqlcNA89UEx6AQJZGfCVtbEDowOTqyRXQRsN8u3LsFO8lgA9F0/6g/J/QDci7zQaI6OCSHljRQjkPf4lH+jbhgrnWfHuVhHTefRu8oCaWH4pdzgPKA/nPRJjI1jbjAdp0HMJReBliOm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=pVqRGZeb; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=dOjhDuXi; arc=none smtp.client-ip=103.168.172.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="pVqRGZeb"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dOjhDuXi" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9336C140026D; Wed, 25 Mar 2026 09:49:13 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Wed, 25 Mar 2026 09:49:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1774446553; x=1774532953; bh=O+42aIe44EcreLEetKhLjOBvDrCC6rqqhKNt49YXH4Q=; b= pVqRGZebhPRXE6f3bg0KhoR2GHdVjAaILOUwqgo1ygjqene8boQbNyCbJoaWSZRv tLQUNYzVvvl0o3+vNi2Jzrdn8wGbXY6MIn9KsH+l6HnRsP+PyyPT8BlfuounV/ej 7niisDuN2+YFfkhwY/unERP1JpkZkDCeGrhegz9NvlMSsuFt+PNsBkq7HzmNIaPK woqySohItriXfpnP2SI1VCNos5oV+mqsPda3Vxgb0F80lIaJcxbCU8X1NEMRNPkv E+WlR2VSJFQm552VxrdlVC5l1TDTHSpaUKIWFA25nd12tMfqvlhWxDOeEytyG4mR inj9ymdB2JLWlR6abtminA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1774446553; x= 1774532953; bh=O+42aIe44EcreLEetKhLjOBvDrCC6rqqhKNt49YXH4Q=; b=d OjhDuXiALqQ2qDUuOjVzUM9xt+ZEz3J/ddcaDIB8JNXzcvnDBKn+aXDJYFWFJns2 wdKjuZ8FW/CThhbT8BDrlT+PhgGlXlEkzrJZNUQ2gdhVH1qQOBB7p6ElOen03p6u KHWjIdKt8BDJO8r5wlg9XGGeh/c/1+sZ2skRylbc+TOWdhy8vFHp0VQFlWqaEvsD SuYLIIpOHPyS1bVsaJCu6AvgNXXrIZLdXlgX4Ugg8/RLThqOMhuZ1/oN0UGmMIk7 ITIPY+yPd617wsis/k99bw1UIgyipHS01iS2bg+CukdZznzp7pcqf/zsXVdNiQYF U3kQ6uy8GK3SFEDRPMKZA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdegiedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrnhgu uceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrthhtvg hrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefggfevudegudevledvkefhvdei necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnh gusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepvddtpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopegsrhgvthhtrdgtrhgvvghlvgihsegrmhgurdgtohhmpdhrtghpth htoheplhhinhhugidqnhgvthdqughrihhvvghrshesrghmugdrtghomhdprhgtphhtthho pegurghvvghmsegurghvvghmlhhofhhtrdhnvghtpdhrtghpthhtoheplhgvihhtrghose guvggsihgrnhdrohhrghdprhgtphhtthhopegvtghrvggvrdigihhlihhngiesghhmrghi lhdrtghomhdprhgtphhtthhopehnihgtkhdruggvshgruhhlnhhivghrshdolhhkmhhlse hgmhgrihhlrdgtohhmpdhrtghpthhtohepvgguuhhmrgiivghtsehgohhoghhlvgdrtgho mhdprhgtphhtthhopehjuhhsthhinhhsthhithhtsehgohhoghhlvgdrtghomhdprhgtph htthhopehmohhrsghosehgohhoghhlvgdrtghomh X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id DEF6E700065; Wed, 25 Mar 2026 09:49:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: Aywyuz1KiUOB Date: Wed, 25 Mar 2026 14:48:52 +0100 From: "Arnd Bergmann" To: "Edward Cree" , "Arnd Bergmann" , "Andrew Lunn" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Nathan Chancellor" , "Jeff Garzik" , "Ben Hutchings" Cc: "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Brett Creeley" , "Breno Leitao" , "Kees Cook" , Netdev , linux-net-drivers@amd.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Message-Id: In-Reply-To: <9763c19d-131c-45ca-8976-a6473539240a@gmail.com> References: <20260320151924.3474821-1-arnd@kernel.org> <90a03d3c-def3-4e34-89a0-6e952d3b0d7a@gmail.com> <61de3aea-26b3-4c00-8598-3a137ebef1bc@app.fastmail.com> <9763c19d-131c-45ca-8976-a6473539240a@gmail.com> Subject: Re: [PATCH] net: sfc: avoid format string warning Content-Type: text/plain Content-Transfer-Encoding: 7bit On Wed, Mar 25, 2026, at 01:22, Edward Cree wrote: > On 20/03/2026 20:48, Arnd Bergmann wrote: > > That would work, but all those -1s are a bit unsightly. Like I said, > I'd rather have two different efx_fill_test() functions, one which > takes a unit_id and one which doesn't. > (Also you need to change the kdoc description of unit_name.) I sent a new version now, tried your suggestion but ended up with yet another variation where I preformat the string in the two cases (per driver) that actually use a nontrivial format. This ended up simpler both four the source and compiled form. >> There are not a lot of good options here, and splitting the line seems >> better than an overlong line to me. I don't really have a strong opinion >> on where the __printf attribute should go either, but I do see that >> after the return type is probably the least common, so I'll change >> that. How about having the specifiers on one line and >> the type in front of the name? that seems faily common. >> >> static __printf(7, 8) >> void ef4_fill_test(unsigned int test_index, u8 *strings, u64 *data, > > I'd rather just have > static void __printf(7, 8) ef4_fill_test(unsigned int test_index, Done. Arnd