[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210191404.ieiKOE8W-lkp@intel.com>
Date: Wed, 19 Oct 2022 14:15:42 +0800
From: kernel test robot <lkp@...el.com>
To: Moudy Ho <moudy.ho@...iatek.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org,
Ping-Hsun Wu <ping-hsun.wu@...iatek.com>,
daoyuan huang <daoyuan.huang@...iatek.com>,
Hans Verkuil <hverkuil@...all.nl>
Subject: drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:607:34:
warning: unused variable 'mdp_comp_dt_ids'
Hi Moudy,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aae703b02f92bde9264366c545e87cec451de471
commit: 61890ccaefaff89f5babd2c8412fd222c3f5fe38 media: platform: mtk-mdp3: add MediaTek MDP3 driver
date: 7 weeks ago
config: hexagon-randconfig-r031-20221019
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=61890ccaefaff89f5babd2c8412fd222c3f5fe38
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 61890ccaefaff89f5babd2c8412fd222c3f5fe38
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/media/platform/mediatek/mdp3/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:607:34: warning: unused variable 'mdp_comp_dt_ids' [-Wunused-const-variable]
static const struct of_device_id mdp_comp_dt_ids[] = {
^
>> drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:627:34: warning: unused variable 'mdp_sub_comp_dt_ids' [-Wunused-const-variable]
static const struct of_device_id mdp_sub_comp_dt_ids[] = {
^
2 warnings generated.
vim +/mdp_comp_dt_ids +607 drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
606
> 607 static const struct of_device_id mdp_comp_dt_ids[] = {
608 {
609 .compatible = "mediatek,mt8183-mdp3-rdma",
610 .data = (void *)MDP_COMP_TYPE_RDMA,
611 }, {
612 .compatible = "mediatek,mt8183-mdp3-ccorr",
613 .data = (void *)MDP_COMP_TYPE_CCORR,
614 }, {
615 .compatible = "mediatek,mt8183-mdp3-rsz",
616 .data = (void *)MDP_COMP_TYPE_RSZ,
617 }, {
618 .compatible = "mediatek,mt8183-mdp3-wrot",
619 .data = (void *)MDP_COMP_TYPE_WROT,
620 }, {
621 .compatible = "mediatek,mt8183-mdp3-wdma",
622 .data = (void *)MDP_COMP_TYPE_WDMA,
623 },
624 {}
625 };
626
> 627 static const struct of_device_id mdp_sub_comp_dt_ids[] = {
628 {
629 .compatible = "mediatek,mt8183-mdp3-wdma",
630 .data = (void *)MDP_COMP_TYPE_PATH,
631 }, {
632 .compatible = "mediatek,mt8183-mdp3-wrot",
633 .data = (void *)MDP_COMP_TYPE_PATH,
634 },
635 {}
636 };
637
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (151507 bytes)
Powered by blists - more mailing lists