lkml.org 
[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: *_pagetable_setup_[start,done] crap ?
Ingo Molnar pisze:
> * Jacek Luczak <difrost.kernel@gmail.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.
>

Sounds reasonably. Sorry for calling something crap. When I slept well it looks fine and clear for me.

-Jacek


\
 
 \ /
  Last update: 2008-04-13 11:37    [W:0.051 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site