linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ulfh-mmc:next 43/52] drivers/mmc/host/sdhci-brcmstb.c:51:6: warning: no previous prototype for function 'brcmstb_reset'
@ 2022-05-05 10:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-05 10:37 UTC (permalink / raw)
  To: Al Cooper; +Cc: llvm, kbuild-all, linux-kernel, Ulf Hansson, Kamal Dasu

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next
head:   0662d797d5962fd0a21aceb0cf651a6ff308e924
commit: 6bcc55fe648b860ef0c2b8dc23adc05bcddb93c2 [43/52] mmc: sdhci-brcmstb: Enable Clock Gating to save power
config: mips-bmips_stb_defconfig (https://download.01.org/0day-ci/archive/20220505/202205051804.E5PoKkYL-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/commit/?id=6bcc55fe648b860ef0c2b8dc23adc05bcddb93c2
        git remote add ulfh-mmc git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git
        git fetch --no-tags ulfh-mmc next
        git checkout 6bcc55fe648b860ef0c2b8dc23adc05bcddb93c2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/mmc/host/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/mmc/host/sdhci-brcmstb.c:51:6: warning: no previous prototype for function 'brcmstb_reset' [-Wmissing-prototypes]
   void brcmstb_reset(struct sdhci_host *host, u8 mask)
        ^
   drivers/mmc/host/sdhci-brcmstb.c:51:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void brcmstb_reset(struct sdhci_host *host, u8 mask)
   ^
   static 
   1 warning generated.


vim +/brcmstb_reset +51 drivers/mmc/host/sdhci-brcmstb.c

    50	
  > 51	void brcmstb_reset(struct sdhci_host *host, u8 mask)
    52	{
    53		struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
    54		struct sdhci_brcmstb_priv *priv = sdhci_pltfm_priv(pltfm_host);
    55	
    56		sdhci_reset(host, mask);
    57	
    58		/* Reset will clear this, so re-enable it */
    59		if (priv->flags & BRCMSTB_PRIV_FLAGS_GATE_CLOCK)
    60			enable_clock_gating(host);
    61	}
    62	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 10:37 [ulfh-mmc:next 43/52] drivers/mmc/host/sdhci-brcmstb.c:51:6: warning: no previous prototype for function 'brcmstb_reset' kernel test robot

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).