designated initializer patches for include_asm-i386
From: Art Haas <[email protected]>
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
include/asm-i386/thread_info.h renamed from include/asm-i386/thread_info.h.orig +6 -6
@@ -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)
include/asm-i386/xor.h renamed from include/asm-i386/xor.h.orig +15 -15
@@ -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. */
Signature · 2 lines
Don't blame me: the Monkey is driving File: Art Haas <[email protected]>: [PATCH] designated initializer patches for include_asm-i386