Skip to contentSkip to conversation

Fix ppc compile error

PATCH In review Doug Ledford 2 participants 2 messages Apr 6, 2010 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix ppc compile error

We use -Wall -Werror on our build machines, and this causes our build to fail on super-intel.c due to a missing cast on ppc64 machines. This fixes the build.

Signature · 6 lines
Doug Ledford <[email protected]>
              GPG KeyID: CFBFF194
	      http://people.redhat.com/dledford

Infiniband specific RPMs available at
	      http://people.redhat.com/dledford/Infiniband

commit 995511f26e8d661d32d1c3fc42a08960989d1e6d

Author: Doug Ledford <[email protected]>
Date:   Tue Apr 6 14:04:30 2010 -0400

powerpc compile fix

super-intel.c +1 -1
index a196ca3..999b970 100644
@@ -697,7 +697,7 @@ static void print_imsm_dev(struct imsm_dev *dev, char *uuid, int disk_idx)
 		printf(" <-- %s", map_state_str[map->map_state]);
 		printf("\n     Checkpoint : %u (%llu)",
 		       __le32_to_cpu(dev->vol.curr_migr_unit),
-		       blocks_per_migr_unit(dev));
+		       (unsigned long long)blocks_per_migr_unit(dev));
 	}
 	printf("\n");
 	printf("    Dirty State : %s\n", dev->vol.dirty ? "dirty" : "clean");
#1 lore raw
Quoted 4 lines · On Tue, 06 Apr 2010 14:11:46 -0400 Doug Ledford <[email protected]> wrote:

We use -Wall -Werror on our build machines, and this causes our build to fail on super-intel.c due to a missing cast on ppc64 machines. This fixes the build.

Thanks. Applied.

NeilBrown