[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080413074225.GF20332@elte.hu>
Date: Sun, 13 Apr 2008 09:42:25 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Jacek Luczak <difrost.kernel@...il.com>
Cc: ijc@...lion.org.uk, tglx@...utronix.de,
LKML <linux-kernel@...r.kernel.org>,
Sam Ravnborg <sam@...nborg.org>
Subject: Re: *_pagetable_setup_[start,done] crap ?
* Jacek Luczak <difrost.kernel@...il.com> wrote:
> Ohh... and prototypes are wrong:
> diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h
> index 6cbc520..2167879 100644
> --- a/include/asm-x86/pgtable_32.h
> +++ b/include/asm-x86/pgtable_32.h
> @@ -204,8 +204,8 @@ do { \
> */
> #define update_mmu_cache(vma, address, pte) do { } while (0)
>
> -void native_pagetable_setup_start(pgd_t *base);
> -void native_pagetable_setup_done(pgd_t *base);
> +extern void native_pagetable_setup_start(pgd_t *base) __init;
> +extern void native_pagetable_setup_done(pgd_t *base) __init;
while generally it's nice to add 'extern' to prototypes, it's not an
outright bug to not have it. Also, __init is a must-have in the
definition only - it should not be added to the prototype.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists