From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0313435194092559042==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [freescale-fslc:5.10-2.1.x-imx 11466/15840] drivers/dma/pxp/pxp_dma_v3.c:1120:66: warning: cast to pointer from integer of different size Date: Fri, 03 Dec 2021 00:13:07 +0800 Message-ID: <202112030000.XjoH8hex-lkp@intel.com> List-Id: --===============0313435194092559042== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Guoniu.zhou, FYI, the error/warning still remains. tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx head: c0604ebbd45934a2c42df8382b674244d1963fa2 commit: a07f432792aafa352bd843afa0c1dd739bfe73a7 [11466/15840] MLK-25591-05= : dma: pxp_v3: fix warning for data type mismatch issue config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211203/= 202112030000.XjoH8hex-lkp(a)intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/a07f432792aafa352b= d843afa0c1dd739bfe73a7 git remote add freescale-fslc https://github.com/Freescale/linux-fs= lc git fetch --no-tags freescale-fslc 5.10-2.1.x-imx git checkout a07f432792aafa352bd843afa0c1dd739bfe73a7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash drivers/android/ drivers/dma/px= p/ drivers/mfd/ drivers/staging/fsl_qbman/ drivers/video/fbdev/mxc/ 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 include/linux/printk.h:409, from include/linux/kernel.h:16, from include/linux/list.h:9, from include/linux/rculist.h:10, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/dma/pxp/pxp_dma_v3.c:12: drivers/dma/pxp/pxp_dma_v3.c: In function 'print_param': >> drivers/dma/pxp/pxp_dma_v3.c:1120:66: warning: cast to pointer from inte= ger of different size [-Wint-to-pointer-cast] 1120 | p->top, p->left, p->width, p->height, p->stride,= (void *)p->paddr); | = ^ include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dy= namic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynam= ic_func_call' 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_de= bug' 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:1119:9: note: in expansion of macro 'pr_deb= ug' 1119 | pr_debug("%s: t/l/w/h/s %d/%d/%d/%d/%d, addr %p\n", s, | ^~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c: In function 'pxp_2d_op_handler': drivers/dma/pxp/pxp_dma_v3.c:3493:36: warning: cast to pointer from inte= ger of different size [-Wint-to-pointer-cast] 3493 | __func__, (void *)input_s0->paddr, (voi= d *)input_s1->paddr, (void *)output->paddr); | ^ include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dy= namic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynam= ic_func_call' 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_de= bug' 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3492:17: note: in expansion of macro 'pr_de= bug' 3492 | pr_debug("%s: s0 paddr =3D 0x%p, s1 paddr =3D 0x= %p, out paddr =3D 0x%p\n", | ^~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3493:61: warning: cast to pointer from inte= ger of different size [-Wint-to-pointer-cast] 3493 | __func__, (void *)input_s0->paddr, (voi= d *)input_s1->paddr, (void *)output->paddr); | ^ include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dy= namic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynam= ic_func_call' 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_de= bug' 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3492:17: note: in expansion of macro 'pr_de= bug' 3492 | pr_debug("%s: s0 paddr =3D 0x%p, s1 paddr =3D 0x= %p, out paddr =3D 0x%p\n", | ^~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3493:86: warning: cast to pointer from inte= ger of different size [-Wint-to-pointer-cast] 3493 | __func__, (void *)input_s0->paddr, (voi= d *)input_s1->paddr, (void *)output->paddr); | = ^ include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dy= namic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynam= ic_func_call' 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_de= bug' 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3492:17: note: in expansion of macro 'pr_de= bug' 3492 | pr_debug("%s: s0 paddr =3D 0x%p, s1 paddr =3D 0x= %p, out paddr =3D 0x%p\n", | ^~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c: In function '__pxpdma_dostart': drivers/dma/pxp/pxp_dma_v3.c:3913:18: warning: cast to pointer from inte= ger of different size [-Wint-to-pointer-cast] 3913 | (void *)pxp->pxp_conf_state.s0_param.paddr); | ^ include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dy= namic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynam= ic_func_call' 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_de= bug' 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3910:9: note: in expansion of macro 'pr_deb= ug' 3910 | pr_debug("%s:%d S0 w/h %d/%d paddr %p\n", __func__, __LI= NE__, | ^~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3923:18: warning: cast to pointer from inte= ger of different size [-Wint-to-pointer-cast] 3923 | (void *)pxp->pxp_conf_state.out_param.paddr); | ^ include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dy= namic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynam= ic_func_call' 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_de= bug' 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c:3920:9: note: in expansion of macro 'pr_deb= ug' 3920 | pr_debug("%s:%d OUT w/h %d/%d paddr %p\n", __func__, __L= INE__, | ^~~~~~~~ drivers/dma/pxp/pxp_dma_v3.c: At top level: drivers/dma/pxp/pxp_dma_v3.c:6676:6: warning: no previous prototype for = 'pxp_get_collision_info' [-Wmissing-prototypes] 6676 | void pxp_get_collision_info(struct pxp_collision_info *info) | ^~~~~~~~~~~~~~~~~~~~~~ vim +1120 drivers/dma/pxp/pxp_dma_v3.c 1116 = 1117 static void print_param(struct pxp_layer_param *p, char *s) 1118 { 1119 pr_debug("%s: t/l/w/h/s %d/%d/%d/%d/%d, addr %p\n", s, > 1120 p->top, p->left, p->width, p->height, p->stride, (void *)p->paddr); 1121 } 1122 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0313435194092559042==--