gnewsense-dev
[Top][All Lists]
Advanced

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

[Gnewsense-dev] [loongson-support 02/27] fix-warning: incompatible argum


From: wuzhangjin
Subject: [Gnewsense-dev] [loongson-support 02/27] fix-warning: incompatible argument type of virt_to_phys
Date: Thu, 21 May 2009 05:24:06 +0800

From: Wu Zhangjin <address@hidden>

mm/page_alloc.c:1760: warning: passing argument 1 of ‘virt_to_phys’
makes pointer from integer without a cast

mm/page_alloc.c:1760
        ...
        unsigned long addr;
        ...
        split_page(virt_to_page(addr), order);

arch/mips/include/asm/page.h

        #define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys(kaddr)))
        #define virt_addr_valid(kaddr)  pfn_valid(PFN_DOWN(virt_to_phys(kaddr)))

arch/mips/include/asm/io.h
        static inline unsigned long virt_to_phys(volatile const void *address)

Signed-off-by: Wu Zhangjin <address@hidden>

-- 
1.6.2.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]