public inbox for linux-rockchip@lists.infradead.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chris Morgan <macroalpha82@gmail.com>, linux-iio@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, andy@kernel.org,
	nuno.sa@analog.com, dlechner@baylibre.com, jic23@kernel.org,
	jean-baptiste.maneyrol@tdk.com,
	linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
	heiko@sntech.de, conor+dt@kernel.org, krzk+dt@kernel.org,
	robh@kernel.org, andriy.shevchenko@intel.com,
	Chris Morgan <macromorgan@hotmail.com>
Subject: Re: [PATCH V2 4/5] iio: imu: inv_icm42600: Add support for icm42607
Date: Sat, 21 Mar 2026 00:55:14 +0800	[thread overview]
Message-ID: <202603210032.xLBroWQu-lkp@intel.com> (raw)
In-Reply-To: <20260319182956.146976-5-macroalpha82@gmail.com>

Hi Chris,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rockchip/for-next]
[also build test WARNING on linus/master v7.0-rc4 next-20260320]
[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/Chris-Morgan/dt-bindings-iio-imu-add-icm42607/20260320-061927
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
patch link:    https://lore.kernel.org/r/20260319182956.146976-5-macroalpha82%40gmail.com
patch subject: [PATCH V2 4/5] iio: imu: inv_icm42600: Add support for icm42607
config: i386-randconfig-r134-20260320 (https://download.01.org/0day-ci/archive/20260321/202603210032.xLBroWQu-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260321/202603210032.xLBroWQu-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/202603210032.xLBroWQu-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/iio/imu/inv_icm42600/inv_icm42600_core.c: In function 'inv_icm42607_hw_suspend':
>> drivers/iio/imu/inv_icm42600/inv_icm42600_core.c:1150:13: warning: variable 'accel_conf' set but not used [-Wunused-but-set-variable]
    1150 |         int accel_conf;
         |             ^~~~~~~~~~
--
>> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:108:18: warning: 'inv_icm42607_accel_filter_values' defined but not used [-Wunused-const-variable=]
     108 | static const int inv_icm42607_accel_filter_values[] = {
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/accel_conf +1150 drivers/iio/imu/inv_icm42600/inv_icm42600_core.c

  1144	
  1145	static int inv_icm42607_hw_suspend(struct device *dev)
  1146	{
  1147		struct inv_icm42600_state *st = dev_get_drvdata(dev);
  1148		struct device *accel_dev;
  1149		bool wakeup;
> 1150		int accel_conf;
  1151		int ret = 0;
  1152	
  1153		guard(mutex)(&st->lock);
  1154	
  1155		st->suspended.gyro = st->conf.gyro.mode;
  1156		st->suspended.accel = st->conf.accel.mode;
  1157		st->suspended.temp = st->conf.temp_en;
  1158		if (pm_runtime_suspended(dev))
  1159			return 0;
  1160	
  1161		if (st->fifo.on) {
  1162			ret = regmap_write(st->map, INV_ICM42607_REG_FIFO_CONFIG1,
  1163					   INV_ICM42607_FIFO_CONFIG1_BYPASS);
  1164			if (ret)
  1165				return ret;
  1166		}
  1167	
  1168		/* keep chip on and wake-up capable if APEX and wakeup on */
  1169		accel_dev = &st->indio_accel->dev;
  1170		wakeup = st->apex.on && device_may_wakeup(accel_dev);
  1171		if (wakeup) {
  1172			/* keep accel on and setup irq for wakeup */
  1173			accel_conf = st->conf.accel.mode;
  1174			enable_irq_wake(st->irq);
  1175			disable_irq(st->irq);
  1176		} else {
  1177			/* disable APEX features and accel if wakeup disabled */
  1178			if (st->apex.wom.enable) {
  1179				ret = inv_icm42607_disable_wom(st);
  1180				if (ret)
  1181					return ret;
  1182			}
  1183			accel_conf = INV_ICM42600_SENSOR_MODE_OFF;
  1184		}
  1185	
  1186		ret = inv_icm42607_set_pwr_mgmt0(st, INV_ICM42600_SENSOR_MODE_OFF,
  1187						 INV_ICM42600_SENSOR_MODE_OFF, false,
  1188						 NULL);
  1189		if (ret)
  1190			return ret;
  1191	
  1192		if (!wakeup)
  1193			regulator_disable(st->vddio_supply);
  1194	
  1195		return 0;
  1196	}
  1197	

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

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

  parent reply	other threads:[~2026-03-20 16:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-19 18:29 [PATCH v2 0/5] Add Invensense ICM42607 Chris Morgan
2026-03-19 18:29 ` [PATCH V2 1/5] dt-bindings: iio: imu: add icm42607 Chris Morgan
2026-03-20 17:39   ` Conor Dooley
2026-03-19 18:29 ` [PATCH V2 2/5] iio: imu: inv_icm42600: Add support for using alternate registers Chris Morgan
2026-03-21 17:50   ` Jonathan Cameron
2026-03-19 18:29 ` [PATCH V2 3/5] iio: imu: inv_icm42600: Add registers for icm42607 Chris Morgan
2026-03-21 17:25   ` Jonathan Cameron
2026-03-19 18:29 ` [PATCH V2 4/5] iio: imu: inv_icm42600: Add support " Chris Morgan
2026-03-20 16:44   ` kernel test robot
2026-03-20 16:55   ` kernel test robot [this message]
2026-03-21 17:48   ` Jonathan Cameron
2026-03-19 18:29 ` [PATCH V2 5/5] arm64: dts: rockchip: Add icm42607p IMU for RG-DS Chris Morgan
2026-03-19 19:55 ` [PATCH v2 0/5] Add Invensense ICM42607 Jean-Baptiste Maneyrol
2026-03-19 21:31   ` Chris Morgan
     [not found]   ` <abxrQ7MUw4QXnYZG@wintermute.localhost.fail>
2026-03-24 15:25     ` Chris Morgan
2026-03-20 20:00 ` Andy Shevchenko

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=202603210032.xLBroWQu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=heiko@sntech.de \
    --cc=jean-baptiste.maneyrol@tdk.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=macroalpha82@gmail.com \
    --cc=macromorgan@hotmail.com \
    --cc=nuno.sa@analog.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --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