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

[lvm-devel] [patch 2/7] Suppress warning that the cast increases alignment on Sparc.



On archirectures that require alignment (such as Sparc) the kernel
emulates unaligned accesses in a trap handler anyway, so they don't
matter. A potential unaligned access could only degrade performance.

Signed-off-by: Mikulas Patocka <mpatocka redhat com>

---
 libdm/ioctl/libdm-iface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: LVM2.2.02.45/libdm/ioctl/libdm-iface.c
===================================================================
--- LVM2.2.02.45.orig/libdm/ioctl/libdm-iface.c	2009-05-19 22:18:15.000000000 +0200
+++ LVM2.2.02.45/libdm/ioctl/libdm-iface.c	2009-05-19 22:18:37.000000000 +0200
@@ -893,7 +893,7 @@ static int _unmarshal_status(struct dm_t
 	struct dm_target_spec *spec;
 
 	for (i = 0; i < dmi->target_count; i++) {
-		spec = (struct dm_target_spec *) outptr;
+		spec = (struct dm_target_spec *) (void *) outptr;
 		if (!dm_task_add_target(dmt, spec->sector_start,
 					spec->length,
 					spec->target_type,

-- 


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