All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hverkuil-media-tree:hdmi-dbg 9/12] drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node'
Date: Wed, 27 Oct 2021 19:05:31 +0800	[thread overview]
Message-ID: <202110271925.jkAYedi5-lkp@intel.com> (raw)

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

tree:   git://linuxtv.org/hverkuil/media_tree.git hdmi-dbg
head:   403318de33fd5972307d2ae83efbcdbfbe13d174
commit: b8ca4c46e7613329ffb82d415cc062175f442e16 [9/12] gpio-virt-link: wip: add virtual gpio link driver
config: s390-allmodconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
        git fetch --no-tags hverkuil-media-tree hdmi-dbg
        git checkout b8ca4c46e7613329ffb82d415cc062175f442e16
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash drivers/gpio/

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/gpio/gpio-virt-link.c: In function 'gpio_virt_link_add_gpio_chips':
>> drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node'
     354 |                 gc->of_node                 = node;
         |                   ^~
   drivers/gpio/gpio-virt-link.c:381:19: error: 'struct gpio_chip' has no member named 'of_node'
     381 |                 gc->of_node                 = node;
         |                   ^~


vim +354 drivers/gpio/gpio-virt-link.c

   331	
   332	static int gpio_virt_link_add_gpio_chips(struct gpio_virt_link_state *state)
   333	{
   334		struct device_node *node;
   335		struct gpio_chip *gc;
   336		int ret;
   337	
   338		/* out */
   339		node = of_find_node_by_name(state->dev->of_node, GVL_NODE_OUT);
   340		if (node) {
   341			gc = &state->gcout;
   342	
   343			gc->label                   = GVL_NODE_OUT;
   344			gc->names                   = NULL;
   345			gc->direction_input         = NULL;
   346			gc->direction_output        = vgl_direction_output;
   347			gc->set                     = vgl_set_output;
   348			gc->get                     = vgl_get_output;
   349			gc->base                    = -1;
   350			gc->ngpio                   = state->num_outputs;
   351			gc->can_sleep               = 1;
   352			gc->parent                  = state->dev;
   353			gc->owner                   = THIS_MODULE;
 > 354			gc->of_node                 = node;
   355	
   356			of_node_put(node);
   357	
   358			ret = devm_gpiochip_add_data(state->dev, gc, state);
   359			if (ret < 0) {
   360				dev_err(state->dev, "Failed to add gpio out chip\n");
   361				return ret;
   362			}
   363		}
   364	
   365		/* in */
   366		node = of_find_node_by_name(state->dev->of_node, GVL_NODE_IN);
   367		if (node) {
   368			gc = &state->gcin;
   369	
   370			gc->label                   = GVL_NODE_IN;
   371			gc->names                   = NULL;
   372			gc->direction_input         = vgl_direction_input;
   373			gc->direction_output        = NULL;
   374			gc->set                     = NULL;
   375			gc->get                     = vgl_get_input;
   376			gc->base                    = -1;
   377			gc->ngpio                   = state->num_inputs;
   378			gc->can_sleep               = 1;
   379			gc->parent                  = state->dev;
   380			gc->owner                   = THIS_MODULE;
   381			gc->of_node                 = node;
   382	
   383			of_node_put(node);
   384		
   385			state->irqin.name = "gpio-virt-link-irq",
   386			state->irqin.irq_mask = vgl_irq_mask,
   387			state->irqin.irq_unmask = vgl_irq_unmask,
   388			state->irqin.irq_set_type = vgl_irq_set_type,
   389			gc->irq.chip = &state->irqin;
   390			gc->irq.parent_handler = NULL;
   391			gc->irq.num_parents = 0;
   392			gc->irq.parents = NULL;
   393			gc->irq.default_type = IRQ_TYPE_NONE;
   394			gc->irq.handler = handle_simple_irq;
   395	
   396			ret = devm_gpiochip_add_data(state->dev, gc, state);
   397			if (ret < 0) {
   398				dev_err(state->dev, "Failed to add gpio chip\n");
   399				return ret;
   400			}
   401		}
   402	
   403		return 0;
   404	}
   405	

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hverkuil-media-tree:hdmi-dbg 9/12] drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node'
Date: Wed, 27 Oct 2021 19:05:31 +0800	[thread overview]
Message-ID: <202110271925.jkAYedi5-lkp@intel.com> (raw)

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

