linux-mips
[Top] [All Lists]

[loongson-support 02/27] fix-warning: incompatible argument type of virt

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [loongson-support 02/27] fix-warning: incompatible argument type of virt_to_phys
From: wuzhangjin@gmail.com
Date: Thu, 21 May 2009 05:24:06 +0800
Cc: Wu Zhangjin <wuzhangjin@gmail.com>, Yan hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>, Zhang Le <r0bertz@gentoo.org>, Zhang Fuxin <zhangfx@lemote.com>, Arnaud Patard <apatard@mandriva.com>, loongson-dev@googlegroups.com, gnewsense-dev@nongnu.org, Nicholas Mc Guire <hofrat@hofr.at>, Liu Junliang <liujl@lemote.com>, Erwan Lerale <erwan@thiscow.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=lO09IZJjrHO0/FL/A7Uegqh32PVrPjE9cBgMgu51C7A=; b=GIvChwWm93G3fgrKBFDT1IM27doDeQcvg3uBSUbOE7e5QA+Udm5qy6At7FDWGUXZbC fX449mvZeejrBVR0A3PSfBxJLX33yyViJ17EWRLbu4q6c6IF3HCLsxO1ceXMA885nlTM 2pMdG72SjLrITFlSG7U60S0xOAPr+yi3v8h4k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; b=gOBjxzJapbF7SEW6pPHtZ1c8liiXjo3iMkP+4meZGskITDIa22Vf3cTx+YSYZzcRx7 QnMqnCoyrbWazOyrox9TcV6YXnXqTKkKcbrnKD5xBCwqRc76q3Mj/Vg6snOwFGjM0cyY /7iFjt6GVot9Dvy8G5+SrrkoXw8x2sh6Fs1D4=
In-reply-to: <cover.1242851584.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1242851584.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzhangjin@gmail.com>

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 <wuzhangjin@gmail.com>

-- 
1.6.2.1


<Prev in Thread] Current Thread [Next in Thread>