From nobody Thu Oct 9 08:15:47 2025 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 8641322A4F3; Thu, 19 Jun 2025 14:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750344498; cv=none; b=NDqZgjHLHHuILF6DpTHCOV09HUlCneAOzOWYnuOfJa+CDPOmen+TrdBEmicQ+pPeNwAsxR/fUwoPTlz5TzNBsG7AW+u7/n5lfcQRLxPUCxRqk8hmVMszVP2eViQ9vPxkh/h9mwwld9eF9MWA5e7Kme7BjEgVnMtb3CvZFrJF2lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750344498; c=relaxed/simple; bh=i7rcD1P8laXbZBfNdu4DupjBlFmEKluMaA6OTeWwlqA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OS5mpFPeQdN9UPO4b8uYen2bePL3iqZwfkA4mTeAXtkKBoE+JxI0oj0uQlidX7r7rW46dVbm7MlIaPNESUNMV4PZIrXCQH/XL4CRgHyMU0GkPhvScqdjNWCWaSbN3Bmxsf5nUXE1mp68A47cFpxw2iU/BCtLt4598Tlmdek1MWs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4bNNf41WPzzRkdD; Thu, 19 Jun 2025 22:43:56 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 1F5711400D9; Thu, 19 Jun 2025 22:48:13 +0800 (CST) Received: from localhost.localdomain (10.90.31.46) by kwepemk100013.china.huawei.com (7.202.194.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 19 Jun 2025 22:48:12 +0800 From: Jijie Shao To: , , , , , CC: , , , , , , , , , Subject: [PATCH V3 net-next 7/8] net: hns3: add complete parentheses for some macros Date: Thu, 19 Jun 2025 22:40:56 +0800 Message-ID: <20250619144057.2587576-8-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20250619144057.2587576-1-shaojijie@huawei.com> References: <20250619144057.2587576-1-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To kwepemk100013.china.huawei.com (7.202.194.61) Content-Type: text/plain; charset="utf-8" Add complete parentheses for some macros to fix static check warning. Signed-off-by: Jijie Shao Reviewed-by: Simon Horman --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/= ethernet/hisilicon/hns3/hns3_enet.h index d36c4ed16d8d..dd61ddd8f904 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -692,7 +692,7 @@ static inline unsigned int hns3_page_order(struct hns3_= enet_ring *ring) =20 /* iterator for handling rings in ring group */ #define hns3_for_each_ring(pos, head) \ - for (pos =3D (head).ring; (pos); pos =3D (pos)->next) + for ((pos) =3D (head).ring; (pos); (pos) =3D (pos)->next) =20 #define hns3_get_handle(ndev) \ (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle) --=20 2.33.0