Return-Path: Received: from mout.kundenserver.de ([212.227.126.135]:54545 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbdEIKFU (ORCPT ); Tue, 9 May 2017 06:05:20 -0400 From: Arnd Bergmann To: Ben Hutchings Cc: stable@vger.kernel.org, Zubair Lutfullah Kakakhel , linux-mips@linux-mips.org, Ralf Baechle , Arnd Bergmann Subject: [PATCH 3.16-stable 11/14] MIPS: Fix a warning for virt_to_page Date: Tue, 9 May 2017 12:04:59 +0200 Message-Id: <20170509100502.1358298-12-arnd@arndb.de> In-Reply-To: <20170509100502.1358298-1-arnd@arndb.de> References: <20170509100502.1358298-1-arnd@arndb.de> Sender: stable-owner@vger.kernel.org List-ID: From: Zubair Lutfullah Kakakhel commit 4d5b3bdc0ecb0cf5b1e1598eeaaac4b5cb33868d upstream. Compiling mm/highmem.c gives a warning: passing argument 1 of 'virt_to_phys' makes pointer from integer without a cast Fixed by casting to void* Signed-off-by: Zubair Lutfullah Kakakhel Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7337/ Signed-off-by: Ralf Baechle Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 5699ec3a71af..fd0347da36df 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -223,7 +223,8 @@ static inline int pfn_valid(unsigned long pfn) #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((void *) \ + (kaddr)))) extern int __virt_addr_valid(const volatile void *kaddr); #define virt_addr_valid(kaddr) \ -- 2.9.0