* [renesas:topic/sdr104-v4 3/4] drivers/mmc/host/sh_mobile_sdhi.c:455:10: warning: 'return' with a val
@ 2016-07-27 5:45 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-07-27 5:45 UTC (permalink / raw)
To: linux-sh
[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git topic/sdr104-v4
head: 05e468b9e81e2710d19038b40931e7dc1387804c
commit: 501d962d362d87ac3cd9fda212fff5800eff34ea [3/4] mmc: sh_mobile_sdhi: Add tuning support
config: arm-shmobile_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 501d962d362d87ac3cd9fda212fff5800eff34ea
# save the attached .config to linux build tree
make.cross ARCH=arm
All warnings (new ones prefixed by >>):
drivers/mmc/host/sh_mobile_sdhi.c: In function 'sh_mobile_sdhi_hw_reset':
>> drivers/mmc/host/sh_mobile_sdhi.c:455:10: warning: 'return' with a value, in function returning void
return 0;
^
vim +/return +455 drivers/mmc/host/sh_mobile_sdhi.c
439 SH_MOBILE_SDHI_SCC_RVSCNTL_RVSEN &&
440 sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_RVSREQ) &
441 SH_MOBILE_SDHI_SCC_RVSREQ_RVSERR) {
442 /* Clear SCC error */
443 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_RVSREQ, 0);
444 return true;
445 }
446
447 return false;
448 }
449
450 static void sh_mobile_sdhi_hw_reset(struct tmio_mmc_host *host)
451 {
452 struct sh_mobile_sdhi *priv;
453
454 if (host->mmc->caps & MMC_CAP_UHS_SDR104)
> 455 return 0;
456
457 priv = host_to_priv(host);
458
459 /* Reset SCC */
460 sd_ctrl_write16(host, CTL_SD_CARD_CLK_CTL, ~CLK_CTL_SCLKEN &
461 sd_ctrl_read16(host, CTL_SD_CARD_CLK_CTL));
462
463 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_CKSEL,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 25049 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-27 5:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-27 5:45 [renesas:topic/sdr104-v4 3/4] drivers/mmc/host/sh_mobile_sdhi.c:455:10: warning: 'return' with a val kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).