oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com,
	Guenter Roeck <groeck@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-5.10 121/150] drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1472:38: warning: unused variable 'mt8173_jpeg_drvdata'
Date: Sat, 27 May 2023 10:53:16 +0800	[thread overview]
Message-ID: <202305271056.NGrfzUAK-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-05-27  2: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=202305271056.NGrfzUAK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=groeck@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).