linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [hverkuil-media:hdmi-dbg 9/11] drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node'
@ 2021-09-11 10:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-11 10:44 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: kbuild-all, linux-kernel

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

tree:   git://linuxtv.org/hverkuil/media_tree.git hdmi-dbg
head:   62840ed1491a81a6c57dd4183216c5e599f8025d
commit: b8ca4c46e7613329ffb82d415cc062175f442e16 [9/11] 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 git://linuxtv.org/hverkuil/media_tree.git
        git fetch --no-tags hverkuil-media 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-11 10:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 10:44 [hverkuil-media:hdmi-dbg 9/11] drivers/gpio/gpio-virt-link.c:354:19: error: 'struct gpio_chip' has no member named 'of_node' kernel test robot

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