[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202309201032.LMx2JZTV-lkp@intel.com>
Date: Wed, 20 Sep 2023 10:49:35 +0800
From: kernel test robot <lkp@...el.com>
To: Frank Li <Frank.Li@....com>, vkoul@...nel.org,
linux-kernel@...r.kernel.org, dmaengine@...r.kernel.org,
imx@...ts.linux.dev
Cc: oe-kbuild-all@...ts.linux.dev
Subject: Re: [PATCH v2 2/2] dmaengine: fsl-edma: add trace event support
Hi Frank,
kernel test robot noticed the following build warnings:
[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on linus/master v6.6-rc2 next-20230919]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Frank-Li/dmaengine-fsl-emda-add-debugfs-support/20230920-010257
base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
patch link: https://lore.kernel.org/r/20230919151430.2919042-3-Frank.Li%40nxp.com
patch subject: [PATCH v2 2/2] dmaengine: fsl-edma: add trace event support
config: x86_64-randconfig-123-20230920 (https://download.01.org/0day-ci/archive/20230920/202309201032.LMx2JZTV-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309201032.LMx2JZTV-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/202309201032.LMx2JZTV-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/dma/fsl-edma-trace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, drivers/dma/fsl-edma-trace.h, ...):
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] saddr @@ got restricted __le32 [usertype] saddr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] saddr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] saddr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] soff @@ got restricted __le16 [usertype] soff @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] soff
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] soff
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] attr @@ got restricted __le16 [usertype] attr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] attr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] attr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] nbytes @@ got restricted __le32 [usertype] nbytes @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] nbytes
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] nbytes
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] slast @@ got restricted __le32 [usertype] slast @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] slast
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] slast
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] daddr @@ got restricted __le32 [usertype] daddr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] daddr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] daddr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] doff @@ got restricted __le16 [usertype] doff @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] doff
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] doff
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] citer @@ got restricted __le16 [usertype] citer @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] citer
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] citer
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dlast_sga @@ got restricted __le32 [usertype] dlast_sga @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] dlast_sga
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] dlast_sga
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] csr @@ got restricted __le16 [usertype] csr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] csr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] csr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] biter @@ got restricted __le16 [usertype] biter @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] biter
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] biter
drivers/dma/fsl-edma-trace.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, drivers/dma/fsl-edma-trace.h, ...):
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] saddr @@ got restricted __le32 [usertype] saddr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] saddr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] saddr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] soff @@ got restricted __le16 [usertype] soff @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] soff
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] soff
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] attr @@ got restricted __le16 [usertype] attr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] attr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] attr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] nbytes @@ got restricted __le32 [usertype] nbytes @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] nbytes
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] nbytes
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] slast @@ got restricted __le32 [usertype] slast @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] slast
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] slast
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] daddr @@ got restricted __le32 [usertype] daddr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] daddr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] daddr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] doff @@ got restricted __le16 [usertype] doff @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] doff
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] doff
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] citer @@ got restricted __le16 [usertype] citer @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] citer
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] citer
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dlast_sga @@ got restricted __le32 [usertype] dlast_sga @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned int [usertype] dlast_sga
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le32 [usertype] dlast_sga
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] csr @@ got restricted __le16 [usertype] csr @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] csr
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] csr
>> drivers/dma/./fsl-edma-trace.h:62:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] biter @@ got restricted __le16 [usertype] biter @@
drivers/dma/./fsl-edma-trace.h:62:1: sparse: expected unsigned short [usertype] biter
drivers/dma/./fsl-edma-trace.h:62:1: sparse: got restricted __le16 [usertype] biter
vim +62 drivers/dma/./fsl-edma-trace.h
61
> 62 DECLARE_EVENT_CLASS(edma_log_tcd,
63 TP_PROTO(struct fsl_edma_engine *edma, struct fsl_edma_hw_tcd *tcd),
64 TP_ARGS(edma, tcd),
65 TP_STRUCT__entry(
66 __field(struct fsl_edma_engine *, edma)
67 __field(u32, saddr)
68 __field(u16, soff)
69 __field(u16, attr)
70 __field(u32, nbytes)
71 __field(u32, slast)
72 __field(u32, daddr)
73 __field(u16, doff)
74 __field(u16, citer)
75 __field(u32, dlast_sga)
76 __field(u16, csr)
77 __field(u16, biter)
78
79 ),
80 TP_fast_assign(
81 __entry->edma = edma;
82 __entry->saddr = tcd->saddr,
83 __entry->soff = tcd->soff,
84 __entry->attr = tcd->attr,
85 __entry->nbytes = tcd->nbytes,
86 __entry->slast = tcd->slast,
87 __entry->daddr = tcd->daddr,
88 __entry->doff = tcd->doff,
89 __entry->citer = tcd->citer,
90 __entry->dlast_sga = tcd->dlast_sga,
91 __entry->csr = tcd->csr,
92 __entry->biter = tcd->biter;
93 ),
94 TP_printk("\n==== TCD =====\n"
95 " saddr: 0x%08x\n"
96 " soff: 0x%04x\n"
97 " attr: 0x%04x\n"
98 " nbytes: 0x%08x\n"
99 " slast: 0x%08x\n"
100 " daddr: 0x%08x\n"
101 " doff: 0x%04x\n"
102 " citer: 0x%04x\n"
103 " dlast: 0x%08x\n"
104 " csr: 0x%04x\n"
105 " biter: 0x%04x\n",
106 __entry->saddr,
107 __entry->soff,
108 __entry->attr,
109 __entry->nbytes,
110 __entry->slast,
111 __entry->daddr,
112 __entry->doff,
113 __entry->citer,
114 __entry->dlast_sga,
115 __entry->csr,
116 __entry->biter)
117 );
118
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists