All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202112030000.XjoH8hex-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 9367 bytes --]

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=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/a07f432792aafa352bd843afa0c1dd739bfe73a7
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/android/ drivers/dma/pxp/ 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 <lkp@intel.com>

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 integer 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 '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynamic_func_call'
     157 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_debug'
     424 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:1119:9: note: in expansion of macro 'pr_debug'
    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 integer of different size [-Wint-to-pointer-cast]
    3493 |                          __func__, (void *)input_s0->paddr, (void *)input_s1->paddr, (void *)output->paddr);
         |                                    ^
   include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynamic_func_call'
     157 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_debug'
     424 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3492:17: note: in expansion of macro 'pr_debug'
    3492 |                 pr_debug("%s: s0 paddr = 0x%p, s1 paddr = 0x%p, out paddr = 0x%p\n",
         |                 ^~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3493:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    3493 |                          __func__, (void *)input_s0->paddr, (void *)input_s1->paddr, (void *)output->paddr);
         |                                                             ^
   include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynamic_func_call'
     157 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_debug'
     424 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3492:17: note: in expansion of macro 'pr_debug'
    3492 |                 pr_debug("%s: s0 paddr = 0x%p, s1 paddr = 0x%p, out paddr = 0x%p\n",
         |                 ^~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3493:86: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    3493 |                          __func__, (void *)input_s0->paddr, (void *)input_s1->paddr, (void *)output->paddr);
         |                                                                                      ^
   include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynamic_func_call'
     157 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_debug'
     424 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3492:17: note: in expansion of macro 'pr_debug'
    3492 |                 pr_debug("%s: s0 paddr = 0x%p, s1 paddr = 0x%p, out paddr = 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 integer 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 '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynamic_func_call'
     157 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_debug'
     424 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3910:9: note: in expansion of macro 'pr_debug'
    3910 |         pr_debug("%s:%d S0 w/h %d/%d paddr %p\n", __func__, __LINE__,
         |         ^~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3923:18: warning: cast to pointer from integer 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 '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:9: note: in expansion of macro '_dynamic_func_call'
     157 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:9: note: in expansion of macro 'dynamic_pr_debug'
     424 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/dma/pxp/pxp_dma_v3.c:3920:9: note: in expansion of macro 'pr_debug'
    3920 |         pr_debug("%s:%d OUT w/h %d/%d paddr %p\n", __func__, __LINE__,
         |         ^~~~~~~~
   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

                 reply	other threads:[~2021-12-02 16:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112030000.XjoH8hex-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.