[TRIVIAL] designated initializer patches for include_asm-i386

From: Rusty Trivial Russell (rusty@rustcorp.com.au)
Date: Wed Aug 28 2002 - 02:59:12 EST


From: Art Haas <ahaas@neosoft.com>

  Here are a couple of patches for files in include/asm-i386. Patches
  are against 2.5.31.
  
  Art Haas
  --
  They that can give up essential liberty to obtain a little temporary
  safety deserve neither liberty nor safety.
   -- Benjamin Franklin, Historical Review of Pennsylvania, 1759

--- trivial-2.5.32/include/asm-i386/thread_info.h.orig 2002-08-28 17:53:12.000000000 +1000
+++ trivial-2.5.32/include/asm-i386/thread_info.h 2002-08-28 17:53:12.000000000 +1000
@@ -57,12 +57,12 @@
 #ifndef __ASSEMBLY__
 #define INIT_THREAD_INFO(tsk) \
 { \
- task: &tsk, \
- exec_domain: &default_exec_domain, \
- flags: 0, \
- cpu: 0, \
- preempt_count: 1, \
- addr_limit: KERNEL_DS, \
+ .task = &tsk, \
+ .exec_domain = &default_exec_domain, \
+ .flags = 0, \
+ .cpu = 0, \
+ .preempt_count = 1, \
+ .addr_limit = KERNEL_DS, \
 }
 
 #define init_thread_info (init_thread_union.thread_info)
--- trivial-2.5.32/include/asm-i386/xor.h.orig 2002-08-28 17:53:12.000000000 +1000
+++ trivial-2.5.32/include/asm-i386/xor.h 2002-08-28 17:53:12.000000000 +1000
@@ -519,19 +519,19 @@
 }
 
 static struct xor_block_template xor_block_pII_mmx = {
- name: "pII_mmx",
- do_2: xor_pII_mmx_2,
- do_3: xor_pII_mmx_3,
- do_4: xor_pII_mmx_4,
- do_5: xor_pII_mmx_5,
+ .name = "pII_mmx",
+ .do_2 = xor_pII_mmx_2,
+ .do_3 = xor_pII_mmx_3,
+ .do_4 = xor_pII_mmx_4,
+ .do_5 = xor_pII_mmx_5,
 };
 
 static struct xor_block_template xor_block_p5_mmx = {
- name: "p5_mmx",
- do_2: xor_p5_mmx_2,
- do_3: xor_p5_mmx_3,
- do_4: xor_p5_mmx_4,
- do_5: xor_p5_mmx_5,
+ .name = "p5_mmx",
+ .do_2 = xor_p5_mmx_2,
+ .do_3 = xor_p5_mmx_3,
+ .do_4 = xor_p5_mmx_4,
+ .do_5 = xor_p5_mmx_5,
 };
 
 #undef FPU_SAVE
@@ -848,11 +848,11 @@
 }
 
 static struct xor_block_template xor_block_pIII_sse = {
- name: "pIII_sse",
- do_2: xor_sse_2,
- do_3: xor_sse_3,
- do_4: xor_sse_4,
- do_5: xor_sse_5,
+ .name = "pIII_sse",
+ .do_2 = xor_sse_2,
+ .do_3 = xor_sse_3,
+ .do_4 = xor_sse_4,
+ .do_5 = xor_sse_5,
 };
 
 /* Also try the generic routines. */

-- 
  Don't blame me: the Monkey is driving
  File: Art Haas <ahaas@neosoft.com>: [PATCH] designated initializer patches for include_asm-i386
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:22 EST