lkml.org 
[lkml]   [2010]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/5] uml: Fix warning due to missing task_struct declaration
    Date
    We can't pull in linux/sched.h, so just declare the struct.

    Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
    ---
    arch/um/sys-i386/asm/elf.h | 2 ++
    arch/um/sys-x86_64/asm/elf.h | 2 ++
    2 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/arch/um/sys-i386/asm/elf.h b/arch/um/sys-i386/asm/elf.h
    index e64cd41..a979a22 100644
    --- a/arch/um/sys-i386/asm/elf.h
    +++ b/arch/um/sys-i386/asm/elf.h
    @@ -75,6 +75,8 @@ typedef struct user_i387_struct elf_fpregset_t;
    pr_reg[16] = PT_REGS_SS(regs); \
    } while (0);

    +struct task_struct;
    +
    extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu);

    #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu)
    diff --git a/arch/um/sys-x86_64/asm/elf.h b/arch/um/sys-x86_64/asm/elf.h
    index 49655c8..d760967 100644
    --- a/arch/um/sys-x86_64/asm/elf.h
    +++ b/arch/um/sys-x86_64/asm/elf.h
    @@ -95,6 +95,8 @@ typedef struct user_i387_struct elf_fpregset_t;
    (pr_reg)[25] = 0; \
    (pr_reg)[26] = 0;

    +struct task_struct;
    +
    extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu);

    #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu)
    --
    1.6.0.2


    \
     
     \ /
      Last update: 2010-04-19 23:57    [W:0.019 / U:0.784 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site