tree:
https://github.com/stffrdhrn/linux.git starfive-bad-dcache-flush
head: a5c948a9cc2b8944f00056c067fb7bde19b34843
commit: 190a4421c2e13c46514a68d63d3327ff4b2132e9 [18/39] riscv/starfive: Add VIC7100
support
config: riscv-randconfig-r034-20210522 (attached as .config)
compiler: riscv32-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://github.com/stffrdhrn/linux/commit/190a4421c2e13c46514a68d63d3327f...
git remote add stffrdhrn
https://github.com/stffrdhrn/linux.git
git fetch --no-tags stffrdhrn starfive-bad-dcache-flush
git checkout 190a4421c2e13c46514a68d63d3327ff4b2132e9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c: In function
'dw_virt_to_phys':
>
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:37:20: warning: cast from
pointer to integer of different size [-Wpointer-to-int-cast]
37 | u64
pfn_offset = ((u64)vaddr) & 0xfff;
| ^
In file included from drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:30:
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c: In function
'dw_dma_async_do_memcpy':
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:164:38: warning: cast from
pointer to integer of different size [-Wpointer-to-int-cast]
164 | DMA_DEBUG("src=%#llx, dst=%#llx\n", (u64)src, (u64)dst);
| ^
include/soc/starfive/vic7100.h:18:64: note: in definition of macro 'DMA_DEBUG'
18 | printk("[DW_DMA_DEBUG] %s():%d \n" fmt, __func__, __LINE__,
##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:164:48: warning: cast from
pointer to integer of different size [-Wpointer-to-int-cast]
164 | DMA_DEBUG("src=%#llx, dst=%#llx\n", (u64)src, (u64)dst);
| ^
include/soc/starfive/vic7100.h:18:64: note: in definition of macro 'DMA_DEBUG'
18 | printk("[DW_DMA_DEBUG] %s():%d \n" fmt, __func__, __LINE__,
##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c: In function
'dw_dma_memcpy_raw':
> include/soc/starfive/vic7100.h:18:9: warning: format
'%llx' expects argument of type 'long long unsigned int', but argument 4
has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
18 |
printk("[DW_DMA_DEBUG] %s():%d \n" fmt, __func__, __LINE__, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:236:2: note: in expansion
of macro 'DMA_DEBUG'
236 | DMA_DEBUG("src_dma=%#llx, dst_dma=%#llx \n", src_dma, dst_dma);
| ^~~~~~~~~
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:236:25: note: format
string is defined here
236 | DMA_DEBUG("src_dma=%#llx, dst_dma=%#llx \n", src_dma, dst_dma);
| ~~~~^
| |
| long long unsigned int
| %#x
In file included from drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:30:
include/soc/starfive/vic7100.h:18:9: warning: format '%llx' expects argument of
type 'long long unsigned int', but argument 5 has type 'dma_addr_t' {aka
'unsigned int'} [-Wformat=]
18 | printk("[DW_DMA_DEBUG] %s():%d \n" fmt, __func__, __LINE__,
##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:236:2: note: in expansion
of macro 'DMA_DEBUG'
236 | DMA_DEBUG("src_dma=%#llx, dst_dma=%#llx \n", src_dma, dst_dma);
| ^~~~~~~~~
drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:236:40: note: format
string is defined here
236 | DMA_DEBUG("src_dma=%#llx, dst_dma=%#llx \n", src_dma, dst_dma);
| ~~~~^
| |
| long long unsigned int
| %#x
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER ||
MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
WARNING: unmet direct dependencies detected for HW_RANDOM_STARFIVE_VIC
Depends on HW_RANDOM
Selected by
- SOC_STARFIVE_VIC7100
WARNING: unmet direct dependencies detected for ERRATA_SIFIVE
Depends on RISCV_ERRATA_ALTERNATIVE
Selected by
- SOC_SIFIVE
vim +18 include/soc/starfive/vic7100.h
12
13 #define DMA_PRINTK(fmt,...) \
14 printk("[DW_DMA] %s():%d \n" fmt, __func__, __LINE__, ##__VA_ARGS__)
15
16 #ifdef CONFIG_DW_DEBUG
17 #define DMA_DEBUG(fmt,...) \
18 printk("[DW_DMA_DEBUG] %s():%d \n" fmt, __func__,
__LINE__, ##__VA_ARGS__)
19 #else
20 #define DMA_BEBUG(fmt,...)
21 #endif
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org