devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Oleksij Rempel <o.rempel@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>,
	William Breathitt Gray <vilhelm.gray@gmail.com>
Cc: kbuild-all@lists.01.org, Oleksij Rempel <o.rempel@pengutronix.de>,
	Ahmad Fatoum <a.fatoum@pengutronix.de>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	David Jander <david@protonic.nl>,
	Robin van der Gracht <robin@protonic.nl>,
	linux-iio@vger.kernel.org
Subject: Re: [PATCH v4 2/2] counter: add IRQ or GPIO based pulse counter
Date: Wed, 27 Jan 2021 16:52:12 +0800	[thread overview]
Message-ID: <202101271659.COc0ZqA7-lkp@intel.com> (raw)
In-Reply-To: <20210126131239.8335-3-o.rempel@pengutronix.de>

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

Hi Oleksij,

I love your patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v5.11-rc5 next-20210125]
[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/Oleksij-Rempel/add-support-for-GPIO-based-counter/20210127-085034
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/39e2c0023dba4e0e0f2bb9bfa1caeadb40df6356
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Oleksij-Rempel/add-support-for-GPIO-based-counter/20210127-085034
        git checkout 39e2c0023dba4e0e0f2bb9bfa1caeadb40df6356
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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/counter/pulse-cnt.c: In function 'pulse_cnt_probe':
>> drivers/counter/pulse-cnt.c:205:2: error: implicit declaration of function 'irq_set_status_flags' [-Werror=implicit-function-declaration]
     205 |  irq_set_status_flags(priv->irq, IRQ_NOAUTOEN);
         |  ^~~~~~~~~~~~~~~~~~~~
>> drivers/counter/pulse-cnt.c:205:34: error: 'IRQ_NOAUTOEN' undeclared (first use in this function)
     205 |  irq_set_status_flags(priv->irq, IRQ_NOAUTOEN);
         |                                  ^~~~~~~~~~~~
   drivers/counter/pulse-cnt.c:205:34: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +/irq_set_status_flags +205 drivers/counter/pulse-cnt.c

   168	
   169	static int pulse_cnt_probe(struct platform_device *pdev)
   170	{
   171		struct device *dev = &pdev->dev;
   172		struct pulse_cnt_priv *priv;
   173		int ret;
   174	
   175		priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
   176		if (!priv)
   177			return -ENOMEM;
   178	
   179		priv->irq = platform_get_irq(pdev,  0);
   180		if (priv->irq < 0) {
   181			dev_err(dev, "failed to map GPIO to IRQ: %d\n", priv->irq);
   182			return priv->irq;
   183		}
   184	
   185		priv->gpio = devm_gpiod_get_optional(dev, NULL, GPIOD_IN);
   186		if (IS_ERR(priv->gpio))
   187			return dev_err_probe(dev, PTR_ERR(priv->gpio), "failed to get gpio\n");
   188	
   189		priv->ops.action_get = pulse_cnt_action_get;
   190		priv->ops.count_read = pulse_cnt_read;
   191		priv->ops.count_write = pulse_cnt_write;
   192		priv->ops.function_get = pulse_cnt_function_get;
   193		if (priv->gpio)
   194			priv->ops.signal_read  = pulse_cnt_signal_read;
   195	
   196		priv->counter.name = dev_name(dev);
   197		priv->counter.parent = dev;
   198		priv->counter.ops = &priv->ops;
   199		priv->counter.counts = pulse_cnts;
   200		priv->counter.num_counts = ARRAY_SIZE(pulse_cnts);
   201		priv->counter.signals = pulse_cnt_signals;
   202		priv->counter.num_signals = ARRAY_SIZE(pulse_cnt_signals);
   203		priv->counter.priv = priv;
   204	
 > 205		irq_set_status_flags(priv->irq, IRQ_NOAUTOEN);
   206		ret = devm_request_irq(dev, priv->irq, pulse_cnt_isr,
   207				       IRQF_TRIGGER_RISING | IRQF_NO_THREAD,
   208				       PULSE_CNT_NAME, priv);
   209		if (ret)
   210			return ret;
   211	
   212		platform_set_drvdata(pdev, priv);
   213	
   214		return devm_counter_register(dev, &priv->counter);
   215	}
   216	

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

  reply	other threads:[~2021-01-27  8:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-26 13:12 [PATCH v4 0/2] add support for GPIO based counter Oleksij Rempel
2021-01-26 13:12 ` [PATCH v4 1/2] dt-bindings: counter: add pulse-counter binding Oleksij Rempel
2021-01-28  8:17   ` Linus Walleij
2021-01-28 13:39     ` Oleksij Rempel
2021-02-05 23:34       ` Rob Herring
2021-01-26 13:12 ` [PATCH v4 2/2] counter: add IRQ or GPIO based pulse counter Oleksij Rempel
2021-01-27  8:52   ` kernel test robot [this message]
2021-01-28  8:24   ` Linus Walleij
2021-01-28 13:58     ` Oleksij Rempel
2021-01-26 13:18 ` [PATCH v4 0/2] add support for GPIO based counter Marc Kleine-Budde
2021-01-27  6:44   ` Oleksij Rempel
2021-01-27  7:10     ` Marc Kleine-Budde

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=202101271659.COc0ZqA7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=david@protonic.nl \
    --cc=devicetree@vger.kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    --cc=robin@protonic.nl \
    --cc=vilhelm.gray@gmail.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).