* [freescale-fslc:pr/642 8945/30000] drivers/mailbox/imx-mailbox.c:680:12: warning: 'imx_mu_runtime_resume' defined but not used
@ 2023-10-11 23:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-11 23:53 UTC (permalink / raw)
To: Otavio Salvador; +Cc: oe-kbuild-all
tree: https://github.com/Freescale/linux-fslc pr/642
head: c8b7cf62c7fea8456dec789d550b8006d73b8f04
commit: 8c2ae33a402c2c62892c2f85cf1812435a9258cd [8945/30000] MLK-23936 mailbox: imx: Add runtime PM callback to handle MU clocks
config: arc-randconfig-001-20231011 (https://download.01.org/0day-ci/archive/20231012/202310120712.tTNUsuPz-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231012/202310120712.tTNUsuPz-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/202310120712.tTNUsuPz-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/firmware/imx/ipc.h:11,
from drivers/mailbox/imx-mailbox.c:7:
drivers/mailbox/imx-mailbox.c: In function 'imx_mu_seco_tx':
drivers/mailbox/imx-mailbox.c:233:33: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=]
233 | "Exceed max msg size (%li) on TX, got: %i\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:1658:22: note: in definition of macro 'dev_fmt'
1658 | #define dev_fmt(fmt) fmt
| ^~~
drivers/mailbox/imx-mailbox.c:232:25: note: in expansion of macro 'dev_err'
232 | dev_err(priv->dev,
| ^~~~~~~
drivers/mailbox/imx-mailbox.c:233:57: note: format string is defined here
233 | "Exceed max msg size (%li) on TX, got: %i\n",
| ~~^
| |
| long int
| %i
drivers/mailbox/imx-mailbox.c: In function 'imx_mu_seco_rxdb':
drivers/mailbox/imx-mailbox.c:294:36: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=]
294 | dev_err(priv->dev, "Exceed max msg size (%li) on RX, got: %i\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:1658:22: note: in definition of macro 'dev_fmt'
1658 | #define dev_fmt(fmt) fmt
| ^~~
drivers/mailbox/imx-mailbox.c:294:17: note: in expansion of macro 'dev_err'
294 | dev_err(priv->dev, "Exceed max msg size (%li) on RX, got: %i\n",
| ^~~~~~~
drivers/mailbox/imx-mailbox.c:294:60: note: format string is defined here
294 | dev_err(priv->dev, "Exceed max msg size (%li) on RX, got: %i\n",
| ~~^
| |
| long int
| %i
drivers/mailbox/imx-mailbox.c: At top level:
>> drivers/mailbox/imx-mailbox.c:680:12: warning: 'imx_mu_runtime_resume' defined but not used [-Wunused-function]
680 | static int imx_mu_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/mailbox/imx-mailbox.c:671:12: warning: 'imx_mu_runtime_suspend' defined but not used [-Wunused-function]
671 | static int imx_mu_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/mailbox/imx-mailbox.c:645:12: warning: 'imx_mu_resume_noirq' defined but not used [-Wunused-function]
645 | static int imx_mu_resume_noirq(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~
drivers/mailbox/imx-mailbox.c:628:12: warning: 'imx_mu_suspend_noirq' defined but not used [-Wunused-function]
628 | static int imx_mu_suspend_noirq(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INPUT_POLLDEV
Depends on [n]: !UML && INPUT [=n]
Selected by [y]:
- MXC_MMA8451 [=y] && HWMON [=y] && I2C [=y]
vim +/imx_mu_runtime_resume +680 drivers/mailbox/imx-mailbox.c
670
> 671 static int imx_mu_runtime_suspend(struct device *dev)
672 {
673 struct imx_mu_priv *priv = dev_get_drvdata(dev);
674
675 clk_disable_unprepare(priv->clk);
676
677 return 0;
678 }
679
> 680 static int imx_mu_runtime_resume(struct device *dev)
681 {
682 struct imx_mu_priv *priv = dev_get_drvdata(dev);
683 int ret;
684
685 ret = clk_prepare_enable(priv->clk);
686 if (ret)
687 dev_err(dev, "failed to enable clock\n");
688
689 return ret;
690 }
691
--
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-10-11 23:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-11 23:53 [freescale-fslc:pr/642 8945/30000] drivers/mailbox/imx-mailbox.c:680:12: warning: 'imx_mu_runtime_resume' defined but not used 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.