From nobody Thu Oct 9 20:24:07 2025 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (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 B6B651D54E3; Tue, 17 Jun 2025 01:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750122603; cv=none; b=PopTdt7tCCVmSvUkCUkzXYO/UPRZMxFVGFP/pJdnXCiiuDHNwZbaz+Um24l5gJavqu6F7ewlG7vsVt5Lz/cVLBy+GUQ4llqEkk2+st8v1hvFeiO8RUU4i8EiDeI8D1tyzQwd4u0Nlrx/j2q8qvLlNxO0UnWTmicX22j6YY1ouIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750122603; c=relaxed/simple; bh=Ky+et5LMRWc5pSd4H7Dz/wgmS4ezthgVcIQvtiFIVmI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EHsJPIeuljhVE2OOOKtcug3DSPOIfuYxpwUhU38mKSDJ0ZLPzPoqnp8X0/BL4/u33e7GgqGKwvcZCsJIwu5oPzAoIyExoPcCydm+njwf4eyZ4B0muPk243yBSEuBO9YqbLK0oJBdjTI1KKWCh9trBF6oghfV+A+tXRKs3ot/V7w= 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.32 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.163]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4bLphr0D6Jz2QVK2; Tue, 17 Jun 2025 09:10:52 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 6514B18001B; Tue, 17 Jun 2025 09:09:58 +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; Tue, 17 Jun 2025 09:09:57 +0800 From: Jijie Shao To: , , , , , CC: , , , , , , , , , , Subject: [PATCH V2 net-next 7/8] net: hns3: add complete parentheses for some macros Date: Tue, 17 Jun 2025 09:02:54 +0800 Message-ID: <20250617010255.1183069-8-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20250617010255.1183069-1-shaojijie@huawei.com> References: <20250617010255.1183069-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: kwepems200002.china.huawei.com (7.221.188.68) 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