All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATH 2/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver
Date: Fri, 02 Jul 2021 02:25:51 +0800	[thread overview]
Message-ID: <202107020254.3VMksmkt-lkp@intel.com> (raw)
In-Reply-To: <20210701002037.912625-3-drew@beagleboard.org>

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

Hi Drew,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on robh/for-next]
[also build test ERROR on linux/master linus/master gpio/for-next v5.13 next-20210701]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Drew-Fustini/gpio-starfive-jh7100-Add-StarFive-JH7100-GPIO-bindings-and-driver/20210701-082306
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
        # https://github.com/0day-ci/linux/commit/450f9ef6a9c037df8e9d8b7e57d0de7b6bfd553e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Drew-Fustini/gpio-starfive-jh7100-Add-StarFive-JH7100-GPIO-bindings-and-driver/20210701-082306
        git checkout 450f9ef6a9c037df8e9d8b7e57d0de7b6bfd553e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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-starfive-jh7100.c: In function 'starfive_gpio_probe':
>> drivers/gpio/gpio-starfive-jh7100.c:384:8: error: implicit declaration of function 'devm_request_irq'; did you mean 'can_request_irq'? [-Werror=implicit-function-declaration]
     384 |  ret = devm_request_irq(dev, irq, starfive_irq_handler, IRQF_SHARED,
         |        ^~~~~~~~~~~~~~~~
         |        can_request_irq
>> drivers/gpio/gpio-starfive-jh7100.c:384:57: error: 'IRQF_SHARED' undeclared (first use in this function)
     384 |  ret = devm_request_irq(dev, irq, starfive_irq_handler, IRQF_SHARED,
         |                                                         ^~~~~~~~~~~
   drivers/gpio/gpio-starfive-jh7100.c:384:57: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +384 drivers/gpio/gpio-starfive-jh7100.c

   327	
   328	static int starfive_gpio_probe(struct platform_device *pdev)
   329	{
   330		struct device *dev = &pdev->dev;
   331		struct starfive_gpio *chip;
   332		struct gpio_irq_chip *girq;
   333		struct resource *res;
   334		int irq, ret, ngpio;
   335	
   336		chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL);
   337		if (!chip)
   338			return -ENOMEM;
   339	
   340		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
   341		chip->base = devm_ioremap_resource(dev, res);
   342		if (IS_ERR(chip->base)) {
   343			dev_err(dev, "failed to allocate device memory\n");
   344			return PTR_ERR(chip->base);
   345		}
   346	
   347		irq = platform_get_irq(pdev, 0);
   348		if (irq < 0) {
   349			dev_err(dev, "Cannot get IRQ resource\n");
   350			return irq;
   351		}
   352	
   353		raw_spin_lock_init(&chip->lock);
   354		chip->gc.direction_input = starfive_direction_input;
   355		chip->gc.direction_output = starfive_direction_output;
   356		chip->gc.get_direction = starfive_get_direction;
   357		chip->gc.get = starfive_get_value;
   358		chip->gc.set = starfive_set_value;
   359		chip->gc.base = 0;
   360		chip->gc.ngpio = MAX_GPIO;
   361		chip->gc.label = dev_name(dev);
   362		chip->gc.parent = dev;
   363		chip->gc.owner = THIS_MODULE;
   364	
   365		girq = &chip->gc.irq;
   366		girq->chip = &starfive_irqchip;
   367		girq->parent_handler = NULL;
   368		girq->num_parents = 0;
   369		girq->parents = NULL;
   370		girq->default_type = IRQ_TYPE_NONE;
   371		girq->handler = handle_simple_irq;
   372	
   373		ret = gpiochip_add_data(&chip->gc, chip);
   374		if (ret) {
   375			dev_err(dev, "gpiochip_add_data ret=%d!\n", ret);
   376			return ret;
   377		}
   378	
   379		/* Disable all GPIO interrupts before enabling parent interrupts */
   380		iowrite32(0, chip->base + GPIO_IE_HIGH);
   381		iowrite32(0, chip->base + GPIO_IE_LOW);
   382		chip->enabled = 0;
   383	
 > 384		ret = devm_request_irq(dev, irq, starfive_irq_handler, IRQF_SHARED,
   385				       dev_name(dev), chip);
   386		if (ret) {
   387			dev_err(dev, "IRQ handler registering failed (%d)\n", ret);
   388			return ret;
   389		}
   390	
   391		writel_relaxed(1, chip->base + GPIO_EN);
   392	
   393		dev_info(dev, "StarFive GPIO chip registered %d GPIOs\n", ngpio);
   394	
   395		return 0;
   396	}
   397	

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

  parent reply	other threads:[~2021-07-01 18:25 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01  0:20 [RFC PATH 0/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO bindings and driver Drew Fustini
2021-07-01  0:20 ` Drew Fustini
2021-07-01  0:20 ` [RFC PATH 1/2] dt-bindings: gpio: add starfive,jh7100-gpio bindings Drew Fustini
2021-07-01  0:20   ` Drew Fustini
2021-07-01  8:34   ` Geert Uytterhoeven
2021-07-01  8:34     ` [RFC PATH 1/2] dt-bindings: gpio: add starfive, jh7100-gpio bindings Geert Uytterhoeven
2021-07-02 20:56     ` [RFC PATH 1/2] dt-bindings: gpio: add starfive,jh7100-gpio bindings Drew Fustini
2021-07-02 20:56       ` Drew Fustini
2021-07-02 21:03       ` Geert Uytterhoeven
2021-07-02 21:03         ` [RFC PATH 1/2] dt-bindings: gpio: add starfive, jh7100-gpio bindings Geert Uytterhoeven
2021-07-03  6:46         ` [RFC PATH 1/2] dt-bindings: gpio: add starfive,jh7100-gpio bindings Drew Fustini
2021-07-03  6:46           ` Drew Fustini
2021-07-03  8:49           ` Geert Uytterhoeven
2021-07-03  8:49             ` [RFC PATH 1/2] dt-bindings: gpio: add starfive, jh7100-gpio bindings Geert Uytterhoeven
2021-07-01  0:20 ` [RFC PATH 2/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver Drew Fustini
2021-07-01  0:20   ` Drew Fustini
2021-07-01  2:25   ` Bin Meng
2021-07-01  2:25     ` Bin Meng
2021-07-01 20:44     ` Drew Fustini
2021-07-01 20:44       ` Drew Fustini
2021-07-01  6:39   ` Michael Walle
2021-07-01  6:39     ` Michael Walle
2021-07-01 20:33     ` Drew Fustini
2021-07-01 20:33       ` Drew Fustini
2021-07-02 14:59       ` Michael Walle
2021-07-02 14:59         ` Michael Walle
2021-07-02 21:00     ` Drew Fustini
2021-07-02 21:00       ` Drew Fustini
2021-07-23 21:04     ` Linus Walleij
2021-07-23 21:04       ` Linus Walleij
2021-07-26  7:11       ` Drew Fustini
2021-07-26  7:11         ` Drew Fustini
2021-07-26  7:21         ` Michael Walle
2021-07-26  7:21           ` Michael Walle
2021-07-27  5:28           ` Drew Fustini
2021-07-27  5:28             ` Drew Fustini
2021-07-28  9:49             ` Michael Walle
2021-07-28  9:49               ` Michael Walle
2021-07-28 10:59               ` Emil Renner Berthing
2021-07-28 10:59                 ` Emil Renner Berthing
2021-07-28 11:19                 ` Michael Walle
2021-07-28 11:19                   ` Michael Walle
2021-07-28 11:21                   ` Emil Renner Berthing
2021-07-28 11:21                     ` Emil Renner Berthing
2021-07-01 18:25   ` kernel test robot [this message]
2021-07-02 16:03   ` Andy Shevchenko
2021-07-02 16:03     ` Andy Shevchenko
2021-07-02 21:06     ` Drew Fustini
2021-07-02 21:06       ` Drew Fustini
2021-07-05 13:29       ` Michael Walle
2021-07-05 13:29         ` Michael Walle
2021-07-05 14:33         ` Matti Vaittinen
2021-07-05 14:33           ` Matti Vaittinen
2021-07-15  1:49   ` Ley Foon Tan
2021-07-15  1:49     ` Ley Foon Tan

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=202107020254.3VMksmkt-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.