From: kbuild test robot <lkp@intel.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: kbuild-all@01.org, Ralf Baechle <ralf@linux-mips.org>,
Paul Burton <paul.burton@imgtec.com>,
linux-kernel@vger.kernel.org, linux-mips@linux-mips.org,
james.hogan@imgtec.com,
Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Subject: Re: [PATCH v2] MIPS: fix duplicate define
Date: Thu, 10 Nov 2016 20:23:58 +0800 [thread overview]
Message-ID: <201611102022.W1caG4gN%fengguang.wu@intel.com> (raw)
In-Reply-To: <1478724294-15736-1-git-send-email-sudipm.mukherjee@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4209 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 15252 bytes --]
next prev parent reply other threads:[~2016-11-10 12:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 20:44 Sudip Mukherjee
2016-11-10 12:23 ` kbuild test robot [this message]
2016-11-10 12:37 ` Sudip Mukherjee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201611102022.W1caG4gN%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=james.hogan@imgtec.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=paul.burton@imgtec.com \
--cc=ralf@linux-mips.org \
--cc=sudipm.mukherjee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®