All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:5.15-2.2.x-imx 17396/24604] drivers/mailbox/imx-mailbox.c:132:10: warning: no previous prototype for function 'get_mu_buf'
@ 2023-08-31 16:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-31 16:42 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

Hi Vabhav,

FYI, the error/warning still remains.

tree:   https://github.com/Freescale/linux-fslc 5.15-2.2.x-imx
head:   7c13adcd3af7dcd541144655102e1cdb941ad538
commit: e7f19219a4920854744c970b43522cb6d17e0262 [17396/24604] LF-6580-1: drivers: imx-mailbox: MU Buffer
config: riscv-randconfig-r016-20230831 (https://download.01.org/0day-ci/archive/20230901/202309010033.JkSO09XI-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230901/202309010033.JkSO09XI-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/202309010033.JkSO09XI-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/mailbox/imx-mailbox.c:132:10: warning: no previous prototype for function 'get_mu_buf' [-Wmissing-prototypes]
     132 | uint8_t *get_mu_buf(struct mbox_chan *chan)
         |          ^
   drivers/mailbox/imx-mailbox.c:132:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     132 | uint8_t *get_mu_buf(struct mbox_chan *chan)
         | ^
         | static 
   drivers/mailbox/imx-mailbox.c:900:10: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     900 |         .rxdb   = imx_mu_generic_rxdb,
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/mailbox/imx-mailbox.c:898:10: note: previous initialization is here
     898 |         .rxdb   = imx_mu_generic_rxdb,
         |                   ^~~~~~~~~~~~~~~~~~~
   2 warnings generated.


vim +/get_mu_buf +132 drivers/mailbox/imx-mailbox.c

   131	
 > 132	uint8_t *get_mu_buf(struct mbox_chan *chan)
   133	{
   134		uint8_t *addr;
   135		struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox);
   136	
   137		addr = priv->base + priv->dcfg->xBUF;
   138		return addr;
   139	}
   140	EXPORT_SYMBOL(get_mu_buf);
   141	

-- 
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-08-31 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31 16:42 [freescale-fslc:5.15-2.2.x-imx 17396/24604] drivers/mailbox/imx-mailbox.c:132:10: warning: no previous prototype for function 'get_mu_buf' 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.