iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: honghui.zhang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org
Cc: youlin.pei-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org,
	robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	srv_heupstream-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org,
	catalin.marinas-5wv7dgnIgG8@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	kbuild-all-JC7UmRfGjtg@public.gmane.org,
	matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	erin.lo-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH] memory: mtk-smi: Use of_device_get_match_data helper
Date: Sun, 30 Jul 2017 08:45:45 +0800	[thread overview]
Message-ID: <201707300800.UX7FZ2fo%fengguang.wu@intel.com> (raw)
In-Reply-To: <1501062725-8571-1-git-send-email-honghui.zhang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>

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

Hi Honghui,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.13-rc2 next-20170728]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/honghui-zhang-mediatek-com/memory-mtk-smi-Use-of_device_get_match_data-helper/20170728-161812
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers//memory/mtk-smi.c: In function 'mtk_smi_common_probe':
>> drivers//memory/mtk-smi.c:341:10: error: incompatible types when assigning to type 'enum mtk_smi_gen' from type 'const void *'
     smi_gen = of_device_get_match_data(dev);
             ^

vim +341 drivers//memory/mtk-smi.c

   311	
   312	static int mtk_smi_common_probe(struct platform_device *pdev)
   313	{
   314		struct device *dev = &pdev->dev;
   315		struct mtk_smi *common;
   316		struct resource *res;
   317		enum mtk_smi_gen smi_gen;
   318	
   319		if (!dev->pm_domain)
   320			return -EPROBE_DEFER;
   321	
   322		common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL);
   323		if (!common)
   324			return -ENOMEM;
   325		common->dev = dev;
   326	
   327		common->clk_apb = devm_clk_get(dev, "apb");
   328		if (IS_ERR(common->clk_apb))
   329			return PTR_ERR(common->clk_apb);
   330	
   331		common->clk_smi = devm_clk_get(dev, "smi");
   332		if (IS_ERR(common->clk_smi))
   333			return PTR_ERR(common->clk_smi);
   334	
   335		/*
   336		 * for mtk smi gen 1, we need to get the ao(always on) base to config
   337		 * m4u port, and we need to enable the aync clock for transform the smi
   338		 * clock into emi clock domain, but for mtk smi gen2, there's no smi ao
   339		 * base.
   340		 */
 > 341		smi_gen = of_device_get_match_data(dev);
   342		if (smi_gen == MTK_SMI_GEN1) {
   343			res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
   344			common->smi_ao_base = devm_ioremap_resource(dev, res);
   345			if (IS_ERR(common->smi_ao_base))
   346				return PTR_ERR(common->smi_ao_base);
   347	
   348			common->clk_async = devm_clk_get(dev, "async");
   349			if (IS_ERR(common->clk_async))
   350				return PTR_ERR(common->clk_async);
   351	
   352			clk_prepare_enable(common->clk_async);
   353		}
   354		pm_runtime_enable(dev);
   355		platform_set_drvdata(pdev, common);
   356		return 0;
   357	}
   358	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56840 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2017-07-30  0:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-26  9:52 [PATCH] memory: mtk-smi: Use of_device_get_match_data helper honghui.zhang
     [not found] ` <1501062725-8571-1-git-send-email-honghui.zhang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-07-30  0:45   ` kbuild test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-07-26  9:59 honghui.zhang
2017-07-26 10:36 ` Robin Murphy
     [not found]   ` <1d31eedd-fdab-bd6f-65b1-c0e8b79a8888-5wv7dgnIgG8@public.gmane.org>
2017-07-26 12:35     ` Honghui Zhang

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=201707300800.UX7FZ2fo%fengguang.wu@intel.com \
    --to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \
    --cc=erin.lo-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org \
    --cc=honghui.zhang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=srv_heupstream-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org \
    --cc=youlin.pei-NuS5LvNUpcJWk0Htik3J/w@public.gmane.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).