All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android15-6.6 1/1] drivers/mmc/core/mmc.c:985:6: warning: no previous prototype for function 'mmc_set_bus_speed'
@ 2026-03-24  0:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-24  0:53 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android15-6.6
head:   3a8949cdc45bfeb1a68ac0e70e90909c13d3910e
commit: a8fe5ae5628fd3e6d29af800e7c63bf58d1380ee [1/1] ANDROID: mmc: core: Export core functions required for clk scaling
config: arm-randconfig-004-20260324 (https://download.01.org/0day-ci/archive/20260324/202603240805.dfUbWeto-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 054e11d1a17e5ba88bb1a8ef32fad3346e80b186)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260324/202603240805.dfUbWeto-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/202603240805.dfUbWeto-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/mmc/core/mmc.c:18:
   In file included from include/linux/mmc/host.h:18:
   In file included from include/linux/blk-crypto-profile.h:9:
   In file included from include/linux/bio.h:10:
   In file included from include/linux/blk_types.h:10:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/arm/include/asm/cacheflush.h:10:
   In file included from include/linux/mm.h:2224:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/mmc/core/mmc.c:985:6: warning: no previous prototype for function 'mmc_set_bus_speed' [-Wmissing-prototypes]
     985 | void mmc_set_bus_speed(struct mmc_card *card)
         |      ^
   drivers/mmc/core/mmc.c:985:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     985 | void mmc_set_bus_speed(struct mmc_card *card)
         | ^
         | static 
   2 warnings generated.


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

   981	
   982	/*
   983	 * Set the bus speed for the selected speed mode.
   984	 */
 > 985	void mmc_set_bus_speed(struct mmc_card *card)
   986	{
   987		unsigned int max_dtr = (unsigned int)-1;
   988	
   989		if ((mmc_card_hs200(card) || mmc_card_hs400(card)) &&
   990		     max_dtr > card->ext_csd.hs200_max_dtr)
   991			max_dtr = card->ext_csd.hs200_max_dtr;
   992		else if (mmc_card_hs(card) && max_dtr > card->ext_csd.hs_max_dtr)
   993			max_dtr = card->ext_csd.hs_max_dtr;
   994		else if (max_dtr > card->csd.max_dtr)
   995			max_dtr = card->csd.max_dtr;
   996	
   997		mmc_set_clock(card->host, max_dtr);
   998	}
   999	

-- 
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:[~2026-03-24  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24  0:53 [android-common:android15-6.6 1/1] drivers/mmc/core/mmc.c:985:6: warning: 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.