linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch] mdadm: fix compile warnings on ppc64
@ 2009-04-06 14:59 Doug Ledford
  2009-04-08  7:26 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Ledford @ 2009-04-06 14:59 UTC (permalink / raw)
  To: LinuxRaid RAID; +Cc: Neil Brown


[-- Attachment #1.1: Type: text/plain, Size: 84 bytes --]

Simple patch to silence some compile warnings that only show up on  
64bit arches.


[-- Attachment #1.2: mdadm-3.0-cast.patch --]
[-- Type: application/octet-stream, Size: 934 bytes --]

--- mdadm-3.0-devel3/super-ddf.c.orig	2009-03-10 01:39:41.000000000 -0400
+++ mdadm-3.0-devel3/super-ddf.c	2009-03-17 15:22:41.000000000 -0400
@@ -1062,9 +1062,9 @@
 			       map_num(ddf_sec_level, vc->srl) ?: "-unknown-");
 		}
 		printf("  Device Size[%d] : %llu\n", n,
-		       __be64_to_cpu(vc->blocks)/2);
+		       (unsigned long long)__be64_to_cpu(vc->blocks)/2);
 		printf("   Array Size[%d] : %llu\n", n,
-		       __be64_to_cpu(vc->array_blocks)/2);
+		       (unsigned long long)__be64_to_cpu(vc->array_blocks)/2);
 	}
 }
 
@@ -1111,7 +1111,8 @@
 		//printf("\n");
 		printf("       %3d    %08x  ", i,
 		       __be32_to_cpu(pd->refnum));
-		printf("%lluK ",  __be64_to_cpu(pd->config_size)>>1);
+		printf("%lluK ", 
+		       (unsigned long long)__be64_to_cpu(pd->config_size)>>1);
 		for (dl = sb->dlist; dl ; dl = dl->next) {
 			if (dl->disk.refnum == pd->refnum) {
 				char *dv = map_dev(dl->major, dl->minor, 0);

[-- Attachment #1.3: Type: text/plain, Size: 171 bytes --]



--

Doug Ledford <dledford@redhat.com>

GPG KeyID: CFBFF194
http://people.redhat.com/dledford

InfiniBand Specific RPMS
http://people.redhat.com/dledford/Infiniband





[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] mdadm: fix compile warnings on ppc64
  2009-04-06 14:59 [Patch] mdadm: fix compile warnings on ppc64 Doug Ledford
@ 2009-04-08  7:26 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2009-04-08  7:26 UTC (permalink / raw)
  To: Doug Ledford; +Cc: LinuxRaid RAID

On Monday April 6, dledford@redhat.com wrote:
> Simple patch to silence some compile warnings that only show up on  
> 64bit arches.
> 

Thanks. Applied.

NeilBrown

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-08  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 14:59 [Patch] mdadm: fix compile warnings on ppc64 Doug Ledford
2009-04-08  7:26 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).