[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202409222040.EPSCh9v9-lkp@intel.com>
Date: Sun, 22 Sep 2024 20:38:59 +0800
From: kernel test robot <lkp@...el.com>
To: Breno Leitao <leitao@...ian.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Jakub Kicinski <kuba@...nel.org>,
Vladimir Oltean <vladimir.oltean@....com>
Subject: drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse:
sparse: incorrect type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 88264981f2082248e892a706b2c5004650faac54
commit: 782fe08e9861d00ce8aca370453dd9ceb9a23d50 soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST
date: 10 weeks ago
config: sparc64-randconfig-r133-20240922 (https://download.01.org/0day-ci/archive/20240922/202409222040.EPSCh9v9-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240922/202409222040.EPSCh9v9-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409222040.EPSCh9v9-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, ...):
>> drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] fd_status @@ got restricted __be32 const [usertype] status @@
drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse: expected unsigned int [usertype] fd_status
drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse: got restricted __be32 const [usertype] status
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, drivers/net/ethernet/freescale/dpaa/dpaa_eth_trace.h):
>> drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] fd_status @@ got restricted __be32 const [usertype] status @@
drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse: expected unsigned int [usertype] fd_status
drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h:29:1: sparse: got restricted __be32 const [usertype] status
>> drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:2745:24: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: note: in included file (through include/linux/module.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: note: in included file:
>> include/soc/fsl/qman.h:245:16: sparse: sparse: cast to restricted __be32
>> include/soc/fsl/qman.h:245:16: sparse: sparse: cast from restricted __be16
vim +29 drivers/net/ethernet/freescale/dpaa/./dpaa_eth_trace.h
eb11ddf36eb87f Madalin Bucur 2016-11-15 16
eb11ddf36eb87f Madalin Bucur 2016-11-15 17 #define fd_format_name(format) { qm_fd_##format, #format }
eb11ddf36eb87f Madalin Bucur 2016-11-15 18 #define fd_format_list \
eb11ddf36eb87f Madalin Bucur 2016-11-15 19 fd_format_name(contig), \
eb11ddf36eb87f Madalin Bucur 2016-11-15 20 fd_format_name(sg)
eb11ddf36eb87f Madalin Bucur 2016-11-15 21
eb11ddf36eb87f Madalin Bucur 2016-11-15 22 /* This is used to declare a class of events.
eb11ddf36eb87f Madalin Bucur 2016-11-15 23 * individual events of this type will be defined below.
eb11ddf36eb87f Madalin Bucur 2016-11-15 24 */
eb11ddf36eb87f Madalin Bucur 2016-11-15 25
eb11ddf36eb87f Madalin Bucur 2016-11-15 26 /* Store details about a frame descriptor and the FQ on which it was
eb11ddf36eb87f Madalin Bucur 2016-11-15 27 * transmitted/received.
eb11ddf36eb87f Madalin Bucur 2016-11-15 28 */
eb11ddf36eb87f Madalin Bucur 2016-11-15 @29 DECLARE_EVENT_CLASS(dpaa_eth_fd,
eb11ddf36eb87f Madalin Bucur 2016-11-15 30 /* Trace function prototype */
eb11ddf36eb87f Madalin Bucur 2016-11-15 31 TP_PROTO(struct net_device *netdev,
eb11ddf36eb87f Madalin Bucur 2016-11-15 32 struct qman_fq *fq,
eb11ddf36eb87f Madalin Bucur 2016-11-15 33 const struct qm_fd *fd),
eb11ddf36eb87f Madalin Bucur 2016-11-15 34
eb11ddf36eb87f Madalin Bucur 2016-11-15 35 /* Repeat argument list here */
eb11ddf36eb87f Madalin Bucur 2016-11-15 36 TP_ARGS(netdev, fq, fd),
eb11ddf36eb87f Madalin Bucur 2016-11-15 37
eb11ddf36eb87f Madalin Bucur 2016-11-15 38 /* A structure containing the relevant information we want to record.
eb11ddf36eb87f Madalin Bucur 2016-11-15 39 * Declare name and type for each normal element, name, type and size
eb11ddf36eb87f Madalin Bucur 2016-11-15 40 * for arrays. Use __string for variable length strings.
eb11ddf36eb87f Madalin Bucur 2016-11-15 41 */
eb11ddf36eb87f Madalin Bucur 2016-11-15 42 TP_STRUCT__entry(
eb11ddf36eb87f Madalin Bucur 2016-11-15 43 __field(u32, fqid)
eb11ddf36eb87f Madalin Bucur 2016-11-15 44 __field(u64, fd_addr)
eb11ddf36eb87f Madalin Bucur 2016-11-15 45 __field(u8, fd_format)
eb11ddf36eb87f Madalin Bucur 2016-11-15 46 __field(u16, fd_offset)
eb11ddf36eb87f Madalin Bucur 2016-11-15 47 __field(u32, fd_length)
eb11ddf36eb87f Madalin Bucur 2016-11-15 48 __field(u32, fd_status)
eb11ddf36eb87f Madalin Bucur 2016-11-15 49 __string(name, netdev->name)
eb11ddf36eb87f Madalin Bucur 2016-11-15 50 ),
eb11ddf36eb87f Madalin Bucur 2016-11-15 51
eb11ddf36eb87f Madalin Bucur 2016-11-15 52 /* The function that assigns values to the above declared fields */
eb11ddf36eb87f Madalin Bucur 2016-11-15 53 TP_fast_assign(
eb11ddf36eb87f Madalin Bucur 2016-11-15 54 __entry->fqid = fq->fqid;
eb11ddf36eb87f Madalin Bucur 2016-11-15 55 __entry->fd_addr = qm_fd_addr_get64(fd);
eb11ddf36eb87f Madalin Bucur 2016-11-15 56 __entry->fd_format = qm_fd_get_format(fd);
eb11ddf36eb87f Madalin Bucur 2016-11-15 57 __entry->fd_offset = qm_fd_get_offset(fd);
eb11ddf36eb87f Madalin Bucur 2016-11-15 58 __entry->fd_length = qm_fd_get_length(fd);
eb11ddf36eb87f Madalin Bucur 2016-11-15 59 __entry->fd_status = fd->status;
2c92ca849fcc6e Steven Rostedt (Google 2024-05-16 60) __assign_str(name);
eb11ddf36eb87f Madalin Bucur 2016-11-15 61 ),
eb11ddf36eb87f Madalin Bucur 2016-11-15 62
eb11ddf36eb87f Madalin Bucur 2016-11-15 63 /* This is what gets printed when the trace event is triggered */
eb11ddf36eb87f Madalin Bucur 2016-11-15 64 TP_printk("[%s] fqid=%d, fd: addr=0x%llx, format=%s, off=%u, len=%u, status=0x%08x",
eb11ddf36eb87f Madalin Bucur 2016-11-15 65 __get_str(name), __entry->fqid, __entry->fd_addr,
eb11ddf36eb87f Madalin Bucur 2016-11-15 66 __print_symbolic(__entry->fd_format, fd_format_list),
eb11ddf36eb87f Madalin Bucur 2016-11-15 67 __entry->fd_offset, __entry->fd_length, __entry->fd_status)
eb11ddf36eb87f Madalin Bucur 2016-11-15 68 );
eb11ddf36eb87f Madalin Bucur 2016-11-15 69
:::::: The code at line 29 was first introduced by commit
:::::: eb11ddf36eb87f3d568248370be4fdaaefb5043c dpaa_eth: add trace points
:::::: TO: Madalin Bucur <madalin.bucur@....com>
:::::: CC: David S. Miller <davem@...emloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists