All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 121/150] drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1472:38: warning: unused variable 'mt8173_jpeg_drvdata'
@ 2023-05-27  2:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-27  2:53 UTC (permalink / raw)
  To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   9de748741e802680a1c2540e75fb3f3dba98d8be
commit: f2e9d11022fce9bfba1275df0ae26696ba232a4e [121/150] BACKPORT: UPSTREAM: mtk-jpegenc: support jpegenc multi-hardware
config: hexagon-randconfig-r022-20230526 (https://download.01.org/0day-ci/archive/20230527/202305271056.NGrfzUAK-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b)
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        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.10
        git checkout f2e9d11022fce9bfba1275df0ae26696ba232a4e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash M=drivers/media/platform/mtk-jpeg

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305271056.NGrfzUAK-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1472:38: warning: unused variable 'mt8173_jpeg_drvdata' [-Wunused-const-variable]
   static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
                                        ^
>> drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1487: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 +1472 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c

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

:::::: The code at line 1472 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@mediatek.com>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-27  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-27  2:53 [chrome-os:chromeos-5.10 121/150] drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1472:38: warning: unused variable 'mt8173_jpeg_drvdata' kernel test robot

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.