rpms/mdadm/devel mdadm-3.0-cast.patch, NONE, 1.1 mdadm.spec, 1.59, 1.60

Doug Ledford dledford at fedoraproject.org
Fri Feb 13 20:56:22 UTC 2009


Author: dledford

Update of /cvs/extras/rpms/mdadm/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9180

Modified Files:
	mdadm.spec 
Added Files:
	mdadm-3.0-cast.patch 
Log Message:
* Thu Feb 12 2009 Doug Ledford <dledford at redhat.com> - 3.0-0.devel2.1
- Update to latest upstream devel release
- Use the udev rules file included with mdadm instead of our own
- Drop all the no longer relevant patches
- Fix a build error in mdopen.c
- Fix the udev rules path in Makefile
- Fix a compile issue with the __le32_to_cpu() macro usage (bad juju to
  to operations on the target of the macro as it could get executed
  multiple times, and gcc now throws an error on that)
- Add some casts to some print statements to keep gcc from complaining


mdadm-3.0-cast.patch:

--- NEW FILE mdadm-3.0-cast.patch ---
--- mdadm-3.0-devel2/super-ddf.c.typedef	2009-02-13 15:26:56.000000000 -0500
+++ mdadm-3.0-devel2/super-ddf.c	2009-02-13 15:28:17.000000000 -0500
@@ -1043,9 +1043,9 @@ static void examine_vd(int n, struct ddf
 			       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);
 	}
 }
 
@@ -1105,7 +1105,7 @@ static void examine_pds(struct ddf_super
 		       (state&32)? ", Unrecovered Read Errors": "",
 		       (state&64)? ", Missing" : "");
 		printf("   Avail Size[%d] : %llu K\n", i,
-		       __be64_to_cpu(pd->config_size)>>1);
+		       (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);


Index: mdadm.spec
===================================================================
RCS file: /cvs/extras/rpms/mdadm/devel/mdadm.spec,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- mdadm.spec	13 Feb 2009 20:15:04 -0000	1.59
+++ mdadm.spec	13 Feb 2009 20:55:51 -0000	1.60
@@ -8,6 +8,7 @@
 Patch2:      mdadm-3.0-warn.patch
 Patch3:      mdadm-2.5.2-static.patch
 Patch4:      mdadm-3.0-alias.patch
+Patch5:      mdadm-3.0-cast.patch
 URL:         http://www.kernel.org/pub/linux/utils/raid/mdadm/
 License:     GPLv2+
 Group:       System Environment/Base
@@ -30,6 +31,7 @@
 %patch2 -p1 -b .warn
 %patch3 -p1 -b .static
 %patch4 -p1 -b .alias
+%patch5 -p1 -b .cast
 
 %build
 make %{?_smp_mflags} CXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" SYSCONFDIR="%{_sysconfdir}" mdadm.static mdadm mdmon
@@ -87,6 +89,7 @@
 - Fix a compile issue with the __le32_to_cpu() macro usage (bad juju to
   to operations on the target of the macro as it could get executed
   multiple times, and gcc now throws an error on that)
+- Add some casts to some print statements to keep gcc from complaining
 
 * Fri Oct 24 2008 Doug Ledford <dledford at redhat.com> - 2.6.7.1-1
 - Updated to latest upstream stable release (#466803)




More information about the fedora-extras-commits mailing list