tree:   git://linuxtv.org/hverkuil/media_tree.git hdmi-dbg
head:   403318de33fd5972307d2ae83efbcdbfbe13d174
commit: b8ca4c46e7613329ffb82d415cc062175f442e16 [9/12] gpio-virt-link: wip: add virtual gpio link driver
config: s390-allmodconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
        git fetch --no-tags hverkuil-media-tree hdmi-dbg
        git checkout b8ca4c46e7613329ffb82d415cc062175f442e16
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash drivers/gpio/

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/gpio/gpio-virt-link.c: In function 'gpio_virt_link_add_gpio_chips':
>> drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node'
     354 |                 gc->of_node                 = node;
         |                   ^~
   drivers/gpio/gpio-virt-link.c:381:19: error: 'struct gpio_chip' has no member named 'of_node'
     381 |                 gc->of_node                 = node;
         |                   ^~


vim +354 drivers/gpio/gpio-virt-link.c

   331	
   332	static int gpio_virt_link_add_gpio_chips(struct gpio_virt_link_state *state)
   333	{
   334		struct device_node *node;
   335		struct gpio_chip *gc;
   336		int ret;
   337	
   338		/* out */
   339		node = of_find_node_by_name(state->dev->of_node, GVL_NODE_OUT);
   340		if (node) {
   341			gc = &state->gcout;
   342	
   343			gc->label                   = GVL_NODE_OUT;
   344			gc->names                   = NULL;
   345			gc->direction_input         = NULL;
   346			gc->direction_output        = vgl_direction_output;
   347			gc->set                     = vgl_set_output;
   348			gc->get                     = vgl_get_output;
   349			gc->base                    = -1;
   350			gc->ngpio                   = state->num_outputs;
   351			gc->can_sleep               = 1;
   352			gc->parent                  = state->dev;
   353			gc->owner                   = THIS_MODULE;
 > 354			gc->of_node                 = node;
   355	
   356			of_node_put(node);
   357	
   358			ret = devm_gpiochip_add_data(state->dev, gc, state);
   359			if (ret < 0) {
   360				dev_err(state->dev, "Failed to add gpio out chip\n");
   361				return ret;
   362			}
   363		}
   364	
   365		/* in */
   366		node = of_find_node_by_name(state->dev->of_node, GVL_NODE_IN);
   367		if (node) {
   368			gc = &state->gcin;
   369	
   370			gc->label                   = GVL_NODE_IN;
   371			gc->names                   = NULL;
   372			gc->direction_input         = vgl_direction_input;
   373			gc->direction_output        = NULL;
   374			gc->set                     = NULL;
   375			gc->get                     = vgl_get_input;
   376			gc->base                    = -1;
   377			gc->ngpio                   = state->num_inputs;
   378			gc->can_sleep               = 1;
   379			gc->parent                  = state->dev;
   380			gc->owner                   = THIS_MODULE;
   381			gc->of_node                 = node;
   382	
   383			of_node_put(node);
   384		
   385			state->irqin.name = "gpio-virt-link-irq",
   386			state->irqin.irq_mask = vgl_irq_mask,
   387			state->irqin.irq_unmask = vgl_irq_unmask,
   388			state->irqin.irq_set_type = vgl_irq_set_type,
   389			gc->irq.chip = &state->irqin;
   390			gc->irq.parent_handler = NULL;
   391			gc->irq.num_parents = 0;
   392			gc->irq.parents = NULL;
   393			gc->irq.default_type = IRQ_TYPE_NONE;
   394			gc->irq.handler = handle_simple_irq;
   395	
   396			ret = devm_gpiochip_add_data(state->dev, gc, state);
   397			if (ret < 0) {
   398				dev_err(state->dev, "Failed to add gpio chip\n");
   399				return ret;
   400			}
   401		}
   402	
   403		return 0;
   404	}
   405	

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

             reply	other threads:[~2021-10-27 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 11:05 kernel test robot [this message]
2021-10-27 11:05 ` [hverkuil-media-tree:hdmi-dbg 9/12] drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node' kernel test robot

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=202110271925.jkAYedi5-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.