lkml.org 
[lkml]   [2008]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1 of 7] x86: convert pgalloc_64.h from macros to inlines
From
Date
On Sat, 2008-02-02 at 01:05 -0800, Jeremy Fitzhardinge wrote:
>
> -#define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte))
> -
> -#define __pmd_free_tlb(tlb,x) tlb_remove_page((tlb),virt_to_page(x))
> -#define __pud_free_tlb(tlb,x) tlb_remove_page((tlb),virt_to_page(x))
> +extern void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte);
> +extern void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd);
> +extern void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud);

Small question: the extern isn't necessary in headers, is it preferred
in linux anyway?

Harvey



\
 
 \ /
  Last update: 2008-02-02 10:17    [W:0.149 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site