The patch titled staging:iio:ring_sw: fix pointer arithmetic for 64bit arches by using phys_addr_t has been added to the -mm tree. Its filename is staging-iio-ring_sw-fix-pointer-arithmetic-for-64bit-arches-by-using-phys_addr_t.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: staging:iio:ring_sw: fix pointer arithmetic for 64bit arches by using phys_addr_t From: Jonathan Cameron <jic23@xxxxxxxxx> Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/staging/iio/ring_sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/staging/iio/ring_sw.c~staging-iio-ring_sw-fix-pointer-arithmetic-for-64bit-arches-by-using-phys_addr_t drivers/staging/iio/ring_sw.c --- a/drivers/staging/iio/ring_sw.c~staging-iio-ring_sw-fix-pointer-arithmetic-for-64bit-arches-by-using-phys_addr_t +++ a/drivers/staging/iio/ring_sw.c @@ -478,7 +478,7 @@ void iio_sw_trigger_bh_to_ring(struct wo /* Guaranteed to be aligned with 8 byte boundary */ if (st->indio_dev->scan_timestamp) - *(s64 *)(((u32)data + len + *(s64 *)(((phys_addr_t)data + len + sizeof(s64) - 1) & ~(sizeof(s64) - 1)) = st->last_timestamp; st->indio_dev->ring->access.store_to(st->indio_dev->ring, _ Patches currently in -mm which might be from jic23@xxxxxxxxx are linux-next.patch staging-iio-iio_sw_ring_helper_state-add-dummy-case-for-no-buffer-builds.patch staging-iio-lis3l02dq-add-a-thresh_timestamp-field-to-state-for-no-ring-case.patch staging-iio-adis16350-add-dummy-ring-functions-for-no-ring-build-case.patch staging-iio-ring_sw-add-select-of-triggers-to-avoid-build-issue.patch staging-iio-ring_sw-remove-unnecessary-function-stub.patch staging-iio-ring_sw-fix-pointer-arithmetic-for-64bit-arches-by-using-phys_addr_t.patch misc-rohm-bh1780gli-ambient-light-sensor-driver.patch drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec.patch drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-fix.patch drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update.patch add-abi-documentation-for-the-bmp085-digital-pressure-sensor.patch bmp085-add-interface-documentation-and-link-to-datasheet.patch hmc6352-add-driver-for-the-hmc6352-compass.patch hwmon-driver-for-smm665-six-channel-active-dc-output-controller-monitor.patch hwmon-smm665-driver-documentation.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html