From nobody Thu Oct 9 02:16:10 2025 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 893131DE4DB; Mon, 23 Jun 2025 04:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750651666; cv=none; b=ie7seR0wqqdJk2vmCqiDAqbG8uFzXKYG+jgWvwhLG+c5LZAkkUVSYUzaUfdnxqdcMYQVPdI1UNAKY9DBivJERk4tdt/ClX2+RS6XMw3h0ojB48HfLtj80Wles959MOFCxZRwfHlhoDyutp1J361BtNkrfblKPF1iOjlyYfVaJAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750651666; c=relaxed/simple; bh=i7rcD1P8laXbZBfNdu4DupjBlFmEKluMaA6OTeWwlqA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nbWbQ4SaNyEoLHvJoCVEZaq2tMtddqDGyj55NaDYjyx0k+CYrIegV0+FKpIIEe2/1FE8eymmsm7gHGvJ6jHV7RuJnp6z+Kwjn8O2W2hW7sUtVdsGHk75sJajM2CvZ3zm2FRvs/Mffj0MFSTZSlmUuhfBNPG/Pi7yOJvPnBV7NZE= 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.190 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.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4bQZJC04Ptz2TSm7; Mon, 23 Jun 2025 12:06:03 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 6E4DC1401F2; Mon, 23 Jun 2025 12:07:37 +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; Mon, 23 Jun 2025 12:07:36 +0800 From: Jijie Shao To: , , , , , CC: , , , , , , , , , Subject: [PATCH v4 net-next 6/7] net: hns3: add complete parentheses for some macros Date: Mon, 23 Jun 2025 12:00:42 +0800 Message-ID: <20250623040043.857782-7-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20250623040043.857782-1-shaojijie@huawei.com> References: <20250623040043.857782-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: kwepems500002.china.huawei.com (7.221.188.17) 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