Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp50812pxf; Wed, 24 Mar 2021 20:41:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmBOGNrdfSHWeAJvo2BHOTpmOODheQoCj4aNsL0AhyFRHGpoIklDGB6pj9Mw1G0I/bWEFW X-Received: by 2002:a50:cdd1:: with SMTP id h17mr6823368edj.178.1616643664056; Wed, 24 Mar 2021 20:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616643664; cv=none; d=google.com; s=arc-20160816; b=cy7gse4fEiANC9GT6TX6NO7+OO7C6FbXhBYsbUN6bPLdW5cue5nPSo1P+4GO+uCnLR e66Jg/K8sL0Y6LS1wz/MVqFp9LRsU4REcLklL4iyimLVBFqEE3RbUMsWy4IotlTEq/C8 SQnCKwQwQSyQ28fVkGjjcPeU6n94AixIl6HnsCgeLWDVHh/e99T/8U+2JUxerp4U6kx1 i9TjvoARae/9KHZI6IWQTgc5wvpvUnYgZVooyALLXc6IsXvFiiFKvflyazf465RPv0Id XurFhUcFJRnbzXTNtLSqs0gQAXqagLP2zykvxZ3eHsTIH5AjsD24uGQyCj1z8/RVMBY5 O6Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=vPFhomR3pLHboGoAMuY1hi5kkcJSjyyQyDaAN2KrMto=; b=EVKwvYyWtKC4qmLz667UfJ+EfkcoGKP+6Ne3acVcft7EmeWMC91rT/xx6rWnUMAVzs ZNp64hafZTX91TdXTddcB9qcavk6PsWaoZbrlzg678/yRopW/hXl2naYt0RtoFEYEr7p djWbeqRfroxk5R9OyWO0vdJqDMn9QLtqbLdi6sVHGdTsP7kxxH8H9+E2roic7q4gCPAw G17/7KbHdzL8MLTX5E5rQnfZRkehovLE5Kd9SdsVEjobapUKpeuKj12nJuNAUe0I19EG CKx/8dvCf2N7LQ93gAipYlFx0WgiS+0Hsfv2PRuma2l9Wc2vi6uvI4ua7JEuEUQp6KYv //Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KFyJGhYh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx21si3094445ejb.91.2021.03.24.20.40.42; Wed, 24 Mar 2021 20:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KFyJGhYh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235372AbhCYBKL (ORCPT + 99 others); Wed, 24 Mar 2021 21:10:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:51944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbhCYBKI (ORCPT ); Wed, 24 Mar 2021 21:10:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id 600FA61A14; Thu, 25 Mar 2021 01:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616634608; bh=+n1RB8wAeIzn113N2MCArRuNFLeQ8HAgavokcEVrZ5c=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=KFyJGhYhfSJzJwKGEK/OBgfnMqEUKvCYxyICreMGkwv9zGU0s9pc/E0OmoeAhw547 QyffRfkuDEkigyiAkfBr0hvExXWKMdzJhGgF64EIB1APSyDj6tMh+/owvJCUy/mSBm bwa+BhYfuEgl05WjeF5zwPGoCxZ+4FE5LcHo6jvrYs/McBirDP//Tyomy8uoBUoYjv h7L3EFlin1ZUB2nmgchbkv2WEs4VyEVMB6KrjI0yjMEUv2Qt90nLwjMQmQQ5308XBJ WFixEOnoUVbxpXqyyTxRtImCXKr+zG6HAULPiAZnWKqZaJgcKtMPIcC3yzFErU5VqW fduBk0ZZyD3eg== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id 509F66096E; Thu, 25 Mar 2021 01:10:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] [v2] hinic: avoid gcc -Wrestrict warning From: patchwork-bot+netdevbpf@kernel.org Message-Id: <161663460832.25289.5484476322844888981.git-patchwork-notify@kernel.org> Date: Thu, 25 Mar 2021 01:10:08 +0000 References: <20210324130731.1513798-1-arnd@kernel.org> In-Reply-To: <20210324130731.1513798-1-arnd@kernel.org> To: Arnd Bergmann Cc: luobin9@huawei.com, davem@davemloft.net, kuba@kernel.org, arnd@arndb.de, linux@rasmusvillemoes.dk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 24 Mar 2021 14:07:22 +0100 you wrote: > From: Arnd Bergmann > > With extra warnings enabled, gcc complains that snprintf should not > take the same buffer as source and destination: > > drivers/net/ethernet/huawei/hinic/hinic_ethtool.c: In function 'hinic_set_settings_to_hw': > drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:480:9: error: 'snprintf' argument 4 overlaps destination object 'set_link_str' [-Werror=restrict] > 480 | err = snprintf(set_link_str, SET_LINK_STR_MAX_LEN, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 481 | "%sspeed %d ", set_link_str, speed); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:464:7: note: destination object referenced by 'restrict'-qualified argument 1 was declared here > 464 | char set_link_str[SET_LINK_STR_MAX_LEN] = {0}; > > [...] Here is the summary with links: - [v2] hinic: avoid gcc -Wrestrict warning https://git.kernel.org/netdev/net-next/c/84c7f6c33f42 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html