devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org, Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Nicolas Ferre <nicolas.ferre@atmel.com>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Rob Herring <robh+dt@kernel.org>,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	kbuild-all@01.org, Kumar Gala <galak@codeaurora.org>,
	Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Subject: Re: [PATCH 1/2] drm: bridge: sil902x
Date: Wed, 6 Jan 2016 20:13:12 +0800	[thread overview]
Message-ID: <201601062039.yWl6YEPz%fengguang.wu@intel.com> (raw)
In-Reply-To: <1452079551-30914-1-git-send-email-boris.brezillon@free-electrons.com>

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

Hi Boris,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.4-rc8 next-20160106]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Boris-Brezillon/drm-bridge-sil902x/20160106-192921
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/sil902x.c: In function 'sil902x_probe':
>> drivers/gpu/drm/bridge/sil902x.c:401:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
      dev_err(dev, "Failed to retrieve/request reset gpio: %d\n",
                   ^
   In file included from drivers/gpu/drm/bridge/sil902x.c:26:0:
   drivers/gpu/drm/bridge/sil902x.c: At top level:
>> drivers/gpu/drm/bridge/sil902x.c:476:26: error: 'sil9022_id' undeclared here (not in a function)
    MODULE_DEVICE_TABLE(i2c, sil9022_id);
                             ^
   include/linux/module.h:223:21: note: in definition of macro 'MODULE_DEVICE_TABLE'
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                        ^
>> include/linux/module.h:223:27: error: '__mod_i2c__sil9022_id_device_table' aliased to undefined symbol 'sil9022_id'
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                              ^
>> drivers/gpu/drm/bridge/sil902x.c:476:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(i2c, sil9022_id);
    ^

vim +/sil9022_id +476 drivers/gpu/drm/bridge/sil902x.c

   395		sil902x->regmap = devm_regmap_init_i2c(client, &sil902x_regmap_config);
   396		if (IS_ERR(sil902x->regmap))
   397			return PTR_ERR(sil902x->regmap);
   398	
   399		sil902x->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
   400		if (IS_ERR(sil902x->reset_gpio)) {
 > 401			dev_err(dev, "Failed to retrieve/request reset gpio: %d\n",
   402				PTR_ERR(sil902x->reset_gpio));
   403			return PTR_ERR(sil902x->reset_gpio);
   404		}
   405	
   406		sil902x_reset(sil902x);
   407	
   408		ret = regmap_write(sil902x->regmap, SIL902X_REG_TPI_RQB, 0x0);
   409		if (ret)
   410			return ret;
   411	
   412		ret = regmap_bulk_read(sil902x->regmap, SIL902X_REG_CHIPID(0),
   413				       &chipid, 4);
   414		if (ret) {
   415			dev_err(dev, "regmap_read failed %d\n", ret);
   416			return ret;
   417		}
   418	
   419		if (chipid[0] != 0xb0) {
   420			dev_err(dev, "Invalid chipid: %02x (expecting 0xb0)\n",
   421				chipid[0]);
   422			return -EINVAL;
   423		}
   424	
   425		/* Clear all pending interrupts */
   426		regmap_read(sil902x->regmap, SI902X_INT_STATUS, &status);
   427		regmap_write(sil902x->regmap, SI902X_INT_STATUS, status);
   428	
   429		if (client->irq > 0) {
   430			regmap_write(sil902x->regmap, SI902X_INT_ENABLE,
   431				     SI902X_HOTPLUG_EVENT);
   432	
   433			ret = devm_request_threaded_irq(dev, client->irq, NULL,
   434							sil902x_interrupt,
   435							IRQF_ONESHOT, dev_name(dev),
   436							sil902x);
   437			if (ret)
   438				return ret;
   439		}
   440	
   441		sil902x->bridge.funcs = &sil902x_bridge_funcs;
   442		sil902x->bridge.of_node = dev->of_node;
   443		ret = drm_bridge_add(&sil902x->bridge);
   444		if (ret) {
   445			dev_err(dev, "Failed to add drm_bridge\n");
   446			return ret;
   447		}
   448	
   449		i2c_set_clientdata(client, sil902x);
   450	
   451		return 0;
   452	}
   453	
   454	static int sil902x_remove(struct i2c_client *client)
   455	
   456	{
   457		struct sil902x *sil902x = i2c_get_clientdata(client);
   458	
   459		drm_bridge_remove(&sil902x->bridge);
   460	
   461		return 0;
   462	}
   463	
   464	#ifdef CONFIG_OF
   465	static const struct of_device_id sil902x_dt_ids[] = {
   466		{ .compatible = "sil,sil9022", },
   467		{ }
   468	};
   469	MODULE_DEVICE_TABLE(of, sil902x_dt_ids);
   470	#endif
   471	
   472	static const struct i2c_device_id sil902x_i2c_ids[] = {
   473		{ "sil9022", 0 },
   474		{ },
   475	};
 > 476	MODULE_DEVICE_TABLE(i2c, sil9022_id);
   477	
   478	static struct i2c_driver sil902x_driver = {
   479		.probe = sil902x_probe,

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

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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-01-06 12:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06 11:25 [PATCH 1/2] drm: bridge: sil902x Boris Brezillon
2016-01-06 11:25 ` [PATCH 2/2] drm: bridge: add sil902x DT bindings doc Boris Brezillon
     [not found]   ` <1452079551-30914-2-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-01-06 13:19     ` Rob Herring
2016-01-06 13:24       ` Boris Brezillon
2016-01-06 12:13 ` kbuild test robot [this message]
2016-01-06 12:25 ` [PATCH v2 1/2] drm: bridge: sil902x Boris Brezillon
2016-01-07  5:42   ` Archit Taneja
2016-01-07  9:35     ` Boris Brezillon
     [not found]   ` <1452083126-18211-1-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-03-16 13:14     ` Nicolas Ferre
2016-01-06 12:36 ` [PATCH " kbuild test robot
2016-01-06 13:47 ` Sascha Hauer
2016-01-06 13:53   ` Boris Brezillon
2016-01-06 15:26     ` Sascha Hauer
     [not found]       ` <20160106152638.GS13058-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2016-01-06 15:35         ` Ilia Mirkin
     [not found]           ` <CAKb7UvghNhGZLUX_3LchZoiYAtywN99tEpDy+k8ApPnPF-ce+Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-07  7:01             ` Sascha Hauer

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=201601062039.yWl6YEPz%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=nicolas.ferre@atmel.com \
    --cc=pawel.moll@arm.com \
    --cc=plagnioj@jcrosoft.com \
    --cc=robh+dt@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).