Re: [2.6 patch] xen: fiddle_vdso() must be __init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adrian Bunk wrote:
> This patch fixes the following section mismatch:
>
> <--  snip  -->
>
> ...
> WARNING: vmlinux.o(.text+0x2589): Section mismatch: reference to .init.data:vsyscall_int80_start (between 'fiddle_vdso' and 'xen_setup_features')
>   

Jan Beulich just posted a patch to do this, which I acked.

    J

> ...
>
> <--  snip  -->
>
> Signed-off-by: Adrian Bunk <[email protected]>
>
> ---
> bd7d683674d639a57c73b316972a28df43690a17 
> diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
> index f84e772..5e24f67 100644
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -59,7 +59,7 @@ static void xen_idle(void)
>  /*
>   * Set the bit indicating "nosegneg" library variants should be used.
>   */
> -static void fiddle_vdso(void)
> +static void __init fiddle_vdso(void)
>  {
>  	extern u32 VDSO_NOTE_MASK; /* See ../kernel/vsyscall-note.S.  */
>  	extern char vsyscall_int80_start;
>
>   

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux