From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1632DC433F5 for ; Mon, 27 Sep 2021 13:02:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D46D660EB4 for ; Mon, 27 Sep 2021 13:02:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D46D660EB4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Date: Message-Id:From:Subject:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5KNGMlTZVvX+UzTYq3tpLwl8w9m7yMJI1Vfb/z7AC6Q=; b=zwNKu+4ktF8N7N 7dynKX+CM30OwLkA7PTS+rayyv3HiVLZsEy8xZEjs2HQu6p9kIW4M91sQ5CdKrtG4w00ms/dkeYE/ h0Bdvp9u5T4tnicZzcuhzGdRKXI5shR1oXhoFuPgFsPjdZcjyZBwVvm1Jl6/d96qtDVRdfwFCQelN oXRwCXaAMgB7LGaL051q7n8JJ5UctpLvzT11eOckSAZPbvIr+sA7L2w4Du8+No3hfjckcictG9OCT C5BVgS/ndHRcLoHaU/ldvM/+sIHDeQHa39iX9jlM40vOjLgaWW0+WZzcbX5pPyFdlImvhX8tbbLgs kQuJLLmL0yEXjihNQkPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUqEt-002ibB-TM; Mon, 27 Sep 2021 13:00:12 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUqEq-002iai-9s for linux-arm-kernel@lists.infradead.org; Mon, 27 Sep 2021 13:00:09 +0000 Received: by mail.kernel.org (Postfix) with ESMTPS id DFD9061052; Mon, 27 Sep 2021 13:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632747607; bh=rE68U+DkEgkEMRQCsiTxDWOf9HqvdtdTE2PMw/ic4yo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=COsx+imQ/qvSGVrro5eFCOOQy2+5H/c7ynX+cmMS6+2TMr3MYjIzhXCFofWSTPaad vjgsTmi5uVK25Ow9m1eDIYnWc9L1qZIBEUrjXfDa84+DPy9g4g+czNuJx/wSU8EKle hHW/NtjOUlh82FZb4nxmwUn29KABptpri0/ZnRB5AbrQrNWOJq4cpgVobL4e2Ryvcr t27T17fmsykSb4fjmh8huK7JQF4jaFWpsIulYhnt3Fd/5OMhX9na+4BhkzdPw9PLXM NJPMObBpbe3FpXu6+u21lB3b65BaZaQbZamayMCTEbGPqAzMtOWaTlkmzmNYx7VWiH vM04lWBtNsApA== MIME-Version: 1.0 Subject: Re: [PATCH] [RESEND] net: stmmac: fix gcc-10 -Wrestrict warning From: patchwork-bot+netdevbpf@kernel.org Message-Id: <163274760784.15607.6413113526637884251.git-patchwork-notify@kernel.org> Date: Mon, 27 Sep 2021 13:00:07 +0000 References: <20210927100336.1334028-1-arnd@kernel.org> In-Reply-To: <20210927100336.1334028-1-arnd@kernel.org> To: Arnd Bergmann Cc: peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, davem@davemloft.net, kuba@kernel.org, weifeng.voon@intel.com, boon.leong.ong@intel.com, arnd@arndb.de, lkp@intel.com, dan.carpenter@oracle.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210927_060008_407484_F1F247F1 X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 27 Sep 2021 12:02:44 +0200 you wrote: > From: Arnd Bergmann > > gcc-10 and later warn about a theoretical array overrun when > accessing priv->int_name_rx_irq[i] with an out of bounds value > of 'i': > > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_request_irq_multi_msi': > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3528:17: error: 'snprintf' argument 4 may overlap destination object 'dev' [-Werror=restrict] > 3528 | snprintf(int_name, int_name_len, "%s:%s-%d", dev->name, "tx", i); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3404:60: note: destination object referenced by 'restrict'-qualified argument 1 was declared here > 3404 | static int stmmac_request_irq_multi_msi(struct net_device *dev) > | ~~~~~~~~~~~~~~~~~~~^~~ > > [...] Here is the summary with links: - [RESEND] net: stmmac: fix gcc-10 -Wrestrict warning https://git.kernel.org/netdev/net-next/c/3e0d5699a975 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel