lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212171001.Z8yacOcF-lkp@intel.com>
Date:   Sat, 17 Dec 2022 10:59:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     kyrie wu <kyrie.wu@...iatek.com>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-kernel@...r.kernel.org, Hans Verkuil <hverkuil@...all.nl>,
        irui wang <irui.wang@...iatek.com>
Subject: drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1474:38:
 warning: unused variable 'mt8173_jpeg_drvdata'

Hi kyrie,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   77856d911a8c8724ee8e2b09d55979fc1de8f1c0
commit: 934e8bccac9542540493a4e5257d6b0db4162478 mtk-jpegenc: support jpegenc multi-hardware
date:   3 months ago
config: hexagon-randconfig-r041-20221217
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 98b13979fb05f3ed288a900deb843e7b27589e58)
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=934e8bccac9542540493a4e5257d6b0db4162478
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 934e8bccac9542540493a4e5257d6b0db4162478
        # 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 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/media/platform/mediatek/jpeg/

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/jpeg/mtk_jpeg_core.c:1474:38: warning: unused variable 'mt8173_jpeg_drvdata' [-Wunused-const-variable]
   static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
                                        ^
>> drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1489:38: warning: unused variable 'mtk_jpeg_drvdata' [-Wunused-const-variable]
   static const struct mtk_jpeg_variant mtk_jpeg_drvdata = {
                                        ^
   2 warnings generated.


vim +/mt8173_jpeg_drvdata +1474 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c

b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14  1473  
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14 @1474  static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1475  	.clks = mt8173_jpeg_dec_clocks,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1476  	.num_clks = ARRAY_SIZE(mt8173_jpeg_dec_clocks),
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1477  	.formats = mtk_jpeg_dec_formats,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1478  	.num_formats = MTK_JPEG_DEC_NUM_FORMATS,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1479  	.qops = &mtk_jpeg_dec_qops,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1480  	.irq_handler = mtk_jpeg_dec_irq,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1481  	.hw_reset = mtk_jpeg_dec_reset,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1482  	.m2m_ops = &mtk_jpeg_dec_m2m_ops,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1483  	.dev_name = "mtk-jpeg-dec",
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1484  	.ioctl_ops = &mtk_jpeg_dec_ioctl_ops,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1485  	.out_q_default_fourcc = V4L2_PIX_FMT_JPEG,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1486  	.cap_q_default_fourcc = V4L2_PIX_FMT_YUV420M,
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1487  };
b4a82f5d15102a drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1488  
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14 @1489  static const struct mtk_jpeg_variant mtk_jpeg_drvdata = {
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1490  	.clks = mtk_jpeg_clocks,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1491  	.num_clks = ARRAY_SIZE(mtk_jpeg_clocks),
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1492  	.formats = mtk_jpeg_enc_formats,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1493  	.num_formats = MTK_JPEG_ENC_NUM_FORMATS,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1494  	.qops = &mtk_jpeg_enc_qops,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1495  	.irq_handler = mtk_jpeg_enc_irq,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1496  	.hw_reset = mtk_jpeg_enc_reset,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1497  	.m2m_ops = &mtk_jpeg_enc_m2m_ops,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1498  	.dev_name = "mtk-jpeg-enc",
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1499  	.ioctl_ops = &mtk_jpeg_enc_ioctl_ops,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1500  	.out_q_default_fourcc = V4L2_PIX_FMT_YUYV,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1501  	.cap_q_default_fourcc = V4L2_PIX_FMT_JPEG,
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1502  };
45f13a57d81344 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Xia Jiang  2020-08-14  1503  

:::::: The code at line 1474 was first introduced by commit
:::::: b4a82f5d15102ade6134c8cc4bbc8ccef1f4a7dc media: platform: Using the variant structure to contain the varability between dec and enc

:::::: TO: Xia Jiang <xia.jiang@...iatek.com>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (135733 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