From nobody Sat Oct 11 04:10:41 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 C01731C84BA; Thu, 12 Jun 2025 02:20:55 +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=1749694857; cv=none; b=R8D6Hc5T11C5UCF+2ZmaRfoe9oLeZyJH/hbYEU7zMVM27+vMY5G014GgfJqn7eoWmCOmot/oY+M6BOB1RGPsaHyBSkYKUEc6CtYxeK2Bqfk8NJNZqwJKhqLuJO0LoIH58dZdzXvU7NT1jm31vNW1hHJuf4Fw+Z69lfBxjwmhj84= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749694857; c=relaxed/simple; bh=Ky+et5LMRWc5pSd4H7Dz/wgmS4ezthgVcIQvtiFIVmI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qs6CJjZeIRt+vmUDxsjvyoulV5tJd3r5f6JVF2VGf2vDOJGSjRx0MP9hlah1q2WrW5Gc41PTA6QO6Q9RjuxxnVynMSVwT0I0oqX871AsUg8UZNjhwiq5wHR1nwJUA2mL32yTHbxXMDPQ25plkX4haVulXiOwgU9GUks7VfMJO4Y= 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.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4bHmP36CxxzRk5V; Thu, 12 Jun 2025 10:16:39 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 60D4A14027A; Thu, 12 Jun 2025 10:20:53 +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, 12 Jun 2025 10:20:52 +0800 From: Jijie Shao To: , , , , , CC: , , , , , , , , , Subject: [PATCH net-next 7/8] net: hns3: add complete parentheses for some macros Date: Thu, 12 Jun 2025 10:13:16 +0800 Message-ID: <20250612021317.1487943-8-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20250612021317.1487943-1-shaojijie@huawei.com> References: <20250612021317.1487943-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: kwepems100001.china.huawei.com (7.221.188.238) 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 --- 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