[PATCH v2 0/2] iio: imu: bno055: make bno055_sysfs_attr const

David Lechner posted 2 patches 5 months, 1 week ago
drivers/iio/imu/bno055/bno055.c | 56 +++++++++++++++++++++++------------------
1 file changed, 32 insertions(+), 24 deletions(-)
[PATCH v2 0/2] iio: imu: bno055: make bno055_sysfs_attr const
Posted by David Lechner 5 months, 1 week ago
v1 of this series was already applied, but we got a cryptic error
message from the 0-day bot [1] that that made me look at the code again.

I found a potential bug that could be what triggered the build failure,
but it is hard to say. I couldn't easily reproduce the issue locally.
So I've included a new patch to fix this issue along with a v2 of the
original patch so that we can see what the 0-day bot says about it.

I also noticed a mistake in the original patch where I missed one more
place to add a const qualifier, so that is fixed as well.

[1]: https://lore.kernel.org/oe-kbuild-all/202507100510.rGt1YOOx-lkp@intel.com/

---
Changes in v2:
- New patch to fix potential issue found by 0-day
- Add another const qualifier that was missed in v1
- Link to v1: https://lore.kernel.org/r/20250628-iio-const-data-19-v1-1-a17e7c16b122@baylibre.com

---
David Lechner (2):
      iio: imu: bno055: fix OOB access of hw_xlate array
      iio: imu: bno055: make bno055_sysfs_attr const

 drivers/iio/imu/bno055/bno055.c | 56 +++++++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 24 deletions(-)
---
base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
change-id: 20250628-iio-const-data-19-298c08d506f5

Best regards,
-- 
David Lechner <dlechner@baylibre.com>
Re: [PATCH v2 0/2] iio: imu: bno055: make bno055_sysfs_attr const
Posted by Jonathan Cameron 5 months ago
On Wed, 09 Jul 2025 21:19:59 -0500
David Lechner <dlechner@baylibre.com> wrote:

> v1 of this series was already applied, but we got a cryptic error
> message from the 0-day bot [1] that that made me look at the code again.
> 
> I found a potential bug that could be what triggered the build failure,
> but it is hard to say. I couldn't easily reproduce the issue locally.
> So I've included a new patch to fix this issue along with a v2 of the
> original patch so that we can see what the 0-day bot says about it.
> 
> I also noticed a mistake in the original patch where I missed one more
> place to add a const qualifier, so that is fixed as well.
> 
> [1]: https://lore.kernel.org/oe-kbuild-all/202507100510.rGt1YOOx-lkp@intel.com/
Dropped v1 and picked both of these up via the togreg branch and marked
the 1st for stable.

> 
> ---
> Changes in v2:
> - New patch to fix potential issue found by 0-day
> - Add another const qualifier that was missed in v1
> - Link to v1: https://lore.kernel.org/r/20250628-iio-const-data-19-v1-1-a17e7c16b122@baylibre.com
> 
> ---
> David Lechner (2):
>       iio: imu: bno055: fix OOB access of hw_xlate array
>       iio: imu: bno055: make bno055_sysfs_attr const
> 
>  drivers/iio/imu/bno055/bno055.c | 56 +++++++++++++++++++++++------------------
>  1 file changed, 32 insertions(+), 24 deletions(-)
> ---
> base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
> change-id: 20250628-iio-const-data-19-298c08d506f5
> 
> Best regards,