All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [android-goldfish:android-3.18 442/460] drivers/mmc/host/sdhci-of-esdhc.c:361:11: error: invalid use of undefined type 'struct sdhci_esdhc'
Date: Fri, 13 Aug 2021 13:46:37 +0800	[thread overview]
Message-ID: <202108131330.rafVitYG-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3536 bytes --]

tree:   https://android.googlesource.com/kernel/goldfish android-3.18
head:   03c65f790cc49ff38432f8c39f3cd1320fcb1f2a
commit: dc29f368658a96818bc9c602b0f160e603a0d4a6 [442/460] mmc: sdhci-of-esdhc: add/remove some quirks according to vendor version
config: powerpc-buildonly-randconfig-r005-20210812 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.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
        git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
        git fetch --no-tags android-goldfish android-3.18
        git checkout dc29f368658a96818bc9c602b0f160e603a0d4a6
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash M=drivers/mmc/host

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 >>):

   In file included from arch/powerpc/include/asm/elf.h:12,
                    from include/linux/elf.h:4,
                    from include/linux/module.h:14,
                    from drivers/mmc/host/sdhci-of-esdhc.c:20:
   include/linux/sched.h:1067:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    1067 | const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
         | ^~~~~
   drivers/mmc/host/sdhci-of-esdhc.c: In function 'sdhci_esdhc_probe':
>> drivers/mmc/host/sdhci-of-esdhc.c:361:11: error: invalid use of undefined type 'struct sdhci_esdhc'
     361 |  if (esdhc->vendor_ver == VENDOR_V_22)
         |           ^~
   drivers/mmc/host/sdhci-of-esdhc.c:364:11: error: invalid use of undefined type 'struct sdhci_esdhc'
     364 |  if (esdhc->vendor_ver > VENDOR_V_22)
         |           ^~


vim +361 drivers/mmc/host/sdhci-of-esdhc.c

   342	
   343	static int sdhci_esdhc_probe(struct platform_device *pdev)
   344	{
   345		struct sdhci_host *host;
   346		struct device_node *np;
   347		struct sdhci_pltfm_host *pltfm_host;
   348		struct sdhci_esdhc *esdhc;
   349		int ret;
   350	
   351		host = sdhci_pltfm_init(pdev, &sdhci_esdhc_pdata, 0);
   352		if (IS_ERR(host))
   353			return PTR_ERR(host);
   354	
   355		sdhci_get_of_property(pdev);
   356	
   357		np = pdev->dev.of_node;
   358	
   359		pltfm_host = sdhci_priv(host);
   360		esdhc = pltfm_host->priv;
 > 361		if (esdhc->vendor_ver == VENDOR_V_22)
   362			host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
   363	
   364		if (esdhc->vendor_ver > VENDOR_V_22)
   365			host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ;
   366	
   367		if (of_device_is_compatible(np, "fsl,p2020-esdhc")) {
   368			/*
   369			 * Freescale messed up with P2020 as it has a non-standard
   370			 * host control register
   371			 */
   372			host->quirks2 |= SDHCI_QUIRK2_BROKEN_HOST_CONTROL;
   373		}
   374	
   375		/* call to generic mmc_of_parse to support additional capabilities */
   376		mmc_of_parse(host->mmc);
   377		mmc_of_parse_voltage(np, &host->ocr_mask);
   378	
   379		ret = sdhci_add_host(host);
   380		if (ret)
   381			sdhci_pltfm_free(pdev);
   382	
   383		return ret;
   384	}
   385	

---
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: 18200 bytes --]

                 reply	other threads:[~2021-08-13  5:46 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=202108131330.rafVitYG-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.