public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [stericsson:sensors 5/5] drivers/iio/magnetometer/ak8974.c:502:2-8: preceding lock on line 498 (fwd)
@ 2016-07-12 10:39 Julia Lawall
  2016-07-12 13:57 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2016-07-12 10:39 UTC (permalink / raw)
  To: linux-arm-kernel

Looks suspicious, please check.

julia

---------- Forwarded message ----------
Date: Tue, 12 Jul 2016 18:13:49 +0800
From: kbuild test robot <fengguang.wu@intel.com>
To: kbuild at 01.org
Cc: Julia Lawall <julia.lawall@lip6.fr>
Subject: [stericsson:sensors 5/5] drivers/iio/magnetometer/ak8974.c:502:2-8:
    preceding lock on line 498

CC: kbuild-all at 01.org
CC: linux-arm-kernel at lists.infradead.org
CC: Linus Walleij <linus.walleij@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git sensors
head:   90fbcae458710a6e8e16e9b2a9a54e27bc73ec82
commit: 90fbcae458710a6e8e16e9b2a9a54e27bc73ec82 [5/5] iio: magn: add a driver for AK8974
:::::: branch date: 2 hours ago
:::::: commit date: 2 hours ago

>> drivers/iio/magnetometer/ak8974.c:502:2-8: preceding lock on line 498
   drivers/iio/magnetometer/ak8974.c:467:3-9: preceding lock on line 463

git remote add stericsson https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git
git remote update stericsson
git checkout 90fbcae458710a6e8e16e9b2a9a54e27bc73ec82
vim +502 drivers/iio/magnetometer/ak8974.c

90fbcae4 Linus Walleij 2016-06-21  492  {
90fbcae4 Linus Walleij 2016-06-21  493  	struct ak8974 *ak8974 = iio_priv(indio_dev);
90fbcae4 Linus Walleij 2016-06-21  494  	int ret;
90fbcae4 Linus Walleij 2016-06-21  495  	s16 hw_values[8]; /* Three axes + 64bit padding */
90fbcae4 Linus Walleij 2016-06-21  496
90fbcae4 Linus Walleij 2016-06-21  497  	pm_runtime_get_sync(&ak8974->i2c->dev);
90fbcae4 Linus Walleij 2016-06-21 @498  	mutex_lock(&ak8974->lock);
90fbcae4 Linus Walleij 2016-06-21  499  	ret = ak8974_trigmeas(ak8974);
90fbcae4 Linus Walleij 2016-06-21  500  	if (ret) {
90fbcae4 Linus Walleij 2016-06-21  501  		dev_err(&ak8974->i2c->dev, "error triggering measure\n");
90fbcae4 Linus Walleij 2016-06-21 @502  		return;
90fbcae4 Linus Walleij 2016-06-21  503  	}
90fbcae4 Linus Walleij 2016-06-21  504  	ret = ak8974_getresult(ak8974, hw_values);
90fbcae4 Linus Walleij 2016-06-21  505  	if (ret) {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [stericsson:sensors 5/5] drivers/iio/magnetometer/ak8974.c:502:2-8: preceding lock on line 498 (fwd)
  2016-07-12 10:39 [stericsson:sensors 5/5] drivers/iio/magnetometer/ak8974.c:502:2-8: preceding lock on line 498 (fwd) Julia Lawall
@ 2016-07-12 13:57 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2016-07-12 13:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 12, 2016 at 12:39 PM, Julia Lawall <julia.lawall@lip6.fr> wrote:

> Looks suspicious, please check.
>
> julia

Thanks Julia, very good hint. The locking was a mess and it was
all my fault :(

I've fixed it up now.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-12 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 10:39 [stericsson:sensors 5/5] drivers/iio/magnetometer/ak8974.c:502:2-8: preceding lock on line 498 (fwd) Julia Lawall
2016-07-12 13:57 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox