lkml.org 
[lkml]   [2016]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@gmail.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2016-11-10 13:25    [W:0.129 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site