From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [shenki:microwatt-v5.16 3/9] drivers/mmc/host/litex_mmc.c:96:6: warning: no previous prototype for function 'sdclk_set_clk'
Date: Fri, 19 Nov 2021 11:05:51 +0800 [thread overview]
Message-ID: <202111191142.8GGttpFK-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2262 bytes --]
tree: https://github.com/shenki/linux microwatt-v5.16
head: 8e96c87e7fba5fb249efd40842c26c2bb426d49c
commit: 332995960c8d441be0974f27a128b2856139074a [3/9] LiteX: driver for LiteSDCard (litex_mmc)
config: riscv-buildonly-randconfig-r003-20211119 (attached as .config)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/shenki/linux/commit/332995960c8d441be0974f27a128b2856139074a
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki microwatt-v5.16
git checkout 332995960c8d441be0974f27a128b2856139074a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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/litex_mmc.c:96:6: warning: no previous prototype for function 'sdclk_set_clk' [-Wmissing-prototypes]
void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
^
drivers/mmc/host/litex_mmc.c:96:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
^
static
1 warning generated.
vim +/sdclk_set_clk +96 drivers/mmc/host/litex_mmc.c
94
95
> 96 void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
97 u32 div = clk_freq ? host->freq / clk_freq : 256;
98 div = roundup_pow_of_two(div);
99 div = min(max(div, (u32)2), (u32)256);
100 dev_info(&host->dev->dev,
101 "Requested clk_freq=%d: set to %d via div=%d\n",
102 clk_freq, host->freq / div, div);
103 litex_write16(host->sdphy + LITEX_MMC_SDPHY_CLOCKERDIV_OFF, div);
104 }
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26071 bytes --]
reply other threads:[~2021-11-19 3:05 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=202111191142.8GGttpFK-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.