From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android14-5.15 12979/27478] drivers/mmc/core/mmc.c:978:6: error: no previous prototype for function 'mmc_set_bus_speed'
Date: Thu, 14 Dec 2023 23:14:01 +0800 [thread overview]
Message-ID: <202312142332.OVLkYNmp-lkp@intel.com> (raw)
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
reply other threads:[~2023-12-14 15:14 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=202312142332.OVLkYNmp-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.