Re: [PATCH v2] MIPS: fix duplicate define
From: Sudip Mukherjee
Date: Thu Nov 10 2016 - 07:38:01 EST
On Thu, Nov 10, 2016 at 08:23:58PM +0800, kbuild test robot wrote:
> Hi Sudip,
>
> [auto build test ERROR on linus/master]
> [also build test ERROR on v4.9-rc4 next-20161110]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
>
> url: https://github.com/0day-ci/linux/commits/Sudip-Mukherjee/MIPS-fix-duplicate-define/20161110-044738
> config: mips-ip27_defconfig (attached as .config)
> compiler: mips64-linux-gnuabi64-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # save the attached .config to linux build tree
> make.cross ARCH=mips
>
> All errors (new ones prefixed by >>):
>
> In file included from arch/mips/include/asm/page.h:194:0,
> from arch/mips/vdso/vdso.h:26,
> from arch/mips/vdso/gettimeofday.c:11:
> arch/mips/include/asm/io.h: In function 'phys_to_virt':
> >> arch/mips/include/asm/io.h:138:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> return (void *)(address + PAGE_OFFSET - PHYS_OFFSET);
> ^
> arch/mips/include/asm/io.h: In function 'isa_bus_to_virt':
> arch/mips/include/asm/io.h:151:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> return (void *)(address + PAGE_OFFSET);
> ^
> cc1: all warnings being treated as errors
I have seen this before submitting and it is not related to the patch I
submitted. My patch fixed one build failure, the build continued and it
again failed in some other error which needs to be fixed also. I will
have a look after this patch is accepted.
Thanks
Sudip