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:5.15-2.2.x-imx 17396/24604] drivers/mailbox/imx-mailbox.c:132:10: warning: no previous prototype for function 'get_mu_buf'
Date: Fri, 1 Sep 2023 00:42:25 +0800	[thread overview]
Message-ID: <202309010033.JkSO09XI-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-08-31 16:43 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=202309010033.JkSO09XI-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.