* [PATCH] mips: Fix compilation warning
@ 2013-05-20 9:44 EUNBONG SONG
0 siblings, 0 replies; 2+ messages in thread
From: EUNBONG SONG @ 2013-05-20 9:44 UTC (permalink / raw)
To: ralf@linux-mips.org, david.daney@cavium.com
Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Fix the following compilation warning:
mm/page_alloc.c: In function 'free_reserved_area':
mm/page_alloc.c:5162: warning: passing argument 1 of 'virt_to_phys' makes pointer from integer without a cast
/home/ebsong/backup/linux_git/linux/arch/mips/include/asm/io.h:119: note: expected 'const volatile void *' but argument is
of type 'long unsigned int'
---
arch/mips/include/asm/page.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h
index ec1ca53..41640f1 100644
--- a/arch/mips/include/asm/page.h
+++ b/arch/mips/include/asm/page.h
@@ -197,7 +197,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#endif
-#define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys(kaddr)))
+#define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys((const volatile void *)(kaddr))))
extern int __virt_addr_valid(const volatile void *kaddr);
#define virt_addr_valid(kaddr) \
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] mips: Fix compilation warning
@ 2013-05-20 9:53 EUNBONG SONG
0 siblings, 0 replies; 2+ messages in thread
From: EUNBONG SONG @ 2013-05-20 9:53 UTC (permalink / raw)
To: david.daney@cavium.com, ralf@linux-mips.org
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org
Fix the following compilation warning:
mm/page_alloc.c: In function 'free_reserved_area':
mm/page_alloc.c:5162: warning: passing argument 1 of 'virt_to_phys' makes pointer from integer without a cast
Signed-off-by: Eunbong Song <eunb.song@samsung.com>
---
arch/mips/include/asm/page.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h
index ec1ca53..41640f1 100644
--- a/arch/mips/include/asm/page.h
+++ b/arch/mips/include/asm/page.h
@@ -197,7 +197,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#endif
-#define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys(kaddr)))
+#define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys((const volatile void *)(kaddr))))
extern int __virt_addr_valid(const volatile void *kaddr);
#define virt_addr_valid(kaddr) \
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-20 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20 9:53 [PATCH] mips: Fix compilation warning EUNBONG SONG
-- strict thread matches above, loose matches on Subject: below --
2013-05-20 9:44 EUNBONG SONG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox