From: kernel test robot <lkp@intel.com>
To: Jacek Kowalski <jacek@jacekk.info>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v2 1/5] e1000: drop unnecessary constant casts to u16
Date: Wed, 9 Jul 2025 11:03:16 +0800 [thread overview]
Message-ID: <202507091034.uiPhnpcc-lkp@intel.com> (raw)
In-Reply-To: <e199da76-00d0-43d3-8f61-f433bc0352ad@jacekk.info>
Hi Jacek,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tnguy-next-queue/dev-queue]
url: https://github.com/intel-lab-lkp/linux/commits/Jacek-Kowalski/e1000-drop-unnecessary-constant-casts-to-u16/20250708-161919
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
patch link: https://lore.kernel.org/r/e199da76-00d0-43d3-8f61-f433bc0352ad%40jacekk.info
patch subject: [PATCH iwl-next v2 1/5] e1000: drop unnecessary constant casts to u16
config: riscv-randconfig-002-20250709 (https://download.01.org/0day-ci/archive/20250709/202507091034.uiPhnpcc-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 01c97b4953e87ae455bd4c41e3de3f0f0f29c61c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250709/202507091034.uiPhnpcc-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/202507091034.uiPhnpcc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/intel/e1000/e1000_main.c:316:16: warning: result of comparison of constant -1 with expression of type 'u16' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
316 | if ((old_vid != E1000_MNG_VLAN_NONE) &&
| ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +316 drivers/net/ethernet/intel/e1000/e1000_main.c
297
298 static void e1000_update_mng_vlan(struct e1000_adapter *adapter)
299 {
300 struct e1000_hw *hw = &adapter->hw;
301 struct net_device *netdev = adapter->netdev;
302 u16 vid = hw->mng_cookie.vlan_id;
303 u16 old_vid = adapter->mng_vlan_id;
304
305 if (!e1000_vlan_used(adapter))
306 return;
307
308 if (!test_bit(vid, adapter->active_vlans)) {
309 if (hw->mng_cookie.status &
310 E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT) {
311 e1000_vlan_rx_add_vid(netdev, htons(ETH_P_8021Q), vid);
312 adapter->mng_vlan_id = vid;
313 } else {
314 adapter->mng_vlan_id = E1000_MNG_VLAN_NONE;
315 }
> 316 if ((old_vid != E1000_MNG_VLAN_NONE) &&
317 (vid != old_vid) &&
318 !test_bit(old_vid, adapter->active_vlans))
319 e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q),
320 old_vid);
321 } else {
322 adapter->mng_vlan_id = vid;
323 }
324 }
325
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Jacek Kowalski <jacek@jacekk.info>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org
Subject: Re: [PATCH iwl-next v2 1/5] e1000: drop unnecessary constant casts to u16
Date: Wed, 9 Jul 2025 11:03:16 +0800 [thread overview]
Message-ID: <202507091034.uiPhnpcc-lkp@intel.com> (raw)
In-Reply-To: <e199da76-00d0-43d3-8f61-f433bc0352ad@jacekk.info>
Hi Jacek,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tnguy-next-queue/dev-queue]
url: https://github.com/intel-lab-lkp/linux/commits/Jacek-Kowalski/e1000-drop-unnecessary-constant-casts-to-u16/20250708-161919
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
patch link: https://lore.kernel.org/r/e199da76-00d0-43d3-8f61-f433bc0352ad%40jacekk.info
patch subject: [PATCH iwl-next v2 1/5] e1000: drop unnecessary constant casts to u16
config: riscv-randconfig-002-20250709 (https://download.01.org/0day-ci/archive/20250709/202507091034.uiPhnpcc-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 01c97b4953e87ae455bd4c41e3de3f0f0f29c61c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250709/202507091034.uiPhnpcc-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/202507091034.uiPhnpcc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/intel/e1000/e1000_main.c:316:16: warning: result of comparison of constant -1 with expression of type 'u16' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
316 | if ((old_vid != E1000_MNG_VLAN_NONE) &&
| ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +316 drivers/net/ethernet/intel/e1000/e1000_main.c
297
298 static void e1000_update_mng_vlan(struct e1000_adapter *adapter)
299 {
300 struct e1000_hw *hw = &adapter->hw;
301 struct net_device *netdev = adapter->netdev;
302 u16 vid = hw->mng_cookie.vlan_id;
303 u16 old_vid = adapter->mng_vlan_id;
304
305 if (!e1000_vlan_used(adapter))
306 return;
307
308 if (!test_bit(vid, adapter->active_vlans)) {
309 if (hw->mng_cookie.status &
310 E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT) {
311 e1000_vlan_rx_add_vid(netdev, htons(ETH_P_8021Q), vid);
312 adapter->mng_vlan_id = vid;
313 } else {
314 adapter->mng_vlan_id = E1000_MNG_VLAN_NONE;
315 }
> 316 if ((old_vid != E1000_MNG_VLAN_NONE) &&
317 (vid != old_vid) &&
318 !test_bit(old_vid, adapter->active_vlans))
319 e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q),
320 old_vid);
321 } else {
322 adapter->mng_vlan_id = vid;
323 }
324 }
325
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-07-09 3:03 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 8:16 [Intel-wired-lan] [PATCH iwl-next v2 0/5] drop unnecessary constant casts to u16 Jacek Kowalski
2025-07-08 8:16 ` Jacek Kowalski
2025-07-08 8:16 ` [Intel-wired-lan] [PATCH iwl-next v2 1/5] e1000: " Jacek Kowalski
2025-07-08 8:16 ` Jacek Kowalski
2025-07-08 19:06 ` [Intel-wired-lan] " Simon Horman
2025-07-08 19:06 ` Simon Horman
2025-07-08 19:40 ` [Intel-wired-lan] " Jacek Kowalski
2025-07-08 19:40 ` Jacek Kowalski
2025-07-14 12:21 ` [Intel-wired-lan] " David Laight
2025-07-14 12:21 ` David Laight
2025-07-09 3:03 ` kernel test robot [this message]
2025-07-09 3:03 ` kernel test robot
2025-07-11 17:25 ` [Intel-wired-lan] " David Laight
2025-07-11 17:25 ` David Laight
2025-07-08 8:17 ` [Intel-wired-lan] [PATCH iwl-next v2 2/5] e1000e: " Jacek Kowalski
2025-07-08 8:17 ` Jacek Kowalski
2025-07-08 19:07 ` [Intel-wired-lan] " Simon Horman
2025-07-08 19:07 ` Simon Horman
2025-07-08 8:17 ` [Intel-wired-lan] [PATCH iwl-next v2 3/5] igb: " Jacek Kowalski
2025-07-08 8:17 ` Jacek Kowalski
2025-07-08 19:08 ` [Intel-wired-lan] " Simon Horman
2025-07-08 19:08 ` Simon Horman
2025-07-08 8:18 ` [Intel-wired-lan] [PATCH iwl-next v2 4/5] igc: " Jacek Kowalski
2025-07-08 8:18 ` Jacek Kowalski
2025-07-08 19:08 ` [Intel-wired-lan] " Simon Horman
2025-07-08 19:08 ` Simon Horman
2025-07-08 8:18 ` [Intel-wired-lan] [PATCH iwl-next v2 5/5] ixgbe: " Jacek Kowalski
2025-07-08 8:18 ` Jacek Kowalski
2025-07-08 8:54 ` [Intel-wired-lan] " Loktionov, Aleksandr
2025-07-08 8:54 ` Loktionov, Aleksandr
2025-07-08 9:34 ` Jacek Kowalski
2025-07-08 10:26 ` Loktionov, Aleksandr
2025-07-08 10:26 ` Loktionov, Aleksandr
2025-07-08 11:13 ` Jacek Kowalski
2025-07-08 19:08 ` Simon Horman
2025-07-08 19:08 ` Simon Horman
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=202507091034.uiPhnpcc-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacek@jacekk.info \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.