Messages in this thread | | | Date | Fri, 12 Nov 2021 12:23:55 +0800 | From | kernel test robot <> | Subject | [ti:ti-rt-linux-5.10.y 10189/10194] drivers/media/platform/vxe-vxd/encoder/../common/img_mem_unified.c:159:17: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'? |
| |
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y head: aafb1bd67f22b44cf5f8072266002696adaa21b0 commit: caf6d714b87dee7429cb6b9cf60a3cba0061bfd6 [10189/10194] media: platform: Kconfig: Add Video decoder Kconfig and Makefile config: mips-allmodconfig (attached as .config) compiler: mips-linux-gcc (GCC) 11.2.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 ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git git fetch --no-tags ti ti-rt-linux-5.10.y git checkout caf6d714b87dee7429cb6b9cf60a3cba0061bfd6 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c: In function 'device_run': >> drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:317:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 317 | ctx->frame_num, (unsigned long long)ctx); | ^ drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c: In function 'vxe_enc_probe': drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1811:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1811 | ret = topazdd_init((unsigned long long)vxe->reg_base, res->end - res->start + 1, | ^ In file included from include/linux/bitmap.h:9, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from arch/mips/include/asm/cpu-type.h:12, from arch/mips/include/asm/timex.h:19, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:73, from include/linux/stat.h:19, from include/linux/module.h:13, from drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:16: In function 'strncpy', inlined from 'vxe_queryctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1281:4: include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 290 | #define __underlying_strncpy __builtin_strncpy | ^ include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy' 300 | return __underlying_strncpy(p, q, size); | ^~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'vxe_queryctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1264:5: include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 290 | #define __underlying_strncpy __builtin_strncpy | ^ include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy' 300 | return __underlying_strncpy(p, q, size); | ^~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'vxe_query_ext_ctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1339:4: include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 290 | #define __underlying_strncpy __builtin_strncpy | ^ include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy' 300 | return __underlying_strncpy(p, q, size); | ^~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'vxe_query_ext_ctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1316:5: include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 290 | #define __underlying_strncpy __builtin_strncpy | ^ include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy' 300 | return __underlying_strncpy(p, q, size); | ^~~~~~~~~~~~~~~~~~~~ -- >> drivers/media/platform/vxe-vxd/encoder/vxe_enc.c:30:6: warning: no previous prototype for 'mmu_callback' [-Wmissing-prototypes] 30 | void mmu_callback(enum mmu_callback_type callback_type, | ^~~~~~~~~~~~ -- In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37: drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h: In function 'ioreg32_poll_iseq': >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 53 | val = ioread32((void *)addr); | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'topazdd_int_enable': >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:192:9: note: in expansion of macro 'VXE_WR_REG32' 192 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:192:9: note: in expansion of macro 'VXE_WR_REG32' 192 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'topazdd_int_disable': >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:212:9: note: in expansion of macro 'VXE_WR_REG32' 212 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:212:9: note: in expansion of macro 'VXE_WR_REG32' 212 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'set_auto_clock_gating': >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:305:9: note: in expansion of macro 'VXE_WR_REG32' 305 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:305:9: note: in expansion of macro 'VXE_WR_REG32' 305 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:322:9: note: in expansion of macro 'VXE_WR_REG32' 322 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_AUTO_CLOCK_GATING, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:322:9: note: in expansion of macro 'VXE_WR_REG32' 322 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_AUTO_CLOCK_GATING, reg); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:330:9: note: in expansion of macro 'VXE_WR_REG32' 330 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_MAN_CLOCK_GATING, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:330:9: note: in expansion of macro 'VXE_WR_REG32' 330 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_MAN_CLOCK_GATING, reg); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:333:9: note: in expansion of macro 'VXE_WR_REG32' 333 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:333:9: note: in expansion of macro 'VXE_WR_REG32' 333 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/topaz_device.c: At top level: >> drivers/media/platform/vxe-vxd/encoder/topaz_device.c:348:5: warning: no previous prototype for 'comm_prepare_fw' [-Wmissing-prototypes] 348 | int comm_prepare_fw(struct img_fw_context *fw_ctx, enum img_codec codec) | ^~~~~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/topaz_device.c:396:6: warning: no previous prototype for 'comm_load_h264_tables' [-Wmissing-prototypes] 396 | void comm_load_h264_tables(struct topaz_dev_ctx *ctx) | ^~~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37: drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'comm_load_h264_tables': >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:404:17: note: in expansion of macro 'VXE_WR_REG32' 404 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:404:17: note: in expansion of macro 'VXE_WR_REG32' 404 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:405:17: note: in expansion of macro 'VXE_WR_REG32' 405 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE5, | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:405:17: note: in expansion of macro 'VXE_WR_REG32' 405 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE5, | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:407:17: note: in expansion of macro 'VXE_WR_REG32' 407 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6, | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:407:17: note: in expansion of macro 'VXE_WR_REG32' 407 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6, | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:409:17: note: in expansion of macro 'VXE_WR_REG32' 409 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7, | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:409:17: note: in expansion of macro 'VXE_WR_REG32' 409 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7, | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:414:17: note: in expansion of macro 'VXE_WR_REG32' 414 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:414:17: note: in expansion of macro 'VXE_WR_REG32' 414 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:415:17: note: in expansion of macro 'VXE_WR_REG32' 415 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG9, 0x00000406); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:415:17: note: in expansion of macro 'VXE_WR_REG32' 415 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG9, 0x00000406); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/topaz_device.c: At top level: >> drivers/media/platform/vxe-vxd/encoder/topaz_device.c:422:6: warning: no previous prototype for 'comm_load_tables' [-Wmissing-prototypes] 422 | void comm_load_tables(struct topaz_dev_ctx *ctx) | ^~~~~~~~~~~~~~~~ In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37: drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'comm_load_tables': >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:428:17: note: in expansion of macro 'VXE_WR_REG32' 428 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:428:17: note: in expansion of macro 'VXE_WR_REG32' 428 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:429:17: note: in expansion of macro 'VXE_WR_REG32' 429 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6, 0); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:429:17: note: in expansion of macro 'VXE_WR_REG32' 429 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6, 0); | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:430:17: note: in expansion of macro 'VXE_WR_REG32' 430 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7, | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:430:17: note: in expansion of macro 'VXE_WR_REG32' 430 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7, | ^~~~~~~~~~~~ >> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:435:17: note: in expansion of macro 'VXE_WR_REG32' 435 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:435:17: note: in expansion of macro 'VXE_WR_REG32' 435 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/topaz_device.c: At top level: drivers/media/platform/vxe-vxd/encoder/topaz_device.c:456:6: warning: no previous prototype for 'topaz_setup_firmware' [-Wmissing-prototypes] 456 | void topaz_setup_firmware(struct topaz_dev_ctx *ctx, | ^~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37: drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'topaz_setup_firmware': drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:477:9: note: in expansion of macro 'VXE_WR_REG32' 477 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_SECURE_CONFIG, secure_reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:477:9: note: in expansion of macro 'VXE_WR_REG32' 477 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_SECURE_CONFIG, secure_reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:493:9: note: in expansion of macro 'VXE_WR_REG32' 493 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 + | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:493:9: note: in expansion of macro 'VXE_WR_REG32' 493 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 + | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:499:9: note: in expansion of macro 'VXE_WR_REG32' 499 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 + | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:499:9: note: in expansion of macro 'VXE_WR_REG32' 499 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 + | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:506:9: note: in expansion of macro 'VXE_WR_REG32' 506 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:506:9: note: in expansion of macro 'VXE_WR_REG32' 506 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:507:9: note: in expansion of macro 'VXE_WR_REG32' 507 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, 0x0); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:507:9: note: in expansion of macro 'VXE_WR_REG32' 507 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, 0x0); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:516:17: note: in expansion of macro 'VXE_WR_REG32' 516 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_TOPAZ_CMD_FIFO_FLUSH, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:516:17: note: in expansion of macro 'VXE_WR_REG32' 516 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_TOPAZ_CMD_FIFO_FLUSH, reg); | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:521:17: note: in expansion of macro 'VXE_WR_REG32' 521 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CMD_FIFO_WRITE, | ^~~~~~~~~~~~ drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base)))) | ^ drivers/media/platform/vxe-vxd/encoder/topaz_device.c:521:17: note: in expansion of macro 'VXE_WR_REG32' 521 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CMD_FIFO_WRITE, ..
vim +159 drivers/media/platform/vxe-vxd/encoder/../common/img_mem_unified.c
b738db9eda05d06 Sidraya 2021-11-02 145 b738db9eda05d06 Sidraya 2021-11-02 146 static void unified_free(struct heap *heap, struct buffer *buffer) b738db9eda05d06 Sidraya 2021-11-02 147 { b738db9eda05d06 Sidraya 2021-11-02 148 void *dev = buffer->device; b738db9eda05d06 Sidraya 2021-11-02 149 void *sgt = buffer->priv; b738db9eda05d06 Sidraya 2021-11-02 150 void *sgl; b738db9eda05d06 Sidraya 2021-11-02 151 b738db9eda05d06 Sidraya 2021-11-02 152 dev_dbg(dev, "%s:%d buffer %d (0x%p)\n", __func__, __LINE__, b738db9eda05d06 Sidraya 2021-11-02 153 buffer->id, buffer); b738db9eda05d06 Sidraya 2021-11-02 154 b738db9eda05d06 Sidraya 2021-11-02 155 if (buffer->kptr) { b738db9eda05d06 Sidraya 2021-11-02 156 dev_dbg(dev, "%s vunmap 0x%p\n", __func__, buffer->kptr); b738db9eda05d06 Sidraya 2021-11-02 157 dma_unmap_sg(dev, img_mmu_get_sgl(sgt), img_mmu_get_orig_nents(sgt), b738db9eda05d06 Sidraya 2021-11-02 158 DMA_FROM_DEVICE); b738db9eda05d06 Sidraya 2021-11-02 @159 vunmap(buffer->kptr); b738db9eda05d06 Sidraya 2021-11-02 160 } b738db9eda05d06 Sidraya 2021-11-02 161 b738db9eda05d06 Sidraya 2021-11-02 162 sgl = img_mmu_get_sgl(sgt); b738db9eda05d06 Sidraya 2021-11-02 163 while (sgl) { b738db9eda05d06 Sidraya 2021-11-02 164 __free_page(sg_page(sgl)); b738db9eda05d06 Sidraya 2021-11-02 165 sgl = sg_next(sgl); b738db9eda05d06 Sidraya 2021-11-02 166 } b738db9eda05d06 Sidraya 2021-11-02 167 sg_free_table(sgt); b738db9eda05d06 Sidraya 2021-11-02 168 kfree(sgt); b738db9eda05d06 Sidraya 2021-11-02 169 } b738db9eda05d06 Sidraya 2021-11-02 170 b738db9eda05d06 Sidraya 2021-11-02 171 static int unified_map_km(struct heap *heap, struct buffer *buffer) b738db9eda05d06 Sidraya 2021-11-02 172 { b738db9eda05d06 Sidraya 2021-11-02 173 void *dev = buffer->device; b738db9eda05d06 Sidraya 2021-11-02 174 void *sgt = buffer->priv; b738db9eda05d06 Sidraya 2021-11-02 175 void *sgl = img_mmu_get_sgl(sgt); b738db9eda05d06 Sidraya 2021-11-02 176 unsigned int num_pages = sg_nents(sgl); b738db9eda05d06 Sidraya 2021-11-02 177 unsigned int orig_nents = img_mmu_get_orig_nents(sgt); b738db9eda05d06 Sidraya 2021-11-02 178 void **pages; b738db9eda05d06 Sidraya 2021-11-02 179 int ret; b738db9eda05d06 Sidraya 2021-11-02 180 pgprot_t prot; b738db9eda05d06 Sidraya 2021-11-02 181 b738db9eda05d06 Sidraya 2021-11-02 182 dev_dbg(dev, "%s:%d buffer %d (0x%p)\n", __func__, __LINE__, buffer->id, buffer); b738db9eda05d06 Sidraya 2021-11-02 183 b738db9eda05d06 Sidraya 2021-11-02 184 if (buffer->kptr) { b738db9eda05d06 Sidraya 2021-11-02 185 dev_warn(dev, "%s called for already mapped buffer %d\n", __func__, buffer->id); b738db9eda05d06 Sidraya 2021-11-02 186 return 0; b738db9eda05d06 Sidraya 2021-11-02 187 } b738db9eda05d06 Sidraya 2021-11-02 188 b738db9eda05d06 Sidraya 2021-11-02 189 pages = kmalloc_array(num_pages, sizeof(void *), GFP_KERNEL); b738db9eda05d06 Sidraya 2021-11-02 190 if (!pages) b738db9eda05d06 Sidraya 2021-11-02 191 return -ENOMEM; b738db9eda05d06 Sidraya 2021-11-02 192 b738db9eda05d06 Sidraya 2021-11-02 193 img_mmu_get_pages(pages, sgt); b738db9eda05d06 Sidraya 2021-11-02 194 b738db9eda05d06 Sidraya 2021-11-02 195 prot = PAGE_KERNEL; b738db9eda05d06 Sidraya 2021-11-02 196 prot = pgprot_writecombine(prot); b738db9eda05d06 Sidraya 2021-11-02 @197 buffer->kptr = vmap((struct page **)pages, num_pages, VM_MAP, prot); b738db9eda05d06 Sidraya 2021-11-02 198 kfree(pages); b738db9eda05d06 Sidraya 2021-11-02 199 if (!buffer->kptr) { b738db9eda05d06 Sidraya 2021-11-02 200 dev_err(dev, "%s vmap failed!\n", __func__); b738db9eda05d06 Sidraya 2021-11-02 201 return -EFAULT; b738db9eda05d06 Sidraya 2021-11-02 202 } b738db9eda05d06 Sidraya 2021-11-02 203 b738db9eda05d06 Sidraya 2021-11-02 204 ret = dma_map_sg(dev, sgl, orig_nents, DMA_FROM_DEVICE); b738db9eda05d06 Sidraya 2021-11-02 205 b738db9eda05d06 Sidraya 2021-11-02 206 if (ret <= 0) { b738db9eda05d06 Sidraya 2021-11-02 207 dev_err(dev, "%s dma_map_sg failed!\n", __func__); b738db9eda05d06 Sidraya 2021-11-02 208 vunmap(buffer->kptr); b738db9eda05d06 Sidraya 2021-11-02 209 return -EFAULT; b738db9eda05d06 Sidraya 2021-11-02 210 } b738db9eda05d06 Sidraya 2021-11-02 211 dev_dbg(dev, "%s:%d buffer %d orig_nents %d nents %d\n", __func__, b738db9eda05d06 Sidraya 2021-11-02 212 __LINE__, buffer->id, orig_nents, ret); b738db9eda05d06 Sidraya 2021-11-02 213 b738db9eda05d06 Sidraya 2021-11-02 214 img_mmu_set_sgt_nents(sgt, ret); b738db9eda05d06 Sidraya 2021-11-02 215 b738db9eda05d06 Sidraya 2021-11-02 216 dev_dbg(dev, "%s:%d buffer %d vmap to 0x%p\n", __func__, __LINE__, b738db9eda05d06 Sidraya 2021-11-02 217 buffer->id, buffer->kptr); b738db9eda05d06 Sidraya 2021-11-02 218 b738db9eda05d06 Sidraya 2021-11-02 219 return 0; b738db9eda05d06 Sidraya 2021-11-02 220 } b738db9eda05d06 Sidraya 2021-11-02 221
:::::: The code at line 159 was first introduced by commit :::::: b738db9eda05d068022ccbfbba25f5f0a0a09eaa v4l: vxd-dec: Create vxd_dec Mem Manager helper library
:::::: TO: Sidraya <sidraya.bj@pathpartnertech.com> :::::: CC: Praneeth Bajjuri <praneeth@ti.com>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |