All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chrome-os:chromeos-5.4 46/243] drivers/media/platform/mtk-vcodec/vdec_vpu_if.c:60:30: warning: cast to pointer from integer of different size
Date: Tue, 20 Apr 2021 05:01:53 +0800	[thread overview]
Message-ID: <202104200547.kFOrLdsG-lkp@intel.com> (raw)

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

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head:   52d269f32500581166246e0e494b2b62d979dba6
commit: 340c6a50cb273d407adaa19e0edabfb57139203c [46/243] CHROMIUM: media: mtk-vcodec: Add new interface to get frame buffer size from scp
config: csky-randconfig-r031-20210420 (attached as .config)
compiler: csky-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
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-5.4
        git checkout 340c6a50cb273d407adaa19e0edabfb57139203c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=csky 

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/init.h:5,
                    from include/linux/io.h:10,
                    from drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h:12,
                    from drivers/media/platform/mtk-vcodec/vdec_vpu_if.c:7:
   include/asm-generic/fixmap.h: In function 'fix_to_virt':
   include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
      32 |  BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |                   ^~
   include/linux/compiler.h:397:9: note: in definition of macro '__compiletime_assert'
     397 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:417:2: note: in expansion of macro '_compiletime_assert'
     417 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
      32 |  BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |  ^~~~~~~~~~~~
   drivers/media/platform/mtk-vcodec/vdec_vpu_if.c: In function 'handle_get_param_msg_ack':
>> drivers/media/platform/mtk-vcodec/vdec_vpu_if.c:60:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      60 |  struct vdec_vpu_inst *vpu = (struct vdec_vpu_inst *)msg->ap_inst_addr;
         |                              ^


vim +60 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c

    56	
    57	static void handle_get_param_msg_ack(
    58		const struct vdec_vpu_ipi_get_param_ack *msg)
    59	{
  > 60		struct vdec_vpu_inst *vpu = (struct vdec_vpu_inst *)msg->ap_inst_addr;
    61	
    62		mtk_vcodec_debug(vpu, "+ ap_inst_addr = 0x%llx", msg->ap_inst_addr);
    63	
    64		/* param_type is enum vdec_get_param_type */
    65		switch(msg->param_type) {
    66		case 2:
    67			vpu->fb_sz[0] = msg->data[0];
    68			vpu->fb_sz[1] = msg->data[1];
    69			break;
    70		default:
    71			mtk_vcodec_err(vpu, "invalid get param type=%d", msg->param_type);
    72			vpu->failure = 1;
    73			break;
    74		}
    75	}
    76	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37918 bytes --]

                 reply	other threads:[~2021-04-19 21:01 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=202104200547.kFOrLdsG-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.