All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: kbuild test robot <lkp@intel.com>
Cc: intel-gfx@lists.freedesktop.org, kbuild-all@01.org
Subject: Re: [PATCH v4 4/4] drm/i915/bxt: add bxt dsi gpio element support
Date: Fri, 08 Apr 2016 12:16:03 +0300	[thread overview]
Message-ID: <87twjcv4to.fsf@intel.com> (raw)
In-Reply-To: <201604072247.ZFGaV8eE%fengguang.wu@intel.com>

On Thu, 07 Apr 2016, kbuild test robot <lkp@intel.com> wrote:
> Hi Jani,
>
> [auto build test ERROR on drm-intel/for-linux-next]
> [cannot apply to v4.6-rc2 next-20160407]
> [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/Jani-Nikula/drm-i915-dsi-improved-gpio-element-support-for-vlv-chv-bxt/20160407-223107
> base:   git://anongit.freedesktop.org/drm-intel for-linux-next
> config: x86_64-randconfig-a0-04072115 (attached as .config)

Meh, including linux/gpio.h works for CONFIG_GPIOLIB=y, but it fails to
include the consumer function stubs for CONFIG_GPIOLIB=n. The fix is to
include linux/gpio/consumer.h instead.

BR,
Jani.


> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
>
> All errors (new ones prefixed by >>):
>
>    drivers/gpu/drm/i915/intel_dsi_panel_vbt.c: In function 'bxt_exec_gpio':
>>> drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:307:15: error: implicit declaration of function 'devm_gpiod_get_index' [-Werror=implicit-function-declaration]
>       gpio_desc = devm_gpiod_get_index(dev_priv->dev->dev,
>                   ^
>>> drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:309:16: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)
>            value ? GPIOD_OUT_LOW :
>                    ^
>    drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:309:16: note: each undeclared identifier is reported only once for each function it appears in
>>> drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:310:8: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function)
>            GPIOD_OUT_HIGH);
>            ^
>>> drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:321:2: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration]
>      gpiod_set_value(gpio_desc, value);
>      ^
>    cc1: some warnings being treated as errors
>
> vim +/devm_gpiod_get_index +307 drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
>
>    301	{
>    302		/* XXX: this table is a quick ugly hack. */
>    303		static struct gpio_desc *bxt_gpio_table[U8_MAX + 1];
>    304		struct gpio_desc *gpio_desc = bxt_gpio_table[gpio_index];
>    305	
>    306		if (!gpio_desc) {
>  > 307			gpio_desc = devm_gpiod_get_index(dev_priv->dev->dev,
>    308							 NULL, gpio_index,
>  > 309							 value ? GPIOD_OUT_LOW :
>  > 310							 GPIOD_OUT_HIGH);
>    311	
>    312			if (IS_ERR_OR_NULL(gpio_desc)) {
>    313				DRM_ERROR("GPIO index %u request failed (%ld)\n",
>    314					  gpio_index, PTR_ERR(gpio_desc));
>    315				return;
>    316			}
>    317	
>    318			bxt_gpio_table[gpio_index] = gpio_desc;
>    319		}
>    320	
>  > 321		gpiod_set_value(gpio_desc, value);
>    322	}
>    323	
>    324	static const u8 *mipi_exec_gpio(struct intel_dsi *intel_dsi, const u8 *data)
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-04-08  9:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 14:26 [PATCH v4 0/4] drm/i915/dsi: improved gpio element support for vlv/chv/bxt Jani Nikula
2016-04-07 14:26 ` [PATCH v4 1/4] drm/i915/dsi: don't pretend we support SC GPIOs Jani Nikula
2016-04-26 10:22   ` Jani Nikula
2016-04-07 14:26 ` [PATCH v4 2/4] drm/i915/dsi: add support for sequence block v3 gpio for VLV Jani Nikula
2016-04-07 14:26 ` [PATCH v4 3/4] drm/i915/dsi: add support for gpio elements on CHV Jani Nikula
2016-04-11  8:14   ` Ville Syrjälä
2016-04-07 14:26 ` [PATCH v4 4/4] drm/i915/bxt: add bxt dsi gpio element support Jani Nikula
2016-04-07 15:01   ` kbuild test robot
2016-04-08  9:16     ` Jani Nikula [this message]
2016-04-07 16:32 ` ✗ Fi.CI.BAT: failure for drm/i915/dsi: improved gpio element support for vlv/chv/bxt (rev4) Patchwork

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=87twjcv4to.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=kbuild-all@01.org \
    --cc=lkp@intel.com \
    /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.