Linux-Media Archive on lore.kernel.org
 help / color / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Cc: kbuild-all@lists.01.org,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	linux-media@vger.kernel.org,
	"Jacopo Mondi" <jacopo+renesas@jmondi.org>,
	"Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
	"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>
Subject: [linux-next:master 8424/13260] drivers/media/i2c/max9286.c:1033:6: error: 'struct gpio_chip' has no member named 'of_node'
Date: Sun, 2 Aug 2020 21:05:35 +0800
Message-ID: <202008022131.aifpYvDt%lkp@intel.com> (raw)


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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: 66d8c9d2422da21ed41f75c03ba0685987b65fe0 [8424/13260] media: i2c: Add MAX9286 driver
config: c6x-randconfig-s032-20200802 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-115-g5fc204f2-dirty
        git checkout 66d8c9d2422da21ed41f75c03ba0685987b65fe0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=c6x 

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

   drivers/media/i2c/max9286.c: In function 'max9286_register_gpio':
>> drivers/media/i2c/max9286.c:1033:6: error: 'struct gpio_chip' has no member named 'of_node'
    1033 |  gpio->of_node = dev->of_node;
         |      ^~

vim +1033 drivers/media/i2c/max9286.c

  1022	
  1023	static int max9286_register_gpio(struct max9286_priv *priv)
  1024	{
  1025		struct device *dev = &priv->client->dev;
  1026		struct gpio_chip *gpio = &priv->gpio;
  1027		int ret;
  1028	
  1029		/* Configure the GPIO */
  1030		gpio->label = dev_name(dev);
  1031		gpio->parent = dev;
  1032		gpio->owner = THIS_MODULE;
> 1033		gpio->of_node = dev->of_node;
  1034		gpio->ngpio = 2;
  1035		gpio->base = -1;
  1036		gpio->set = max9286_gpio_set;
  1037		gpio->get = max9286_gpio_get;
  1038		gpio->can_sleep = true;
  1039	
  1040		/* GPIO values default to high */
  1041		priv->gpio_state = BIT(0) | BIT(1);
  1042	
  1043		ret = devm_gpiochip_add_data(dev, gpio, priv);
  1044		if (ret)
  1045			dev_err(dev, "Unable to create gpio_chip\n");
  1046	
  1047		return ret;
  1048	}
  1049	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

                 reply index

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=202008022131.aifpYvDt%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jacopo+renesas@jmondi.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=niklas.soderlund+renesas@ragnatech.se \
    --cc=sakari.ailus@linux.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

Linux-Media Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-media/0 linux-media/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-media linux-media/ https://lore.kernel.org/linux-media \
		linux-media@vger.kernel.org
	public-inbox-index linux-media

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-media


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git