From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [rcar:gmsl/eagle-v3m 3/17] drivers/media/i2c/max9286.c:758:6: error: 'struct gpio_chip' has no member named 'of_node'
Date: Wed, 11 Dec 2019 16:05:09 +0800 [thread overview]
Message-ID: <201912111604.giN2O2nO%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2170 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git gmsl/eagle-v3m
head: 95cd611f492645b1ef7b666b1959184c9984f3c5
commit: dff16714cbb59376484799797ff903fcca8fc3e3 [3/17] media: i2c: max9286: Add GPIO chip controller
config: xtensa-randconfig-a001-20191211 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout dff16714cbb59376484799797ff903fcca8fc3e3
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/media/i2c/max9286.c: In function 'max9286_gpio':
>> drivers/media/i2c/max9286.c:758:6: error: 'struct gpio_chip' has no member named 'of_node'
gpio->of_node = dev->of_node;
^~
vim +758 drivers/media/i2c/max9286.c
742
743 static int max9286_gpio(struct max9286_priv *priv)
744 {
745 struct device *dev = &priv->client->dev;
746 struct gpio_chip *gpio = &priv->gpio;
747 int ret;
748
749 static const char * const names[] = {
750 "GPIO0OUT",
751 "GPIO1OUT",
752 };
753
754 /* Configure the GPIO */
755 gpio->label = dev_name(dev);
756 gpio->parent = dev;
757 gpio->owner = THIS_MODULE;
> 758 gpio->of_node = dev->of_node;
759 gpio->ngpio = 2;
760 gpio->set = max9286_gpio_set;
761 gpio->get = max9286_gpio_get;
762 gpio->can_sleep = true;
763 gpio->names = names;
764
765 /* GPIO values default to high */
766 priv->gpio_state = BIT(0) | BIT(1);
767
768 ret = devm_gpiochip_add_data(dev, gpio, priv);
769 if (ret)
770 dev_err(dev, "Unable to create gpio_chip\n");
771
772 return ret;
773 }
774
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26802 bytes --]
reply other threads:[~2019-12-11 8:05 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=201912111604.giN2O2nO%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.