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: <202212171206.0s99fUym-lkp@intel.com>
Date:   Sat, 17 Dec 2022 12:30:20 +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:1859:38:
 warning: unused variable 'mtk8195_jpegdec_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: dedc21500334b97b80d4ca37ab683cde214fcb03 media: mtk-jpegdec: add jpeg decode worker interface
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=dedc21500334b97b80d4ca37ab683cde214fcb03
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout dedc21500334b97b80d4ca37ab683cde214fcb03
        # 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:1818: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:1833:38: warning: unused variable 'mtk_jpeg_drvdata' [-Wunused-const-variable]
   static const struct mtk_jpeg_variant mtk_jpeg_drvdata = {
                                        ^
   drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1848:32: warning: unused variable 'mtk8195_jpegenc_drvdata' [-Wunused-variable]
   static struct mtk_jpeg_variant mtk8195_jpegenc_drvdata = {
                                  ^
>> drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1859:38: warning: unused variable 'mtk8195_jpegdec_drvdata' [-Wunused-const-variable]
   static const struct mtk_jpeg_variant mtk8195_jpegdec_drvdata = {
                                        ^
   4 warnings generated.


vim +/mtk8195_jpegdec_drvdata +1859 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c

  1817	
> 1818	static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
  1819		.clks = mt8173_jpeg_dec_clocks,
  1820		.num_clks = ARRAY_SIZE(mt8173_jpeg_dec_clocks),
  1821		.formats = mtk_jpeg_dec_formats,
  1822		.num_formats = MTK_JPEG_DEC_NUM_FORMATS,
  1823		.qops = &mtk_jpeg_dec_qops,
  1824		.irq_handler = mtk_jpeg_dec_irq,
  1825		.hw_reset = mtk_jpeg_dec_reset,
  1826		.m2m_ops = &mtk_jpeg_dec_m2m_ops,
  1827		.dev_name = "mtk-jpeg-dec",
  1828		.ioctl_ops = &mtk_jpeg_dec_ioctl_ops,
  1829		.out_q_default_fourcc = V4L2_PIX_FMT_JPEG,
  1830		.cap_q_default_fourcc = V4L2_PIX_FMT_YUV420M,
  1831	};
  1832	
  1833	static const struct mtk_jpeg_variant mtk_jpeg_drvdata = {
  1834		.clks = mtk_jpeg_clocks,
  1835		.num_clks = ARRAY_SIZE(mtk_jpeg_clocks),
  1836		.formats = mtk_jpeg_enc_formats,
  1837		.num_formats = MTK_JPEG_ENC_NUM_FORMATS,
  1838		.qops = &mtk_jpeg_enc_qops,
  1839		.irq_handler = mtk_jpeg_enc_irq,
  1840		.hw_reset = mtk_jpeg_enc_reset,
  1841		.m2m_ops = &mtk_jpeg_enc_m2m_ops,
  1842		.dev_name = "mtk-jpeg-enc",
  1843		.ioctl_ops = &mtk_jpeg_enc_ioctl_ops,
  1844		.out_q_default_fourcc = V4L2_PIX_FMT_YUYV,
  1845		.cap_q_default_fourcc = V4L2_PIX_FMT_JPEG,
  1846	};
  1847	
  1848	static struct mtk_jpeg_variant mtk8195_jpegenc_drvdata = {
  1849		.formats = mtk_jpeg_enc_formats,
  1850		.num_formats = MTK_JPEG_ENC_NUM_FORMATS,
  1851		.qops = &mtk_jpeg_enc_qops,
  1852		.m2m_ops = &mtk_jpeg_multicore_enc_m2m_ops,
  1853		.dev_name = "mtk-jpeg-enc",
  1854		.ioctl_ops = &mtk_jpeg_enc_ioctl_ops,
  1855		.out_q_default_fourcc = V4L2_PIX_FMT_YUYV,
  1856		.cap_q_default_fourcc = V4L2_PIX_FMT_JPEG,
  1857	};
  1858	
> 1859	static const struct mtk_jpeg_variant mtk8195_jpegdec_drvdata = {
  1860		.formats = mtk_jpeg_dec_formats,
  1861		.num_formats = MTK_JPEG_DEC_NUM_FORMATS,
  1862		.qops = &mtk_jpeg_dec_qops,
  1863		.m2m_ops = &mtk_jpeg_multicore_dec_m2m_ops,
  1864		.dev_name = "mtk-jpeg-dec",
  1865		.ioctl_ops = &mtk_jpeg_dec_ioctl_ops,
  1866		.out_q_default_fourcc = V4L2_PIX_FMT_JPEG,
  1867		.cap_q_default_fourcc = V4L2_PIX_FMT_YUV420M,
  1868	};
  1869	

-- 
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