lkml.org 
[lkml]   [2002]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[7/7] hugetlb: make private functions static
    From
    Date
    This patch makes various private structures and procedures static.

    hugetlbpage.c | 8 ++++----
    1 files changed, 4 insertions(+), 4 deletions(-)


    diff -urpN hugetlbfs-2.5.46-5/arch/i386/mm/hugetlbpage.c hugetlbfs-2.5.46-6/arch/i386/mm/hugetlbpage.c
    --- hugetlbfs-2.5.46-5/arch/i386/mm/hugetlbpage.c 2002-11-05 13:59:05.000000000 -0800
    +++ hugetlbfs-2.5.46-6/arch/i386/mm/hugetlbpage.c 2002-11-05 14:02:05.000000000 -0800
    @@ -18,16 +18,16 @@
    #include <asm/tlb.h>
    #include <asm/tlbflush.h>

    -long htlbpagemem = 0;
    +static long htlbpagemem;
    int htlbpage_max;
    -long htlbzone_pages;
    +static long htlbzone_pages;

    struct vm_operations_struct hugetlb_vm_ops;
    static LIST_HEAD(htlbpage_freelist);
    static spinlock_t htlbpage_lock = SPIN_LOCK_UNLOCKED;

    #define MAX_ID 32
    -struct htlbpagekey {
    +static struct htlbpagekey {
    struct inode *in;
    int key;
    } htlbpagek[MAX_ID];
    @@ -109,7 +109,7 @@ static int anon_get_hugetlb_page(struct
    return page ? 1 : -1;
    }

    -int make_hugetlb_pages_present(unsigned long addr, unsigned long end, int flags)
    +static int make_hugetlb_pages_present(unsigned long addr, unsigned long end, int flags)
    {
    int write;
    struct mm_struct *mm = current->mm;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:0.021 / U:0.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site