From: kernel test robot <lkp@intel.com>
To: Wei Fang <wei.fang@nxp.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Jakub Kicinski <kuba@kernel.org>,
Claudiu Manoil <claudiu.manoil@nxp.com>
Subject: drivers/net/ethernet/freescale/enetc/enetc.h:84:9: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '130560' to '65024'
Date: Mon, 05 Jan 2026 06:05:30 +0800 [thread overview]
Message-ID: <202601050637.kHEKKOG7-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 54e82e93ca93e49cb4c33988adec5c8cb9d0df31
commit: e59bc32df2e989f034623a580e30a2a72af33b3f net: enetc: correct the value of ENETC_RXB_TRUESIZE
date: 3 months ago
config: powerpc-randconfig-001-20260105 (https://download.01.org/0day-ci/archive/20260105/202601050637.kHEKKOG7-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260105/202601050637.kHEKKOG7-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/202601050637.kHEKKOG7-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/freescale/enetc/enetc.c:4:
drivers/net/ethernet/freescale/enetc/enetc.c: In function 'enetc_build_xdp_buff':
>> drivers/net/ethernet/freescale/enetc/enetc.h:84:9: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '130560' to '65024' [-Woverflow]
84 | (SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - XDP_PACKET_HEADROOM)
| ^
drivers/net/ethernet/freescale/enetc/enetc.c:1876:24: note: in expansion of macro 'ENETC_RXB_DMA_SIZE_XDP'
1876 | size = ENETC_RXB_DMA_SIZE_XDP;
| ^~~~~~~~~~~~~~~~~~~~~~
vim +84 drivers/net/ethernet/freescale/enetc/enetc.h
69797ff888d3db Wei Fang 2024-12-19 77
d4fd0404c1c95b Claudiu Manoil 2019-01-22 78 #define ENETC_RX_MAXFRM_SIZE ENETC_MAC_MAXFRM_SIZE
e59bc32df2e989 Wei Fang 2025-10-16 79 #define ENETC_RXB_TRUESIZE (PAGE_SIZE >> 1)
d4fd0404c1c95b Claudiu Manoil 2019-01-22 80 #define ENETC_RXB_PAD NET_SKB_PAD /* add extra space if needed */
d4fd0404c1c95b Claudiu Manoil 2019-01-22 81 #define ENETC_RXB_DMA_SIZE \
d4fd0404c1c95b Claudiu Manoil 2019-01-22 82 (SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - ENETC_RXB_PAD)
d1b15102dd16ad Vladimir Oltean 2021-03-31 83 #define ENETC_RXB_DMA_SIZE_XDP \
d1b15102dd16ad Vladimir Oltean 2021-03-31 @84 (SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - XDP_PACKET_HEADROOM)
d4fd0404c1c95b Claudiu Manoil 2019-01-22 85
:::::: The code at line 84 was first introduced by commit
:::::: d1b15102dd16adc17fd5e4db8a485e6459f98906 net: enetc: add support for XDP_DROP and XDP_PASS
:::::: TO: Vladimir Oltean <vladimir.oltean@nxp.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-01-04 22:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202601050637.kHEKKOG7-lkp@intel.com \
--to=lkp@intel.com \
--cc=claudiu.manoil@nxp.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=wei.fang@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®