2003-06-17 00:30:34

by Art Haas

[permalink] [raw]
Subject: [PATCH] C99 initializers for asm-arm/include/xor.h

Hi.

These patches convert the xor.h files to use C99 initializers. The
patches are against the current BK. Both patches are untested as I don't
have the hardware.

Art Haas

===== include/asm-arm/xor.h 1.4 vs edited =====
--- 1.4/include/asm-arm/xor.h Tue Feb 5 01:41:12 2002
+++ edited/include/asm-arm/xor.h Mon Jun 16 18:19:17 2003
@@ -125,11 +125,11 @@
}

static struct xor_block_template xor_block_arm4regs = {
- name: "arm4regs",
- do_2: xor_arm4regs_2,
- do_3: xor_arm4regs_3,
- do_4: xor_arm4regs_4,
- do_5: xor_arm4regs_5,
+ .name = "arm4regs",
+ .do_2 = xor_arm4regs_2,
+ .do_3 = xor_arm4regs_3,
+ .do_4 = xor_arm4regs_4,
+ .do_5 = xor_arm4regs_5,
};

#undef XOR_TRY_TEMPLATES
===== include/asm-arm26/xor.h 1.1 vs edited =====
--- 1.1/include/asm-arm26/xor.h Wed Jun 4 06:14:11 2003
+++ edited/include/asm-arm26/xor.h Mon Jun 16 18:19:50 2003
@@ -125,11 +125,11 @@
}

static struct xor_block_template xor_block_arm4regs = {
- name: "arm4regs",
- do_2: xor_arm4regs_2,
- do_3: xor_arm4regs_3,
- do_4: xor_arm4regs_4,
- do_5: xor_arm4regs_5,
+ .name = "arm4regs",
+ .do_2 = xor_arm4regs_2,
+ .do_3 = xor_arm4regs_3,
+ .do_4 = xor_arm4regs_4,
+ .do_5 = xor_arm4regs_5,
};

#undef XOR_TRY_TEMPLATES
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822