All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android14-5.15 12979/27478] drivers/mmc/core/mmc.c:978:6: error: no previous prototype for function 'mmc_set_bus_speed'
@ 2023-12-14 15:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-14 15:14 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android14-5.15
head:   5feaf92b247cfa3dd98eefa2915dfb3b305ac2d2
commit: 8756995a20526ccbdca3dbbe1c79f9a9df25690c [12979/27478] ANDROID: mmc: core: Export core functions required for clk scaling
config: x86_64-sof-customedconfig-compile-test-defconfig (https://download.01.org/0day-ci/archive/20231214/202312142332.OVLkYNmp-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231214/202312142332.OVLkYNmp-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/202312142332.OVLkYNmp-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/mmc/core/mmc.c:978:6: error: no previous prototype for function 'mmc_set_bus_speed' [-Werror,-Wmissing-prototypes]
   void mmc_set_bus_speed(struct mmc_card *card)
        ^
   drivers/mmc/core/mmc.c:978:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mmc_set_bus_speed(struct mmc_card *card)
   ^
   static 
   1 error generated.


vim +/mmc_set_bus_speed +978 drivers/mmc/core/mmc.c

   974	
   975	/*
   976	 * Set the bus speed for the selected speed mode.
   977	 */
 > 978	void mmc_set_bus_speed(struct mmc_card *card)
   979	{
   980		unsigned int max_dtr = (unsigned int)-1;
   981	
   982		if ((mmc_card_hs200(card) || mmc_card_hs400(card)) &&
   983		     max_dtr > card->ext_csd.hs200_max_dtr)
   984			max_dtr = card->ext_csd.hs200_max_dtr;
   985		else if (mmc_card_hs(card) && max_dtr > card->ext_csd.hs_max_dtr)
   986			max_dtr = card->ext_csd.hs_max_dtr;
   987		else if (max_dtr > card->csd.max_dtr)
   988			max_dtr = card->csd.max_dtr;
   989	
   990		mmc_set_clock(card->host, max_dtr);
   991	}
   992	

-- 
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-12-14 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 15:14 [android-common:android14-5.15 12979/27478] drivers/mmc/core/mmc.c:978:6: error: no previous prototype for function 'mmc_set_bus_speed' 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.