[chrome-os:chromeos-4.4 29993/30000] /tmp/dma-fence-007772.s:7570: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 877b088a3eb47ffa001089d703784629d97b4e72
commit: dee8dc25486a6fe7c54614090e359ab5a611e4be [29993/30000] CHROMIUM: Merge 'v4.4.242' into chromeos-4.4
config: x86_64-randconfig-a005-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9a85643cd357e412cff69067bb5c4840e228c2ab)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout dee8dc25486a6fe7c54614090e359ab5a611e4be
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro 'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/dma-buf/dma-fence.c:27:
In file included from include/trace/events/dma_fence.h:128:
In file included from include/trace/define_trace.h:90:
In file included from include/trace/trace_events.h:19:
In file included from include/linux/trace_events.h:5:
In file included from include/linux/ring_buffer.h:7:
In file included from include/linux/poll.h:11:
arch/x86/include/asm/uaccess.h:754:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:73: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:139:29: note: expanded from macro '__branch_check__'
______r = likely_notrace(x); \
^
include/linux/compiler.h:126:47: note: expanded from macro 'likely_notrace'
#define likely_notrace(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/dma-buf/dma-fence.c:27:
In file included from include/trace/events/dma_fence.h:128:
In file included from include/trace/define_trace.h:90:
In file included from include/trace/trace_events.h:19:
In file included from include/linux/trace_events.h:5:
In file included from include/linux/ring_buffer.h:7:
In file included from include/linux/poll.h:11:
arch/x86/include/asm/uaccess.h:754:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:43: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
In file included from drivers/dma-buf/dma-fence.c:27:
In file included from include/trace/events/dma_fence.h:128:
In file included from include/trace/define_trace.h:90:
In file included from include/trace/trace_events.h:19:
In file included from include/linux/trace_events.h:5:
In file included from include/linux/ring_buffer.h:7:
In file included from include/linux/poll.h:11:
arch/x86/include/asm/uaccess.h:754:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:51: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
In file included from drivers/dma-buf/dma-fence.c:27:
In file included from include/trace/events/dma_fence.h:128:
In file included from include/trace/define_trace.h:90:
In file included from include/trace/trace_events.h:19:
In file included from include/linux/trace_events.h:5:
In file included from include/linux/ring_buffer.h:7:
In file included from include/linux/poll.h:11:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:73: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:139:29: note: expanded from macro '__branch_check__'
______r = likely_notrace(x); \
^
include/linux/compiler.h:126:47: note: expanded from macro 'likely_notrace'
#define likely_notrace(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/dma-buf/dma-fence.c:27:
In file included from include/trace/events/dma_fence.h:128:
In file included from include/trace/define_trace.h:90:
In file included from include/trace/trace_events.h:19:
In file included from include/linux/trace_events.h:5:
In file included from include/linux/ring_buffer.h:7:
In file included from include/linux/poll.h:11:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:43: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
In file included from drivers/dma-buf/dma-fence.c:27:
In file included from include/trace/events/dma_fence.h:128:
In file included from include/trace/define_trace.h:90:
In file included from include/trace/trace_events.h:19:
In file included from include/linux/trace_events.h:5:
In file included from include/linux/ring_buffer.h:7:
In file included from include/linux/poll.h:11:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:51: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
drivers/dma-buf/dma-fence.c:438:16: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < count; ++i) {
~ ^ ~~~~~
9 warnings generated.
/tmp/dma-fence-007772.s: Assembler messages:
>> /tmp/dma-fence-007772.s:7570: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
/tmp/dma-fence-007772.s:8190: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
/tmp/dma-fence-007772.s:10168: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
/tmp/dma-fence-007772.s:10823: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
/tmp/dma-fence-007772.s:12383: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e28c0d7c92c89016c12a677616668957351e7542
commit: 005b73d0dd83c9cb9420a196bea8070cde30ecac m68knommu: __force type casts for raw IO access
date: 4 months ago
config: m68k-randconfig-s031-20201115 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/dma/sun6i-dma.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/scatterlist.h, include/linux/dmaengine.h):
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile [usertype]
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
>> drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *address @@ got void [noderef] __iomem *base @@
>> drivers/dma/sun6i-dma.c:244:45: sparse: expected void *address
drivers/dma/sun6i-dma.c:244:45: sparse: got void [noderef] __iomem *base
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: too many warnings
vim +244 drivers/dma/sun6i-dma.c
555859308723d8 Maxime Ripard 2014-07-17 240
555859308723d8 Maxime Ripard 2014-07-17 241 static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17 242 struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17 243 {
42c0d54e623695 Vinod Koul 2014-07-28 @244 phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17 245
555859308723d8 Maxime Ripard 2014-07-17 246 dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17 247 "\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 248 "\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 249 "\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 250 "\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 251 "\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 252 "\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 253 "\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17 254 "\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17 255 pchan->idx, ®,
555859308723d8 Maxime Ripard 2014-07-17 256 DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17 257 readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17 258 DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17 259 readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17 260 DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17 261 readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17 262 DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17 263 readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17 264 DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17 265 readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17 266 DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17 267 readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17 268 DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17 269 readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17 270 DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17 271 readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17 272 }
555859308723d8 Maxime Ripard 2014-07-17 273
:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets
:::::: TO: Vinod Koul <vinod.koul(a)intel.com>
:::::: CC: Vinod Koul <vinod.koul(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
aiu-encoder-spdif.c:undefined reference to `clk_set_parent'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e28c0d7c92c89016c12a677616668957351e7542
commit: 6ae9ca9ce986bffe71fd0fbf9595de8500891b52 ASoC: meson: aiu: add i2s and spdif support
date: 9 months ago
config: mips-randconfig-c003-20201104 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6ae9ca9ce986bffe71fd0fbf9595de8500891b52
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mipsel-linux-ld: drivers/gpu/drm/exynos/exynos_mixer.o: in function `mixer_bind':
exynos_mixer.c:(.text+0x94c): undefined reference to `clk_set_parent'
mipsel-linux-ld: drivers/gpu/drm/exynos/exynos_hdmi.o: in function `hdmi_clk_set_parents':
exynos_hdmi.c:(.text+0x374): undefined reference to `clk_set_parent'
mipsel-linux-ld: drivers/gpu/drm/ingenic/ingenic-drm.o: in function `ingenic_drm_probe':
ingenic-drm.c:(.text+0xfa0): undefined reference to `clk_get_parent'
mipsel-linux-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init':
phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent'
mipsel-linux-ld: sound/soc/meson/aiu-encoder-spdif.o: in function `aiu_encoder_spdif_startup':
>> aiu-encoder-spdif.c:(.text+0x3a0): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/meson/axg-tdm-formatter.o: in function `axg_tdm_formatter_event':
(.text+0x7ec): undefined reference to `clk_set_parent'
mipsel-linux-ld: (.text+0x940): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/sh/fsi.o: in function `fsi_clk_set_rate_external':
fsi.c:(.text+0x26d8): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/stm/stm32_i2s.o: in function `stm32_i2s_hw_params':
stm32_i2s.c:(.text+0x17f0): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/stm/stm32_i2s.o:stm32_i2s.c:(.text+0x195c): more undefined references to `clk_set_parent' follow
mipsel-linux-ld: sound/soc/ti/omap-dmic.o: in function `omap_dmic_set_dai_sysclk':
omap-dmic.c:(.text+0xa98): undefined reference to `clk_get_parent'
mipsel-linux-ld: omap-dmic.c:(.text+0xadc): undefined reference to `clk_set_parent'
mipsel-linux-ld: omap-dmic.c:(.text+0xbb8): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/ti/omap-mcbsp.o: in function `omap2_mcbsp_set_clks_src':
omap-mcbsp.c:(.text+0x664): undefined reference to `clk_set_parent'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-stable-rc:linux-5.9.y 967/1457] drivers/hwtracing/coresight/coresight-etm-perf.c:226:37: warning: passing argument 1 of 'coresight_get_enabled_sink' makes pointer from integer without a cast
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.9.y
head: f022ed13f4d94a0b1bf5ec9e1f08e964f6878d55
commit: fc5382d70826c92e90d9efa90a4c671efe15f268 [967/1457] coresight: Make sysfs functional on topologies with per core sink
config: arm-randconfig-r033-20201115 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.9.y
git checkout fc5382d70826c92e90d9efa90a4c671efe15f268
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/hwtracing/coresight/coresight-etm-perf.c: In function 'etm_setup_aux':
>> drivers/hwtracing/coresight/coresight-etm-perf.c:226:37: warning: passing argument 1 of 'coresight_get_enabled_sink' makes pointer from integer without a cast [-Wint-conversion]
226 | sink = coresight_get_enabled_sink(true);
| ^~~~
| |
| int
In file included from drivers/hwtracing/coresight/coresight-etm-perf.h:11,
from drivers/hwtracing/coresight/coresight-etm-perf.c:21:
drivers/hwtracing/coresight/coresight-priv.h:152:1: note: expected 'struct coresight_device *' but argument is of type 'int'
152 | coresight_get_enabled_sink(struct coresight_device *source);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/coresight_get_enabled_sink +226 drivers/hwtracing/coresight/coresight-etm-perf.c
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 206
840018668ce2d96 Mathieu Poirier 2019-01-31 207 static void *etm_setup_aux(struct perf_event *event, void **pages,
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 208 int nr_pages, bool overwrite)
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 209 {
2264439258870ed Mathieu Poirier 2019-01-31 210 u32 id;
840018668ce2d96 Mathieu Poirier 2019-01-31 211 int cpu = event->cpu;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 212 cpumask_t *mask;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 213 struct coresight_device *sink;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 214 struct etm_event_data *event_data = NULL;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 215
840018668ce2d96 Mathieu Poirier 2019-01-31 216 event_data = alloc_event_data(cpu);
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 217 if (!event_data)
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 218 return NULL;
d755209f6afddec Suzuki K Poulose 2017-06-05 219 INIT_WORK(&event_data->work, free_event_data);
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 220
2264439258870ed Mathieu Poirier 2019-01-31 221 /* First get the selected sink from user space. */
2264439258870ed Mathieu Poirier 2019-01-31 222 if (event->attr.config2) {
2264439258870ed Mathieu Poirier 2019-01-31 223 id = (u32)event->attr.config2;
2264439258870ed Mathieu Poirier 2019-01-31 224 sink = coresight_get_sink_by_id(id);
2264439258870ed Mathieu Poirier 2019-01-31 225 } else {
d52c9750f150111 Mathieu Poirier 2016-11-29 @226 sink = coresight_get_enabled_sink(true);
2264439258870ed Mathieu Poirier 2019-01-31 227 }
2264439258870ed Mathieu Poirier 2019-01-31 228
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 229 mask = &event_data->mask;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 230
f9d81a657bb833e Suzuki K Poulose 2018-09-20 231 /*
f9d81a657bb833e Suzuki K Poulose 2018-09-20 232 * Setup the path for each CPU in a trace session. We try to build
f9d81a657bb833e Suzuki K Poulose 2018-09-20 233 * trace path for each CPU in the mask. If we don't find an ETM
f9d81a657bb833e Suzuki K Poulose 2018-09-20 234 * for the CPU or fail to build a path, we clear the CPU from the
f9d81a657bb833e Suzuki K Poulose 2018-09-20 235 * mask and continue with the rest. If ever we try to trace on those
f9d81a657bb833e Suzuki K Poulose 2018-09-20 236 * CPUs, we can handle it and fail the session.
f9d81a657bb833e Suzuki K Poulose 2018-09-20 237 */
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 238 for_each_cpu(cpu, mask) {
5ecabe4a76e8cdb Suzuki K Poulose 2018-09-20 239 struct list_head *path;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 240 struct coresight_device *csdev;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 241
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 242 csdev = per_cpu(csdev_src, cpu);
f9d81a657bb833e Suzuki K Poulose 2018-09-20 243 /*
f9d81a657bb833e Suzuki K Poulose 2018-09-20 244 * If there is no ETM associated with this CPU clear it from
f9d81a657bb833e Suzuki K Poulose 2018-09-20 245 * the mask and continue with the rest. If ever we try to trace
f9d81a657bb833e Suzuki K Poulose 2018-09-20 246 * on this CPU, we handle it accordingly.
f9d81a657bb833e Suzuki K Poulose 2018-09-20 247 */
f9d81a657bb833e Suzuki K Poulose 2018-09-20 248 if (!csdev) {
f9d81a657bb833e Suzuki K Poulose 2018-09-20 249 cpumask_clear_cpu(cpu, mask);
f9d81a657bb833e Suzuki K Poulose 2018-09-20 250 continue;
f9d81a657bb833e Suzuki K Poulose 2018-09-20 251 }
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 252
bbfb8f3e4e3f10c Mike Leach 2020-07-16 253 /*
bbfb8f3e4e3f10c Mike Leach 2020-07-16 254 * No sink provided - look for a default sink for one of the
bbfb8f3e4e3f10c Mike Leach 2020-07-16 255 * devices. At present we only support topology where all CPUs
bbfb8f3e4e3f10c Mike Leach 2020-07-16 256 * use the same sink [N:1], so only need to find one sink. The
bbfb8f3e4e3f10c Mike Leach 2020-07-16 257 * coresight_build_path later will remove any CPU that does not
bbfb8f3e4e3f10c Mike Leach 2020-07-16 258 * attach to the sink, or if we have not found a sink.
bbfb8f3e4e3f10c Mike Leach 2020-07-16 259 */
bbfb8f3e4e3f10c Mike Leach 2020-07-16 260 if (!sink)
bbfb8f3e4e3f10c Mike Leach 2020-07-16 261 sink = coresight_find_default_sink(csdev);
bbfb8f3e4e3f10c Mike Leach 2020-07-16 262
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 263 /*
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 264 * Building a path doesn't enable it, it simply builds a
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 265 * list of devices from source to sink that can be
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 266 * referenced later when the path is actually needed.
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 267 */
5ecabe4a76e8cdb Suzuki K Poulose 2018-09-20 268 path = coresight_build_path(csdev, sink);
f9d81a657bb833e Suzuki K Poulose 2018-09-20 269 if (IS_ERR(path)) {
f9d81a657bb833e Suzuki K Poulose 2018-09-20 270 cpumask_clear_cpu(cpu, mask);
f9d81a657bb833e Suzuki K Poulose 2018-09-20 271 continue;
f9d81a657bb833e Suzuki K Poulose 2018-09-20 272 }
5ecabe4a76e8cdb Suzuki K Poulose 2018-09-20 273
5ecabe4a76e8cdb Suzuki K Poulose 2018-09-20 274 *etm_event_cpu_path_ptr(event_data, cpu) = path;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 275 }
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 276
bbfb8f3e4e3f10c Mike Leach 2020-07-16 277 /* no sink found for any CPU - cannot trace */
bbfb8f3e4e3f10c Mike Leach 2020-07-16 278 if (!sink)
bbfb8f3e4e3f10c Mike Leach 2020-07-16 279 goto err;
bbfb8f3e4e3f10c Mike Leach 2020-07-16 280
f9d81a657bb833e Suzuki K Poulose 2018-09-20 281 /* If we don't have any CPUs ready for tracing, abort */
f9d81a657bb833e Suzuki K Poulose 2018-09-20 282 cpu = cpumask_first(mask);
f9d81a657bb833e Suzuki K Poulose 2018-09-20 283 if (cpu >= nr_cpu_ids)
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 284 goto err;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 285
02d5c897a091f8e Mathieu Poirier 2019-04-25 286 if (!sink_ops(sink)->alloc_buffer || !sink_ops(sink)->free_buffer)
02d5c897a091f8e Mathieu Poirier 2019-04-25 287 goto err;
02d5c897a091f8e Mathieu Poirier 2019-04-25 288
f9d81a657bb833e Suzuki K Poulose 2018-09-20 289 /* Allocate the sink buffer for this session */
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 290 event_data->snk_config =
a0f08a6a9fee0ce Mathieu Poirier 2019-04-25 291 sink_ops(sink)->alloc_buffer(sink, event, pages,
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 292 nr_pages, overwrite);
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 293 if (!event_data->snk_config)
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 294 goto err;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 295
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 296 out:
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 297 return event_data;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 298
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 299 err:
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 300 etm_free_aux(event_data);
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 301 event_data = NULL;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 302 goto out;
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 303 }
0bcbf2e30ff2271 Mathieu Poirier 2016-02-17 304
:::::: The code at line 226 was first introduced by commit
:::::: d52c9750f150111dc7f73e4036f6948b20c9f8c3 coresight: reset "enable_sink" flag when need be
:::::: TO: Mathieu Poirier <mathieu.poirier(a)linaro.org>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [RFC PATCH 1/9] cxl/acpi: Add an acpi_cxl module for the CXL interconnect
by kernel test robot
Hi Ben,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on pm/linux-next]
[also build test WARNING on linus/master linux/master v5.10-rc3 next-20201113]
[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]
url: https://github.com/0day-ci/linux/commits/Ben-Widawsky/CXL-2-0-Support/202...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/a138b84a65bc7931b234fc14497d8cfe5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ben-Widawsky/CXL-2-0-Support/20201111-134547
git checkout a138b84a65bc7931b234fc14497d8cfe53d736f2
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/acpi.h:15,
from drivers/cxl/acpi.c:10:
drivers/cxl/acpi.c: In function 'acpi_cxl_add':
>> drivers/cxl/acpi.c:45:16: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'acpi_size' {aka 'unsigned int'} [-Wformat=]
45 | dev_info(dev, "found CEDT at startup: %lld bytes\n", sz);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/cxl/acpi.c:45:2: note: in expansion of macro 'dev_info'
45 | dev_info(dev, "found CEDT at startup: %lld bytes\n", sz);
| ^~~~~~~~
drivers/cxl/acpi.c:45:43: note: format string is defined here
45 | dev_info(dev, "found CEDT at startup: %lld bytes\n", sz);
| ~~~^
| |
| long long int
| %d
vim +45 drivers/cxl/acpi.c
25
26 static int acpi_cxl_add(struct acpi_device *adev)
27 {
28 struct acpi_cxl_desc *acpi_desc;
29 struct device *dev = &adev->dev;
30 struct acpi_table_header *tbl;
31 acpi_status status = AE_OK;
32 acpi_size sz;
33 int rc = 0;
34
35 status = acpi_get_table(ACPI_SIG_CEDT, 0, &tbl);
36 if (ACPI_FAILURE(status)) {
37 dev_err(dev, "failed to find CEDT at startup\n");
38 return 0;
39 }
40
41 rc = devm_add_action_or_reset(dev, acpi_cedt_put_table, tbl);
42 if (rc)
43 return rc;
44 sz = tbl->length;
> 45 dev_info(dev, "found CEDT at startup: %lld bytes\n", sz);
46
47 acpi_desc = devm_kzalloc(dev, sizeof(*acpi_desc), GFP_KERNEL);
48 if (!acpi_desc)
49 return -ENOMEM;
50 acpi_cxl_desc_init(acpi_desc, &adev->dev);
51
52 acpi_desc->acpi_header = *tbl;
53
54 return 0;
55 }
56
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
<重要>【三井住友カード】ご利用確認のお願い
by 三井住友カード
いつも弊社カードをご利用いただきありがとうございます。
昨今の第三者不正利用の急増に伴い、弊社では「不正利用監視システム」を導入し、24時間365日体制でカードのご利用に対するモニタリングを行っております。
このたび、ご本人様のご利用かどうかを確認させていただきたいお取引がありましたので、誠に勝手ながら、カードのご利用を一部制限させていただき、ご連絡させていただきました。
つきましては、以下へアクセスの上、カードのご利用確認にご協力をお願い致します。
ご回答をいただけない場合、カードのご利用制限が継続されることもございますので、予めご了承下さい。
■ご利用確認はこちら
http://smcc-cacc.sacyuc.xyz/
■発行者■
三井住友カード株式会社
http://smcc-cacc.sacyuc.xyz/
〒105-8011 東京都港区海岸1丁目2番20号 汐留ビルディング
...
1 year, 10 months
[arm:zii 13/47] drivers/net/ethernet/mediatek/mtk_eth_soc.c:437:27: error: 'eth' undeclared
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: 54999558c1d0e7ee104a7166317d5ee79b08b211
commit: 4aefa1b6d2f1257723d5748c308aac6afb73658f [13/47] net: mtk_eth_soc: use resolved link config for PCS PHY
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 4aefa1b6d2f1257723d5748c308aac6afb73658f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:21:
include/linux/phylink.h:77:2: error: expected specifier-qualifier-list before 'DECLARE_PHY_INTERFACE_MASK'
77 | DECLARE_PHY_INTERFACE_MASK(supported_interfaces);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:23:
drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_mac_link_up':
>> drivers/net/ethernet/mediatek/mtk_eth_soc.c:437:27: error: 'eth' undeclared (first use in this function)
437 | int sid = (MTK_HAS_CAPS(eth->soc->caps, MTK_SHARED_SGMII)) ?
| ^~~
drivers/net/ethernet/mediatek/mtk_eth_soc.h:761:36: note: in definition of macro 'MTK_HAS_CAPS'
761 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x))
| ^~~~
drivers/net/ethernet/mediatek/mtk_eth_soc.c:437:27: note: each undeclared identifier is reported only once for each function it appears in
437 | int sid = (MTK_HAS_CAPS(eth->soc->caps, MTK_SHARED_SGMII)) ?
| ^~~
drivers/net/ethernet/mediatek/mtk_eth_soc.h:761:36: note: in definition of macro 'MTK_HAS_CAPS'
761 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x))
| ^~~~
vim +/eth +437 drivers/net/ethernet/mediatek/mtk_eth_soc.c
425
426 static void mtk_mac_link_up(struct phylink_config *config,
427 struct phy_device *phy,
428 unsigned int mode, phy_interface_t interface,
429 int speed, int duplex, bool tx_pause, bool rx_pause)
430 {
431 struct mtk_mac *mac = container_of(config, struct mtk_mac,
432 phylink_config);
433 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id));
434
435 if (phy_interface_mode_is_8023z(interface)) {
436 /* Decide how GMAC and SGMIISYS be mapped */
> 437 int sid = (MTK_HAS_CAPS(eth->soc->caps, MTK_SHARED_SGMII)) ?
438 0 : mac->id;
439 mtk_sgmii_link_up(eth->sgmii, sid, speed, duplex);
440 }
441
442 mcr &= ~(MAC_MCR_SPEED_100 | MAC_MCR_SPEED_1000 |
443 MAC_MCR_FORCE_DPX | MAC_MCR_FORCE_TX_FC |
444 MAC_MCR_FORCE_RX_FC);
445
446 /* Configure speed */
447 switch (speed) {
448 case SPEED_2500:
449 case SPEED_1000:
450 mcr |= MAC_MCR_SPEED_1000;
451 break;
452 case SPEED_100:
453 mcr |= MAC_MCR_SPEED_100;
454 break;
455 }
456
457 /* Configure duplex */
458 if (duplex == DUPLEX_FULL)
459 mcr |= MAC_MCR_FORCE_DPX;
460
461 /* Configure pause modes - phylink will avoid these for half duplex */
462 if (tx_pause)
463 mcr |= MAC_MCR_FORCE_TX_FC;
464 if (rx_pause)
465 mcr |= MAC_MCR_FORCE_RX_FC;
466
467 mcr |= MAC_MCR_TX_EN | MAC_MCR_RX_EN;
468 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id));
469 }
470
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
sprd_thermal.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e28c0d7c92c89016c12a677616668957351e7542
commit: 554fdbaf19b188224d52d2fa80c049e4d42002e8 thermal: sprd: Add Spreadtrum thermal driver support
date: 8 months ago
config: s390-randconfig-r014-20201115 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 554fdbaf19b188224d52d2fa80c049e4d42002e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: aspeed-lpc-ctrl.c:(.text+0x184): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/soc/aspeed/aspeed-p2a-ctrl.o: in function `aspeed_p2a_ctrl_probe':
aspeed-p2a-ctrl.c:(.text+0x326): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/soc/bcm/brcmstb/common.o: in function `brcmstb_soc_device_early_init':
common.c:(.init.text+0x36): undefined reference to `of_iomap'
s390-linux-ld: common.c:(.init.text+0x5e): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/bcm/brcmstb/biuctrl.o: in function `brcmstb_biuctrl_init':
biuctrl.c:(.init.text+0x42): undefined reference to `of_iomap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_close':
dpaa2-console.c:(.text+0x64): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_probe':
dpaa2-console.c:(.text+0xbc): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_generic_console_open.isra.0.constprop.0':
dpaa2-console.c:(.text+0x1be): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x1e6): undefined reference to `iounmap'
s390-linux-ld: dpaa2-console.c:(.text+0x1fa): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x316): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/mediatek/mtk-pmic-wrap.o: in function `pwrap_probe':
mtk-pmic-wrap.c:(.text+0x114e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: mtk-pmic-wrap.c:(.text+0x1424): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/amlogic/meson-canvas.o: in function `meson_canvas_probe':
meson-canvas.c:(.text+0x56): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/qcom/qcom-geni-se.o: in function `geni_se_probe':
qcom-geni-se.c:(.text+0x5c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/qcom/qcom_gsbi.o: in function `gsbi_probe':
qcom_gsbi.c:(.text+0x6c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/qcom/smem.o: in function `qcom_smem_map_memory':
smem.c:(.text+0xaa): undefined reference to `of_address_to_resource'
s390-linux-ld: smem.c:(.text+0xe6): undefined reference to `devm_ioremap_wc'
s390-linux-ld: drivers/soc/qcom/llcc-qcom.o: in function `qcom_llcc_init_mmio':
llcc-qcom.c:(.text+0x1a2): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/renesas/renesas-soc.o: in function `renesas_soc_init':
renesas-soc.c:(.init.text+0x64): undefined reference to `of_iomap'
s390-linux-ld: renesas-soc.c:(.init.text+0x7c): undefined reference to `iounmap'
s390-linux-ld: renesas-soc.c:(.init.text+0xd0): undefined reference to `of_iomap'
s390-linux-ld: renesas-soc.c:(.init.text+0xf4): undefined reference to `ioremap'
s390-linux-ld: renesas-soc.c:(.init.text+0x108): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/renesas/rcar-sysc.o: in function `rcar_sysc_pd_init':
rcar-sysc.c:(.init.text+0x7c): undefined reference to `of_iomap'
s390-linux-ld: drivers/regulator/stm32-vrefbuf.o: in function `stm32_vrefbuf_probe':
stm32-vrefbuf.c:(.text+0x2a0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/regulator/stm32-pwr.o: in function `stm32_pwr_regulator_probe':
stm32-pwr.c:(.text+0x250): undefined reference to `of_iomap'
s390-linux-ld: drivers/regulator/uniphier-regulator.o: in function `uniphier_regulator_probe':
uniphier-regulator.c:(.text+0xd0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-ath79.o: in function `ath79_reset_probe':
reset-ath79.c:(.text+0x8c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-brcmstb-rescal.o: in function `brcm_rescal_reset_probe':
reset-brcmstb-rescal.c:(.text+0x66): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o: in function `lpc18xx_rgu_probe':
reset-lpc18xx.c:(.text+0x106): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson.o: in function `meson_reset_probe':
reset-meson.c:(.text+0x86): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson-audio-arb.o: in function `meson_audio_arb_probe':
reset-meson-audio-arb.c:(.text+0xd6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0x254): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-qcom-pdc.o: in function `qcom_pdc_reset_probe':
reset-qcom-pdc.c:(.text+0x116): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0xa8): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-stm32mp1.o: in function `stm32_reset_probe':
reset-stm32mp1.c:(.text+0x11a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-sunxi.o: in function `sun6i_reset_init':
reset-sunxi.c:(.init.text+0x6a): undefined reference to `of_address_to_resource'
s390-linux-ld: reset-sunxi.c:(.init.text+0xb6): undefined reference to `ioremap'
s390-linux-ld: drivers/reset/reset-uniphier-glue.o: in function `uniphier_glue_reset_probe':
reset-uniphier-glue.c:(.text+0x11a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x96): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/mfd/syscon.o: in function `of_syscon_register.isra.0':
syscon.c:(.text+0x1a6): undefined reference to `of_address_to_resource'
s390-linux-ld: syscon.c:(.text+0x1e6): undefined reference to `ioremap'
s390-linux-ld: syscon.c:(.text+0x374): undefined reference to `iounmap'
s390-linux-ld: drivers/mtd/nand/raw/mxic_nand.o: in function `mxic_nfc_probe':
mxic_nand.c:(.text+0x1fc): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mtd/nand/raw/stm32_fmc2_nand.o: in function `stm32_fmc2_probe':
stm32_fmc2_nand.c:(.text+0x19ce): undefined reference to `devm_ioremap_resource'
s390-linux-ld: stm32_fmc2_nand.c:(.text+0x1a3e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: stm32_fmc2_nand.c:(.text+0x1a88): undefined reference to `devm_ioremap_resource'
s390-linux-ld: stm32_fmc2_nand.c:(.text+0x1ac6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mtd/nand/raw/meson_nand.o: in function `meson_nfc_probe':
meson_nand.c:(.text+0x44e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0xac4): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0xad6): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0xb38): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0xb52): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0xcf8): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/apbps2.o: in function `apbps2_of_probe':
apbps2.c:(.text+0x246): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/serio/olpc_apsp.o: in function `olpc_apsp_probe':
olpc_apsp.c:(.text+0x2dc): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_remove':
sun4i-ps2.c:(.text+0x40): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_probe':
sun4i-ps2.c:(.text+0x350): undefined reference to `ioremap'
s390-linux-ld: sun4i-ps2.c:(.text+0x4f2): undefined reference to `iounmap'
s390-linux-ld: drivers/thermal/sprd_thermal.o: in function `sprd_thm_probe':
>> sprd_thermal.c:(.text+0xe4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
atmel-aes.c:(.text+0x7be): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0x856): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_probe':
img-hash.c:(.text+0xd70): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: img-hash.c:(.text+0xda8): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x6f4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe':
qcom-rng.c:(.text+0x11c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x38): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x1f2): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x276): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `of_davinci_timer_register':
timer-davinci.c:(.init.text+0x2a): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `davinci_timer_register':
timer-davinci.c:(.init.text+0x11e): undefined reference to `ioremap'
s390-linux-ld: drivers/clocksource/clps711x-timer.o: in function `clps711x_timer_init':
clps711x-timer.c:(.init.text+0x32): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/timer-zevio.o: in function `zevio_timer_init':
timer-zevio.c:(.init.text+0x44): undefined reference to `of_iomap'
s390-linux-ld: timer-zevio.c:(.init.text+0x86): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/bcm_kona_timer.o: in function `kona_timer_init':
bcm_kona_timer.c:(.init.text+0x60): undefined reference to `of_iomap'
s390-linux-ld: drivers/mailbox/imx-mailbox.o: in function `imx_mu_probe':
imx-mailbox.c:(.text+0x12c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/rockchip-mailbox.o: in function `rockchip_mbox_probe':
rockchip-mailbox.c:(.text+0x40e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/bcm-pdc-mailbox.o: in function `pdc_probe':
bcm-pdc-mailbox.c:(.text+0x788): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/qcom-apcs-ipc-mailbox.o: in function `qcom_apcs_ipc_probe':
qcom-apcs-ipc-mailbox.c:(.text+0x102): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/mtk-cmdq-mailbox.o: in function `cmdq_probe':
mtk-cmdq-mailbox.c:(.text+0x196): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/rpmsg/qcom_smd.o: in function `qcom_smd_channel_peek':
qcom_smd.c:(.text+0x680): undefined reference to `__ioread32_copy'
s390-linux-ld: qcom_smd.c:(.text+0x6aa): undefined reference to `__ioread32_copy'
s390-linux-ld: drivers/rpmsg/qcom_smd.o: in function `qcom_smd_write_fifo':
qcom_smd.c:(.text+0xc18): undefined reference to `__iowrite32_copy'
s390-linux-ld: qcom_smd.c:(.text+0xc3c): undefined reference to `__iowrite32_copy'
s390-linux-ld: drivers/fpga/socfpga-a10.o: in function `socfpga_a10_fpga_probe':
socfpga-a10.c:(.text+0x346): undefined reference to `devm_ioremap_resource'
s390-linux-ld: socfpga-a10.c:(.text+0x374): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/fpga/zynq-fpga.o: in function `zynq_fpga_probe':
zynq-fpga.c:(.text+0x53c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/counter/ti-eqep.o: in function `ti_eqep_probe':
ti-eqep.c:(.text+0x464): undefined reference to `devm_platform_ioremap_resource'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
phy-tegra-usb.c:undefined reference to `clk_get_parent'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e28c0d7c92c89016c12a677616668957351e7542
commit: 91687c1926bcd6b80d669375d57331b7bf80bf99 usb: phy: Enable compile testing for some of drivers
date: 11 months ago
config: mips-randconfig-c003-20201104 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 91687c1926bcd6b80d669375d57331b7bf80bf99
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mipsel-linux-ld: drivers/gpu/drm/exynos/exynos_mixer.o: in function `mixer_bind':
exynos_mixer.c:(.text+0x97c): undefined reference to `clk_set_parent'
mipsel-linux-ld: drivers/gpu/drm/exynos/exynos_hdmi.o: in function `hdmi_clk_set_parents':
exynos_hdmi.c:(.text+0x374): undefined reference to `clk_set_parent'
mipsel-linux-ld: drivers/gpu/drm/ingenic/ingenic-drm.o: in function `ingenic_drm_probe':
ingenic-drm.c:(.text+0xf40): undefined reference to `clk_get_parent'
mipsel-linux-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_probe':
>> phy-tegra-usb.c:(.text+0x6cc): undefined reference to `clk_get_parent'
mipsel-linux-ld: sound/soc/meson/axg-tdm-formatter.o: in function `axg_tdm_formatter_event':
(.text+0x7ec): undefined reference to `clk_set_parent'
mipsel-linux-ld: (.text+0x940): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/sh/fsi.o: in function `fsi_clk_set_rate_external':
fsi.c:(.text+0x2728): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/stm/stm32_i2s.o: in function `stm32_i2s_hw_params':
stm32_i2s.c:(.text+0x16b4): undefined reference to `clk_set_parent'
mipsel-linux-ld: stm32_i2s.c:(.text+0x1820): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/ti/davinci-mcasp.o:davinci-mcasp.c:(.text+0x1f28): more undefined references to `clk_set_parent' follow
mipsel-linux-ld: sound/soc/ti/omap-dmic.o: in function `omap_dmic_set_dai_sysclk':
omap-dmic.c:(.text+0xa98): undefined reference to `clk_get_parent'
mipsel-linux-ld: omap-dmic.c:(.text+0xadc): undefined reference to `clk_set_parent'
mipsel-linux-ld: omap-dmic.c:(.text+0xbb8): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/ti/omap-mcbsp.o: in function `omap2_mcbsp_set_clks_src':
omap-mcbsp.c:(.text+0x7ac): undefined reference to `clk_set_parent'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months