From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 24/24] drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:433:35: warning: cast from pointer to integer of different size
Date: Mon, 3 Feb 2025 07:53:16 +0800 [thread overview]
Message-ID: <202502030744.wfrCh5v8-lkp@intel.com> (raw)
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: 04a72490fa00fcebe6087be713eccf05755d2fe9
commit: 04a72490fa00fcebe6087be713eccf05755d2fe9 [24/24] CHROMIUM: media: mediatek: vcodec: encoder: Add VCP backend
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20250203/202502030744.wfrCh5v8-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250203/202502030744.wfrCh5v8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502030744.wfrCh5v8-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:564,
from include/linux/kernel.h:31,
from include/linux/cpumask.h:10,
from include/linux/mm_types_task.h:14,
from include/linux/mm_types.h:5,
from include/media/videobuf2-core.h:15,
from drivers/media/platform/mediatek/vcodec/encoder/venc/../mtk_vcodec_enc.h:11,
from drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:6:
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c: In function 'mtk_venc_mem_alloc':
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:433:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
433 | buf->size, (u64)buf->va, buf->iova);
| ^
include/linux/dynamic_debug.h:224:29: note: in definition of macro '__dynamic_func_call_cls'
224 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls'
250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:273:9: note: in expansion of macro '_dynamic_func_call'
273 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg'
165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/../../common/mtk_vcodec_util.h:61:25: note: in expansion of macro 'dev_dbg'
61 | dev_dbg(&(plat_dev)->dev, "[MTK_VCODEC][%d]: %s, %d " fmt "\n", \
| ^~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/../mtk_vcodec_enc_drv.h:246:9: note: in expansion of macro 'mtk_vcodec_debug'
246 | mtk_vcodec_debug((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args)
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:431:9: note: in expansion of macro 'mtk_venc_debug'
431 | mtk_venc_debug(inst->ctx,
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c: In function 'mtk_venc_mem_free':
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:447:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
447 | buf->size, (u64)buf->va, buf->iova);
| ^
include/linux/dynamic_debug.h:224:29: note: in definition of macro '__dynamic_func_call_cls'
224 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls'
250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:273:9: note: in expansion of macro '_dynamic_func_call'
273 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg'
165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/../../common/mtk_vcodec_util.h:61:25: note: in expansion of macro 'dev_dbg'
61 | dev_dbg(&(plat_dev)->dev, "[MTK_VCODEC][%d]: %s, %d " fmt "\n", \
| ^~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/../mtk_vcodec_enc_drv.h:246:9: note: in expansion of macro 'mtk_vcodec_debug'
246 | mtk_vcodec_debug((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args)
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:445:9: note: in expansion of macro 'mtk_venc_debug'
445 | mtk_venc_debug(inst->ctx,
| ^~~~~~~~~~~~~~
--
drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c: In function 'handle_enc_init_msg':
>> drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c:27:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
27 | vpu->vsi = (void *)((__u64)mtk_vcodec_vcp_get_vsi(fw, 0) +
| ^
>> drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c:27:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
27 | vpu->vsi = (void *)((__u64)mtk_vcodec_vcp_get_vsi(fw, 0) +
| ^
--
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_SPS' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_PPS' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_VPS' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_SEQ_HDR' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_FRAME' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_FRAME_FINAL' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:47: warning: Enum value 'VENC_BS_MODE_MAX' not described in enum 'venc_bs_mode'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:118: warning: Function parameter or member 'pa_64' not described in 'venc_work_buf'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:118: warning: Function parameter or member 'va' not described in 'venc_work_buf'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:118: warning: Function parameter or member 'va_padding' not described in 'venc_work_buf'
>> drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c:118: warning: Function parameter or member 'size_padding' not described in 'venc_work_buf'
vim +433 drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.c
415
416 static int mtk_venc_mem_alloc(struct venc_inst *inst,
417 struct device *dev,
418 struct venc_work_buf *buf)
419 {
420 dma_addr_t dma_addr;
421
422 if (!buf || buf->size == 0)
423 return 0;
424
425 buf->va = dma_alloc_coherent(dev, buf->size, &dma_addr, GFP_KERNEL);
426 if (!buf->va)
427 return -ENOMEM;
428
429 buf->iova = (unsigned long long)dma_addr;
430
431 mtk_venc_debug(inst->ctx,
432 "allocate buffer, size: %d, va: 0x%llx, iova: 0x%llx",
> 433 buf->size, (u64)buf->va, buf->iova);
434
435 return 0;
436 }
437
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-02 23:53 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=202502030744.wfrCh5v8-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.