d78ea206d2
- 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)
16 lines
463 B
Diff
16 lines
463 B
Diff
--- mdadm-3.0-devel2/super-intel.c.undef 2009-02-13 15:09:40.000000000 -0500
|
|
+++ mdadm-3.0-devel2/super-intel.c 2009-02-13 15:09:58.000000000 -0500
|
|
@@ -271,8 +271,10 @@ static __u32 __gen_imsm_checksum(struct
|
|
__u32 *p = (__u32 *) mpb;
|
|
__u32 sum = 0;
|
|
|
|
- while (end--)
|
|
- sum += __le32_to_cpu(*p++);
|
|
+ while (end--) {
|
|
+ sum += __le32_to_cpu(*p);
|
|
+ p++;
|
|
+ }
|
|
|
|
return sum - __le32_to_cpu(mpb->check_sum);
|
|
}
|