devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>,
	Ramona Gradinariu <ramona.gradinariu@analog.com>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Jun Yan <jerrysteve1101@gmail.com>,
	Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Matti Vaittinen <mazziesaccount@gmail.com>,
	Mehdi Djait <mehdi.djait.k@gmail.com>,
	Mario Limonciello <mario.limonciello@amd.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 2/3] iio: accel: add ADXL380 driver
Date: Fri, 21 Jun 2024 10:43:09 +0800	[thread overview]
Message-ID: <202406210921.VoM5ac1P-lkp@intel.com> (raw)
In-Reply-To: <20240618105150.38141-2-antoniu.miclaus@analog.com>

Hi Antoniu,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.10-rc4 next-20240620]
[cannot apply to jic23-iio/togreg]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Antoniu-Miclaus/iio-accel-add-ADXL380-driver/20240618-194141
base:   linus/master
patch link:    https://lore.kernel.org/r/20240618105150.38141-2-antoniu.miclaus%40analog.com
patch subject: [PATCH 2/3] iio: accel: add ADXL380 driver
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240621/202406210921.VoM5ac1P-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240621/202406210921.VoM5ac1P-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406210921.VoM5ac1P-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/iio/accel/adxl380.c:1764:9: error: call to undeclared function 'irq_get_irq_data'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1764 |         desc = irq_get_irq_data(st->irq);
         |                ^
   drivers/iio/accel/adxl380.c:1764:9: note: did you mean 'irq_set_irq_wake'?
   include/linux/interrupt.h:485:12: note: 'irq_set_irq_wake' declared here
     485 | extern int irq_set_irq_wake(unsigned int irq, unsigned int on);
         |            ^
>> drivers/iio/accel/adxl380.c:1764:7: error: incompatible integer to pointer conversion assigning to 'struct irq_data *' from 'int' [-Wint-conversion]
    1764 |         desc = irq_get_irq_data(st->irq);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/accel/adxl380.c:1768:13: error: call to undeclared function 'irqd_get_trigger_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1768 |         irq_type = irqd_get_trigger_type(desc);
         |                    ^
>> drivers/iio/accel/adxl380.c:1769:18: error: use of undeclared identifier 'IRQ_TYPE_LEVEL_HIGH'
    1769 |         if (irq_type == IRQ_TYPE_LEVEL_HIGH) {
         |                         ^
>> drivers/iio/accel/adxl380.c:1772:25: error: use of undeclared identifier 'IRQ_TYPE_LEVEL_LOW'
    1772 |         } else if (irq_type == IRQ_TYPE_LEVEL_LOW) {
         |                                ^
   5 errors generated.


vim +/irq_get_irq_data +1764 drivers/iio/accel/adxl380.c

  1754	
  1755	static int _adxl380_config_irq(struct iio_dev *indio_dev)
  1756	{
  1757		int ret;
  1758		struct irq_data *desc;
  1759		unsigned long irq_flag;
  1760		u32 irq_type;
  1761		u8 polarity;
  1762		struct adxl380_state *st = iio_priv(indio_dev);
  1763	
> 1764		desc = irq_get_irq_data(st->irq);
  1765		if (!desc)
  1766			return dev_err_probe(st->dev, -EINVAL, "Could not find IRQ %d\n", st->irq);
  1767	
> 1768		irq_type = irqd_get_trigger_type(desc);
> 1769		if (irq_type == IRQ_TYPE_LEVEL_HIGH) {
  1770			polarity = 0;
  1771			irq_flag = IRQF_TRIGGER_HIGH;
> 1772		} else if (irq_type == IRQ_TYPE_LEVEL_LOW) {
  1773			polarity = 1;
  1774			irq_flag = IRQF_TRIGGER_LOW;
  1775		} else {
  1776			return dev_err_probe(st->dev, -EINVAL, "Invalid interrupt type 0x%x specified\n",
  1777				irq_type);
  1778		}
  1779	
  1780		ret = regmap_update_bits(st->regmap, ADXL380_INT0,
  1781					 ADXL380_INT0_POL_MSK,
  1782					 FIELD_PREP(ADXL380_INT0_POL_MSK, polarity));
  1783		if (ret)
  1784			return ret;
  1785	
  1786		return devm_request_threaded_irq(st->dev, st->irq, NULL,
  1787						 adxl380_irq_handler,
  1788						 IRQF_ONESHOT | irq_flag,
  1789						 indio_dev->name, indio_dev);
  1790	}
  1791	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-06-21  2:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18 10:50 [PATCH 1/3] dt-bindings: iio: accel: add ADXL380 Antoniu Miclaus
2024-06-18 10:50 ` [PATCH 2/3] iio: accel: add ADXL380 driver Antoniu Miclaus
2024-06-21  2:11   ` kernel test robot
2024-06-21  2:43   ` kernel test robot [this message]
2024-06-18 10:50 ` [PATCH 3/3] docs: iio: add documentation for adxl380 driver Antoniu Miclaus
2024-06-18 14:12   ` kernel test robot
2024-06-19  9:25     ` Miclaus, Antoniu

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=202406210921.VoM5ac1P-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=antoniu.miclaus@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=jerrysteve1101@gmail.com \
    --cc=jic23@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mario.limonciello@amd.com \
    --cc=matti.vaittinen@fi.rohmeurope.com \
    --cc=mazziesaccount@gmail.com \
    --cc=mehdi.djait.k@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ramona.gradinariu@analog.com \
    --cc=robh@kernel.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 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).