tree: https://github.com/Freescale/linux-fslc 5.4-2.1.x-imx head: 3fd28d5dc75d360340eee1b6b858c29acad0cbb8 commit: 0eef22c5bf0959fcda31c140953152274586b9b6 [6777/15820] LF-794 gpu: cdn: imx8qm: Add firmware loading support config: m68k-allmodconfig (attached as .config) compiler: m68k-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/Freescale/linux-fslc/commit/0eef22c5bf0959fcda31c140953152274586b9b6 git remote add freescale-fslc https://github.com/Freescale/linux-fslc git fetch --no-tags freescale-fslc 5.4-2.1.x-imx git checkout 0eef22c5bf0959fcda31c140953152274586b9b6 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/m68k/include/asm/io_mm.h:25, from arch/m68k/include/asm/io.h:8, from include/linux/scatterlist.h:9, from include/linux/dma-mapping.h:11, from include/drm/drmP.h:37, from drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c:13: arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb': arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable] 83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \ | ^~~ arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8' 430 | rom_out_8(port, *buf++); | ^~~~~~~~~ arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw': arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable] 86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \ | ^~~ arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16' 448 | rom_out_be16(port, *buf++); | ^~~~~~~~~~~~ arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw': arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable] 90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \ | ^~~ arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16' 466 | rom_out_le16(port, *buf++); | ^~~~~~~~~~~~ In file included from include/linux/ioport.h:13, from include/linux/device.h:15, from include/linux/firmware/imx/ipc.h:11, from include/linux/firmware/imx/sci.h:13, from drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c:9: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra] 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/thread_info.h:12, from include/asm-generic/preempt.h:5, from ./arch/m68k/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from arch/m68k/include/asm/irqflags.h:6, from include/linux/irqflags.h:16, from arch/m68k/include/asm/atomic.h:6, from include/linux/atomic.h:7, from include/linux/mutex.h:18, from include/linux/kernfs.h:12, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/device.h:16, from include/linux/firmware/imx/ipc.h:11, from include/linux/firmware/imx/sci.h:13, from drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c:9: include/linux/dma-mapping.h: In function 'dma_map_resource': arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra] 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE' 139 | int __ret_warn_once = !!(condition); \ | ^~~~~~~~~ arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid' 170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn)) | ^~~~~~~~~~~~~~~ include/linux/dma-mapping.h:355:19: note: in expansion of macro 'pfn_valid' 355 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr)))) | ^~~~~~~~~ drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c: At top level: drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c:127:5: warning: no previous prototype for 'imx8qm_clocks_init' [-Wmissing-prototypes] 127 | int imx8qm_clocks_init(struct imx_mhdp_device *imx_mhdp) | ^~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c:525:5: warning: no previous prototype for 'cdns_mhdp_firmware_write_section' [-Wmissing-prototypes] 525 | int cdns_mhdp_firmware_write_section(struct imx_mhdp_device *imx_mhdp, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for NEED_MULTIPLE_NODES Depends on DISCONTIGMEM || NUMA Selected by - SINGLE_MEMORY_CHUNK && MMU vim +/cdns_mhdp_firmware_write_section +525 drivers/gpu/drm/imx/cdn-mhdp-imx8qm.c 524 > 525 int cdns_mhdp_firmware_write_section(struct imx_mhdp_device *imx_mhdp, 526 const u8 *data, int size, int addr) 527 { 528 int i; 529 530 for (i = 0; i < size; i += 4) { 531 u32 val = (unsigned int)data[i] << 0 | 532 (unsigned int)data[i + 1] << 8 | 533 (unsigned int)data[i + 2] << 16 | 534 (unsigned int)data[i + 3] << 24; 535 cdns_mhdp_bus_write(val, &imx_mhdp->mhdp, addr + i); 536 } 537 538 return 0; 539 } 540 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org