🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20240

Re: [PATCH net] net: ethernet: ti: netcp: fix queue name buffer size

#20240
From: Jakub Kicinski
Date: Sat, 21 Nov 2026 22:29
10 lines
7966 bytes
On Sat, 14 Nov 2026 18:34:52 +0800 Aibing Chen wrote:
> Building the driver with W=1 reports a -Wformat-truncation warning for
> each snprintf() that formats ndev->name, e.g. for "rx-pool-%s" the
> compiler warns that the %s directive may write up to 15 bytes into a
> region of size 8.

I don't see any such warning on gcc 16.2
-- 
pw-bot: reject
Technical Details
Message-ID: <20261121142936.63af60c2@kernel.org>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368474-linux-kernel-netdev=dewy.ru
References: <20261114103452.943-1-chenaibing@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368474-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: ethernet: ti: netcp: fix queue name buffer
 size
Date: Sat, 21 Nov 2026 14:29:36 -0800
Organization: Usenet Network
Message-ID: <20261121142936.63af60c2@kernel.org>
References: <20261114103452.943-1-chenaibing@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3509030"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ekrp3Jkm11cJ7A1wqed79Ji8hxo= sha256:5FXacUvhJ7iNoJX730Czl87bqWDyODQMMVYUFXE1qPg=
	sha1:WoLRn/+Ma51YCqRHUdlXqU7hiNE= sha256:HhJcvPsp+HXnHGXy4yUenPDp3gD3ENvmhf1eEGj2sEk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id A3D4F116025; Sun, 22 Nov 2026 01:30:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 4VIrqgpMqMMz;
	Sun, 22 Nov 2026 01:29:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368474-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 530C9DFFA1; Sun, 22 Nov 2026 01:29:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9B5CF38DD4; Sat, 21 Nov 2026 22:29:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795300183;
	b=lt94XEWX80BUkhqSW2SqIxGNtKI3OCaVBuLxK29POaOW2wGgCjsZTx0G9IU/AzojJlo+
	 CHT/yLd+aq8WMF8TUn2eiIGDviQ7dXqw4OCxG+VBU3jvMwXurRNp4eapGwkRs41XhYKhf
	 h+Y15j7rlBudg03UQfipOQyNgVjM9F4xztLv15/X3sAQUiEJzy/5DB27TLoBgmvnU68iw
	 v9E+RieHbB+mrdIXglUc3nhELF1ZLd6ZOyBsXgKxvzeFu8zPE4Ct33uhZAjHz6QUyfUdx
	 zvpaWTPKVR0ImM8tas7OeXXkiaxYnh/lWwQ946JRUImCSMazP57ha2O+PDNtgiuZkOg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795300183;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=pfkmm5AWGs3hrHMN3eojrEaNT+h83XownnIu7ZRHz9s=;
	b=KXOIvY6g6uKewnRHn0+bKW8RAGph573GnsHLENomQp4pGu6I4SQOz2JiqStu3E3a12Nf
	 wZYASJqpgKqLxyshbuTrB5PlpQxxdhwe3KNoI8jfyxnf3xbcv19yhRWwHnPF9Pr4okzs6
	 euIIwMCekK7xFsJo/lKEOm3aCVWX0Ig2qnZoXuLz7/RY/ouzR3dX/bvPECRTJHBIaHpdU
	 UYmqEJtZK9vq7K5b8mAD28Ma8IRE6xRNuJbzEliroL35Tke9St9jZ9HPIsNIYgmxYXM1I
	 9tjtTkC4YPb/HCjQ7awwvO3MCkV5H5sAxkS8TM/NpB3RoLiVtnu8kPzv+UxYZlvQJyQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UQnuxuxT;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 73957606A32A;
	Sat, 21 Nov 2026 22:29:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UQnuxuxT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795300177;
	b=mCqc0xm4Zug0WOyFn7vV+X/uW9n8Y7rifV6/TdSiHyXPDLsx1BZ1O9njHyz40wKEGoTD
	 6KKR+Uw8h8bStNCrcHPx1mBUaHX7LWliaVpFp/XOYnA+oaQo/Sk8FyBpSAVMUk13nP3WP
	 1IQQ5v9rhtGXJrEZarjgJFYws04s0wpTvs7XfGDyMgTBYD2R06Gw5MYMkT8bOw9+oZGRe
	 Da6irWuKs5CXi0MyMOs8gxoufY9AhWwqj2J/5yBz5KvKS/mYgtjD53xUJmYxLaUOPVCUI
	 ZGAyn7tILOG4dZWw+R7V/GQUjoLXIMan2dcDaBPJ7nfK9uLxWAP58dIMx3Hlo6ooamQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795300177;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=pfkmm5AWGs3hrHMN3eojrEaNT+h83XownnIu7ZRHz9s=;
	b=yl2xun5Bfp0NLbIgQmXUCYMuH62hyxVIMm5q89G9ChzHlOWz7zDJ6KdbB07E8MYn1fZ5
	 abRZnerBNLg3q8EYdENBo7EArUgseUXz2ZeDJvmgC9UhrFdkHdWMuS7j+FGGRNBhhg5sh
	 8/jcoEttTzAb2IpIibljCDvT+e/L+e1e/igfy24WOuNx/4t/Hbq+Eri8/udf/mr6rA422
	 cIp2RNh4g5UyQU8wdZMNO5XLausIbAdGVvGM5nzPQ9PV7B74TsLUt+cBE3v/gxHFmk4tU
	 XpbiqUWJByOb5KNYXy9nFKGBDd7L3sKmY3PYdw/TaOiTl+2vKMeNLWpNT25ExOcga0A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UQnuxuxT;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 911A6606A320;
	Sat, 21 Nov 2026 22:29:37 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E8A81F000C4;
	Sat, 21 Nov 2026 22:29:37 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795300177;
	bh=pfkmm5AWGs3hrHMN3eojrEaNT+h83XownnIu7ZRHz9s=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=UQnuxuxTTYrcAIV119cFR1/DrInz3PSoUjL8CVs6MwidgmG415v9SnchrCXRjG9KN
	 Uozwb8FDYzTSI/ISMBLRVlhwbZesVR3XdfIuvL6xLbI1NyksepRJsgObGXldQiJ9SV
	 L6PaTtoiaAk3VkRgUDRuwDaNew1avvNVkF1sZL20CEHnAodU8bcTQ7t9mbzKBijwRT
	 v+v5u5fnQad7raUKFG/WfUuIkdNMa+HW6gCuBBIm2cxJdla9Gu7J09yGKXfdQx4W5b
	 MQop3JYuPD9ueRCErG9vyKJO7my/xiERpjzyVvw616jItO+dq6Ef4ebdTGqasgRIGf
	 09vM6i/hoRcIw==
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller"
 <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni
 <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261114103452.943-1-chenaibing@cmss.chinamobile.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list