[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201611102022.W1caG4gN%fengguang.wu@intel.com>
Date: Thu, 10 Nov 2016 20:23:58 +0800
From: kbuild test robot <lkp@...el.com>
To: Sudip Mukherjee <sudipm.mukherjee@...il.com>
Cc: kbuild-all@...org, Ralf Baechle <ralf@...ux-mips.org>,
Paul Burton <paul.burton@...tec.com>,
linux-kernel@...r.kernel.org, linux-mips@...ux-mips.org,
james.hogan@...tec.com,
Sudip Mukherjee <sudipm.mukherjee@...il.com>
Subject: Re: [PATCH v2] MIPS: fix duplicate define
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
vim +138 arch/mips/include/asm/io.h
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 122 }
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 123
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 124 /*
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 125 * phys_to_virt - map physical address to virtual
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 126 * @address: address to remap
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 127 *
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 128 * The returned virtual address is a current CPU mapping for
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 129 * the memory address given. It is only valid to use this function on
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 130 * addresses that have a kernel mapping
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 131 *
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 132 * This function does not handle bus mappings for DMA transfers. In
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 133 * almost all conceivable cases a device driver should not be using
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 134 * this function
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 135 */
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 136 static inline void * phys_to_virt(unsigned long address)
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 137 {
6f284a2c include/asm-mips/io.h Franck Bui-Huu 2007-01-10 @138 return (void *)(address + PAGE_OFFSET - PHYS_OFFSET);
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 139 }
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 140
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 141 /*
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 142 * ISA I/O bus memory addresses are 1:1 with the physical address.
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 143 */
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 144 static inline unsigned long isa_virt_to_bus(volatile void * address)
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 145 {
^1da177e include/asm-mips/io.h Linus Torvalds 2005-04-16 146 return (unsigned long)address - PAGE_OFFSET;
:::::: The code at line 138 was first introduced by commit
:::::: 6f284a2ce7b8bc49cb8455b1763357897a899abb [MIPS] FLATMEM: introduce PHYS_OFFSET.
:::::: TO: Franck Bui-Huu <fbuihuu@...il.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (15252 bytes)
Powered by blists - more mailing lists