linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: linux-sh@vger.kernel.org
Subject: [renesas:topic/sdr104-v4 3/4] drivers/mmc/host/sh_mobile_sdhi.c:455:10: warning: 'return' with a val
Date: Wed, 27 Jul 2016 05:45:44 +0000	[thread overview]
Message-ID: <201607271337.2as6x4NV%fengguang.wu@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2016-07-27  5:45 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=201607271337.2as6x4NV%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=linux-sh@vger.kernel.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 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).