[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110271925.jkAYedi5-lkp@intel.com>
Date: Wed, 27 Oct 2021 19:05:31 +0800
From: kernel test robot <lkp@...el.com>
To: Hans Verkuil <hverkuil@...all.nl>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.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'
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@...el.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
Download attachment ".config.gz" of type "application/gzip" (28344 bytes)
Powered by blists - more mailing lists