Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4259890rba; Tue, 2 Apr 2024 11:35:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFmYghkdsQ2XssDvDVt7KuAbeBxuCdJ1anQOXK2atWeiBYgpJgnT0Y9O8jz2YIKGAZfXCizMNVSG2GxHdJ/wF3+pGAxtlmQJ/PGEU+Qg== X-Google-Smtp-Source: AGHT+IEwHF15r2EhhCsp8eHCf+05CNu7+YLd8nxDetOtnlr55S1SC0xv62ICE8jLRLruEYr16iWP X-Received: by 2002:a17:906:db0c:b0:a4e:658f:a76 with SMTP id xj12-20020a170906db0c00b00a4e658f0a76mr5636378ejb.16.1712082940122; Tue, 02 Apr 2024 11:35:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712082940; cv=pass; d=google.com; s=arc-20160816; b=zlmktYTuNR6vyldSOVy6JbXv6Ms5/yKxx4jffCXroCmw8BHkEpq43RAzwcJmN0szbl UWRfYT3qvQRKVP3K+NwruZHHvb6sP3S25K8I0VSpfkZrtbXj1zwEuuHAurUzMFTTpve+ 5YhlCatDWLDfRDuTjLSJdZkmYUumBi6Nv02530wyZJGswQKRiML3/urL94DGBSEuYjMY si2rQMlC2IbkAQNjSDCCcmbtDyVbUuXLQ4LZg7g9dc4v9ceXMCQ/DDelIgFHkz7+Jzkd vvx6YOSz668WHsS3day5sE9LSL7hS20U+nipBP/a8JTWZ0k7BcUwPH7onjuMpdmvHs3z 6uUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lFOjc52+8+hT07tTL2YCB1U/dZ8Xx1kaP44Rh2w3vjA=; fh=PItKDGtOx5BlGMk5ZMtGvYW+dN4XePXQLztrosvtD0o=; b=dz9zVSweK4CPDGwE2BO8pIzGUKK9xolpwOkllMiuy/m1cehg/xt8qSsayopPJGvwz1 w9uXmBqHm/tIG26b08ZBvYHMi2FEYhgM0bBhiA9tb859f0s76zgCAjZnu8ketimBvlvl 0kuyXtUiFIp2A6mHwPj06a1maO3r6IrUIIKZbxk4LlkYXyd4yT6OnqY79JYGAHlShEkw 7CojtsZwGqHqDLlmA0Ju7zG08aQA9SL0HZoJjfFLS2YvwIhQhYlVtSJdOaQYGcJW3cmc 5DcaQoLT86yfE26Z2btA0Fksys1G98mh3T4GxmWGQbbVv/DxRTaha+EhA1e6Xe2lOXmz Ereg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=kOFWeNAg; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-128509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m15-20020a1709062b8f00b00a3e6c5fa398si5718108ejg.304.2024.04.02.11.35.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 11:35:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=kOFWeNAg; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-128509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D89B81F233A6 for ; Tue, 2 Apr 2024 18:35:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA9C515B147; Tue, 2 Apr 2024 18:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="kOFWeNAg" Received: from msa.smtpout.orange.fr (msa-218.smtpout.orange.fr [193.252.23.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CD278495; Tue, 2 Apr 2024 18:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.252.23.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712082927; cv=none; b=ijUzlt66XRsm+P+hPLy8sCuIao1GqitqhaLOeKI50HWEOJTkrwDp0og7yqLXuwlLH7rLA5biAlnQ56p52R6K2k9HpI/s/O12566BqcN8cKaJuVNnKcrp8BpwQf4cAHtwy+e4TYFEOrYu9xzJ8InqrL3O203tYf/zMhsvv7C94FQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712082927; c=relaxed/simple; bh=1Tr3evgpqgoyinYe9ZXN3oojD3I0yY6WTZcG5ZHh2iw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MRvl4NHnakUyGHha8VsXaXotIy/k3QuhRAAcyTfZkYzT5j6Ue5f8ffV8YjelH3CwN9+xdtvvNWSuJ4TQU6kSu3a77IpQhskLbT5T1PSTLJqC9CTN4LAYkURqoBNwiAAyFG0RE/NY0G8KXT+CPaBLcCfP/HWq7l6Od7YuklN1oLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=kOFWeNAg; arc=none smtp.client-ip=193.252.23.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from fedora.home ([86.243.17.157]) by smtp.orange.fr with ESMTPA id rixOriJikJkhtrixOr9UEV; Tue, 02 Apr 2024 20:34:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1712082845; bh=lFOjc52+8+hT07tTL2YCB1U/dZ8Xx1kaP44Rh2w3vjA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=kOFWeNAgbhKrXzWSoEoiSTd48dAtjGPnz8qptymiT3IBkhAiIfGRmhZqrVFVvCiB8 mDhcfF8VbGU8jJglg7pTBRz9h62HW/B69GMk6lWmKQAygE4DTvrBZn+sKrmL0gQ5ll BsqWckqY4xDzRk2bgrvWubZt+PFlB3O+x20F9HJ/AM7sw8uwHCFuzFjJ0vET4E25ex PVbo2Bsas+rBuwQz/yrkO4JV0CSfTqyLjBRmhAIA+Km5Y+4LgQkB2PASmIJxyoFMdG Sj5THfl/Sx3M+AyF/MzJrc5W63TjVnzUOuAz80A7/kkzwy0t7AxJVgY3qF2DQlLbuP J/CpnVD1uVVcA== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 02 Apr 2024 20:34:05 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Vladimir Oltean , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Michael Walle Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , netdev@vger.kernel.org Subject: [PATCH net] net: dsa: sja1105: Fix parameters order in sja1110_pcs_mdio_write_c45() Date: Tue, 2 Apr 2024 20:33:56 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The definition and declaration of sja1110_pcs_mdio_write_c45() don't have parameters in the same order. Knowing that sja1110_pcs_mdio_write_c45() is used as a function pointer in 'sja1105_info' structure with .pcs_mdio_write_c45, and that we have: int (*pcs_mdio_write_c45)(struct mii_bus *bus, int phy, int mmd, int reg, u16 val); it is likely that the definition is the one to change. Found with cppcheck, funcArgOrderDifferent. Fixes: ae271547bba6 ("net: dsa: sja1105: C45 only transactions for PCS") Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/net/dsa/sja1105/sja1105_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/sja1105/sja1105_mdio.c b/drivers/net/dsa/sja1105/sja1105_mdio.c index 833e55e4b961..52ddb4ef259e 100644 --- a/drivers/net/dsa/sja1105/sja1105_mdio.c +++ b/drivers/net/dsa/sja1105/sja1105_mdio.c @@ -94,7 +94,7 @@ int sja1110_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) return tmp & 0xffff; } -int sja1110_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int reg, int mmd, +int sja1110_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, int reg, u16 val) { struct sja1105_mdio_private *mdio_priv = bus->priv; -- 2.44.0