From: kernel test robot <lkp@intel.com>
To: Kamil Rakoczy <krakoczy@antmicro.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Stafford Horne <shorne@gmail.com>,
Maciej Dudek <mdudek@internships.antmicro.com>,
Gabriel Somlo <gsomlo@gmail.com>,
Paul Mackerras <paulus@ozlabs.org>
Subject: [stffrdhrn:or1k-5.15-litex-sdcard 1/1] drivers/mmc/host/litex_mmc.c:96:6: error: no previous prototype for 'sdclk_set_clk'
Date: Tue, 14 Sep 2021 13:25:47 +0800 [thread overview]
Message-ID: <202109141340.mZ70oNKL-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]
tree: https://github.com/stffrdhrn/linux.git or1k-5.15-litex-sdcard
head: 9802d0ed2e47ab8b2c6c3e82c4f41591ec11f958
commit: 9802d0ed2e47ab8b2c6c3e82c4f41591ec11f958 [1/1] LiteX: driver for LiteSDCard (litex_mmc)
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
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
# https://github.com/stffrdhrn/linux/commit/9802d0ed2e47ab8b2c6c3e82c4f41591ec11f958
git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
git fetch --no-tags stffrdhrn or1k-5.15-litex-sdcard
git checkout 9802d0ed2e47ab8b2c6c3e82c4f41591ec11f958
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/mmc/host/litex_mmc.c:96:6: error: no previous prototype for 'sdclk_set_clk' [-Werror=missing-prototypes]
96 | void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 74087 bytes --]
reply other threads:[~2021-09-14 5:27 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=202109141340.mZ70oNKL-lkp@intel.com \
--to=lkp@intel.com \
--cc=gsomlo@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=krakoczy@antmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mdudek@internships.antmicro.com \
--cc=paulus@ozlabs.org \
--cc=shorne@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®