From: kernel test robot <lkp@intel.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>,
Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Chen-Yu Tsai <wens@csie.org>, Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org,
linux-mediatek@lists.infradead.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-sunxi@lists.linux.dev,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
Samuel Holland <samuel@sholland.org>,
Vinod Koul <vkoul@kernel.org>
Subject: Re: [PATCH net-next 3/9] net: stmmac: remove of_get_phy_mode()
Date: Wed, 12 Mar 2025 07:35:01 +0800 [thread overview]
Message-ID: <202503120741.lpX5066n-lkp@intel.com> (raw)
In-Reply-To: <E1trbxk-005qYA-Up@rmk-PC.armlinux.org.uk>
Hi Russell,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Russell-King-Oracle/net-stmmac-qcom-ethqos-remove-of_get_phy_mode/20250311-001446
base: net-next/main
patch link: https://lore.kernel.org/r/E1trbxk-005qYA-Up%40rmk-PC.armlinux.org.uk
patch subject: [PATCH net-next 3/9] net: stmmac: remove of_get_phy_mode()
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250312/202503120741.lpX5066n-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250312/202503120741.lpX5066n-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503120741.lpX5066n-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:11:
In file included from include/linux/of_net.h:9:
In file included from include/linux/phy.h:16:
In file included from include/linux/ethtool.h:18:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:10:
In file included from include/linux/mm.h:2224:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:94:4: warning: variable 'phy_mode' is uninitialized when used here [-Wuninitialized]
94 | phy_mode);
| ^~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:67:2: note: variable 'phy_mode' is declared here
67 | phy_interface_t phy_mode;
| ^
4 warnings generated.
vim +/phy_mode +94 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 61
41b984be408c088 Russell King (Oracle 2025-03-10 62) static struct anarion_gmac *
41b984be408c088 Russell King (Oracle 2025-03-10 63) anarion_config_dt(struct platform_device *pdev,
41b984be408c088 Russell King (Oracle 2025-03-10 64) struct plat_stmmacenet_data *plat_dat)
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 65 {
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 66 struct anarion_gmac *gmac;
0c65b2b90d13c1d Andrew Lunn 2019-11-04 67 phy_interface_t phy_mode;
0c65b2b90d13c1d Andrew Lunn 2019-11-04 68 void __iomem *ctl_block;
0c65b2b90d13c1d Andrew Lunn 2019-11-04 69 int err;
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 70
ad124aa34e51439 YueHaibing 2019-08-21 71 ctl_block = devm_platform_ioremap_resource(pdev, 1);
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 72 if (IS_ERR(ctl_block)) {
51fe084b17e795f Simon Horman 2023-04-06 73 err = PTR_ERR(ctl_block);
51fe084b17e795f Simon Horman 2023-04-06 74 dev_err(&pdev->dev, "Cannot get reset region (%d)!\n", err);
51fe084b17e795f Simon Horman 2023-04-06 75 return ERR_PTR(err);
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 76 }
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 77
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 78 gmac = devm_kzalloc(&pdev->dev, sizeof(*gmac), GFP_KERNEL);
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 79 if (!gmac)
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 80 return ERR_PTR(-ENOMEM);
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 81
9f12541d684b925 Simon Horman 2023-04-06 82 gmac->ctl_block = ctl_block;
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 83
41b984be408c088 Russell King (Oracle 2025-03-10 84) switch (plat_dat->phy_interface) {
df561f6688fef77 Gustavo A. R. Silva 2020-08-23 85 case PHY_INTERFACE_MODE_RGMII:
df561f6688fef77 Gustavo A. R. Silva 2020-08-23 86 fallthrough;
df561f6688fef77 Gustavo A. R. Silva 2020-08-23 87 case PHY_INTERFACE_MODE_RGMII_ID:
df561f6688fef77 Gustavo A. R. Silva 2020-08-23 88 case PHY_INTERFACE_MODE_RGMII_RXID:
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 89 case PHY_INTERFACE_MODE_RGMII_TXID:
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 90 gmac->phy_intf_sel = GMAC_CONFIG_INTF_RGMII;
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 91 break;
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 92 default:
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 93 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n",
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 @94 phy_mode);
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 95 return ERR_PTR(-ENOTSUPP);
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 96 }
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 97
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 98 return gmac;
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 99 }
2d1611aff3f22a5 Alexandru Gagniuc 2017-08-04 100
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-03-11 23:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 12:08 [PATCH net-next 0/9] net: stmmac: remove unnecessary of_get_phy_mode() calls Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 1/9] net: stmmac: qcom-ethqos: remove of_get_phy_mode() Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 2/9] net: stmmac: mediatek: " Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 3/9] net: stmmac: " Russell King (Oracle)
2025-03-11 23:35 ` kernel test robot [this message]
2025-03-10 12:10 ` [PATCH net-next 4/9] net: stmmac: ipq806x: " Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 5/9] net: stmmac: meson8b: " Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 6/9] net: stmmac: rk: " Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 7/9] net: stmmac: sti: " Russell King (Oracle)
2025-03-10 12:10 ` [PATCH net-next 8/9] net: stmmac: sun8i: " Russell King (Oracle)
2025-03-10 13:38 ` Andre Przywara
2025-03-10 12:10 ` [PATCH net-next 9/9] net: stmmac: sunxi: " Russell King (Oracle)
2025-03-10 16:05 ` Jernej Škrabec
2025-03-10 13:42 ` [PATCH net-next 0/9] net: stmmac: remove unnecessary of_get_phy_mode() calls Michal Kubiak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202503120741.lpX5066n-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=jbrunet@baylibre.com \
--cc=jernej.skrabec@gmail.com \
--cc=khilman@baylibre.com \
--cc=kuba@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=llvm@lists.linux.dev \
--cc=martin.blumenstingl@googlemail.com \
--cc=matthias.bgg@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=samuel@sholland.org \
--cc=vkoul@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).