All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:6.1-2.2.x-imx 13613/17898] drivers/staging/media/imx/imx8-isi-m2m.c:1431:12: warning: 'mxc_isi_m2m_runtime_suspend' defined but not used
Date: Sat, 10 Feb 2024 00:05:06 +0800	[thread overview]
Message-ID: <202402092317.nSysOX8Y-lkp@intel.com> (raw)

tree:   https://github.com/Freescale/linux-fslc 6.1-2.2.x-imx
head:   4e3fc5471376a15279ee5c99e791a7c7b065cbc1
commit: 7e94f63be7a1e193e6426befc4e8760cc2e2acda [13613/17898] LF-9638 media: isi: Fix the isi-m2m play hang if convert format
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240209/202402092317.nSysOX8Y-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240209/202402092317.nSysOX8Y-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402092317.nSysOX8Y-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/staging/media/imx/imx8-isi-m2m.c: In function 'mxc_isi_m2m_frame_write_done':
   drivers/staging/media/imx/imx8-isi-m2m.c:95:32: warning: variable 'src_buf' set but not used [-Wunused-but-set-variable]
      95 |         struct mxc_isi_buffer *src_buf, *dst_buf;
         |                                ^~~~~~~
   drivers/staging/media/imx/imx8-isi-m2m.c: At top level:
   drivers/staging/media/imx/imx8-isi-m2m.c:1272:6: warning: no previous prototype for 'mxc_isi_m2m_ctrls_delete' [-Wmissing-prototypes]
    1272 | void mxc_isi_m2m_ctrls_delete(struct mxc_isi_m2m_dev *isi_m2m)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/media/imx/imx8-isi-m2m.c:1431:12: warning: 'mxc_isi_m2m_runtime_suspend' defined but not used [-Wunused-function]
    1431 | static int mxc_isi_m2m_runtime_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/media/imx/imx8-isi-m2m.c:1414:12: warning: 'mxc_isi_m2m_runtime_resume' defined but not used [-Wunused-function]
    1414 | static int mxc_isi_m2m_runtime_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/mxc_isi_m2m_runtime_suspend +1431 drivers/staging/media/imx/imx8-isi-m2m.c

  1413	
> 1414	static int mxc_isi_m2m_runtime_resume(struct device *dev)
  1415	{
  1416		struct mxc_isi_m2m_dev *isi_m2m = dev_get_drvdata(dev);
  1417		struct mxc_isi_dev *mxc_isi = mxc_isi_get_hostdata(isi_m2m->pdev);
  1418		int ret;
  1419	
  1420		ret = mxc_isi_clk_enable(mxc_isi);
  1421		if (ret) {
  1422			dev_err(dev, "%s clk enable fail\n", __func__);
  1423			return ret;
  1424		}
  1425		disp_mix_sft_rstn(mxc_isi, false);
  1426		disp_mix_clks_enable(mxc_isi, true);
  1427	
  1428		return 0;
  1429	}
  1430	
> 1431	static int mxc_isi_m2m_runtime_suspend(struct device *dev)
  1432	{
  1433		struct mxc_isi_m2m_dev *isi_m2m = dev_get_drvdata(dev);
  1434		struct mxc_isi_dev *mxc_isi = mxc_isi_get_hostdata(isi_m2m->pdev);
  1435	
  1436		disp_mix_clks_enable(mxc_isi, false);
  1437		mxc_isi_clk_disable(mxc_isi);
  1438	
  1439		return 0;
  1440	}
  1441	

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

                 reply	other threads:[~2024-02-09 16:05 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=202402092317.nSysOX8Y-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=otavio@ossystems.com.br \
    /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 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.