* include/linux/iio/iio.h:781 class___priv__iio_dev_mode_lock_try_direct_constructor() warn: passing zero to 'ERR_PTR'
@ 2026-07-11 12:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-11 12:38 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Radu Sabau <radu.sabau@analog.com>
CC: Jonathan Cameron <jic23@kernel.org>
CC: David Lechner <dlechner@baylibre.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dd3210c47e8d3ac6b4e9141fc68acc03b38c0ba3
commit: 40850443aa1239f71fc65b870a0f0ecd54e42c9d iio: adc: ad4691: add initial driver for AD4691 family
date: 6 weeks ago
:::::: branch date: 10 hours ago
:::::: commit date: 6 weeks ago
config: x86_64-randconfig-161-20260708 (https://download.01.org/0day-ci/archive/20260711/202607111940.WTcT5zEX-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9185-gbcc58b9c
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
| Fixes: 40850443aa12 ("iio: adc: ad4691: add initial driver for AD4691 family")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202607111940.WTcT5zEX-lkp@intel.com/
smatch warnings:
include/linux/iio/iio.h:781 class___priv__iio_dev_mode_lock_try_direct_constructor() warn: passing zero to 'ERR_PTR'
vim +/ERR_PTR +781 include/linux/iio/iio.h
847ec80bbaa76a drivers/staging/iio/iio.h Jonathan Cameron 2009-08-18 772
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 773 /*
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 774 * These classes are not meant to be used directly by drivers (hence the
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 775 * __priv__ prefix). Instead, documented wrapper macros are provided below to
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 776 * enforce the use of ACQUIRE() or guard() semantics and avoid the problematic
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 777 * scoped guard variants.
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 778 */
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 779 DEFINE_GUARD(__priv__iio_dev_mode_lock, struct iio_dev *,
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 780 __iio_dev_mode_lock(_T), __iio_dev_mode_unlock(_T));
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 @781 DEFINE_GUARD_COND(__priv__iio_dev_mode_lock, _try_direct,
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 782 iio_device_claim_direct(_T));
7a38b75da1dc38 include/linux/iio/iio.h Kurt Borja 2026-01-20 783
:::::: The code at line 781 was first introduced by commit
:::::: 7a38b75da1dc38a8cd9563c41b87367b2475b975 iio: core: Add cleanup.h support for iio_device_claim_*()
:::::: TO: Kurt Borja <kuurtb@gmail.com>
:::::: CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-11 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-11 12:38 include/linux/iio/iio.h:781 class___priv__iio_dev_mode_lock_try_direct_constructor() warn: passing zero to 'ERR_PTR' kernel test robot
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.