All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android15-6.6 1/1] drivers/mmc/core/mmc.c:985:6: warning: no previous prototype for function 'mmc_set_bus_speed'
Date: Tue, 24 Mar 2026 08:53:40 +0800	[thread overview]
Message-ID: <202603240805.dfUbWeto-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-03-24  0:54 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=202603240805.dfUbWeto-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.