[obsolete] drivers-iio-magnetometer-yamaha-yas530c-hack-around-build-error.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: drivers/iio/magnetometer/yamaha-yas530.c: hack around build error
has been removed from the -mm tree.  Its filename was
     drivers-iio-magnetometer-yamaha-yas530c-hack-around-build-error.patch

This patch was dropped because it is obsolete

------------------------------------------------------
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: drivers/iio/magnetometer/yamaha-yas530.c: hack around build error
Date: Fri Nov 29 10:26:17 PM PST 2024

a temporary thing to avoid breaking people's builds

Cc: David Laight <David.Laight@xxxxxxxxxx>
Cc: Jakob Hauser <jahau@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/iio/magnetometer/yamaha-yas530.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/drivers/iio/magnetometer/yamaha-yas530.c~drivers-iio-magnetometer-yamaha-yas530c-hack-around-build-error
+++ a/drivers/iio/magnetometer/yamaha-yas530.c
@@ -411,7 +411,10 @@ static int yas537_measure(struct yas5xx
 		h[1] = (c->k * (c->a4 * s[0] + c->a5 * s[1] + c->a6 * s[2])) / BIT(13);
 		h[2] = (c->k * (c->a7 * s[0] + c->a8 * s[1] + c->a9 * s[2])) / BIT(13);
 		for (i = 0; i < 3; i++) {
-			clamp_val(h[i], -BIT(13), BIT(13) - 1);
+			if (h[i] < (s32)-BIT(13))
+				h[i] = (s32)-BIT(13);
+			if (h[i] > (s32)BIT(13) - 1)
+				h[i] = (s32)BIT(13) - 1;
 			xy1y2[i] = h[i] + BIT(13);
 		}
 	}
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

fs-proc-vmcorec-fix-warning-when-config_mmu=n.patch
mm-mempolicy-fix-migrate_to_node-assuming-there-is-at-least-one-vma-in-a-mm-fix.patch
mm-swap_cgroup-allocate-swap_cgroup-map-using-vcalloc-fix.patch
mm-page_alloc-add-some-detailed-comments-in-can_steal_fallback-fix.patch





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux