mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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,
	Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Subject: Re: [PATCH] MIPS: fix duplicate define
Date: Wed, 9 Nov 2016 07:46:32 +0800	[thread overview]
Message-ID: <201611090756.rtyiialH%fengguang.wu@intel.com> (raw)
In-Reply-To: <1478641415-6986-1-git-send-email-sudipm.mukherjee@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5703 bytes --]

Hi Sudip,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.9-rc4 next-20161108]
[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/20161109-054643
config: mips-jz4740 (attached as .config)
compiler: mips-linux-gnu-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 error/warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/mach-ip22/spaces.h:25:0,
                    from arch/mips/include/asm/addrspace.h:13,
                    from arch/mips/include/asm/barrier.h:11,
                    from arch/mips/include/asm/bitops.h:18,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/sched.h:17,
                    from arch/mips/kernel/asm-offsets.c:13:
   arch/mips/include/asm/page.h: In function '___pa':
>> arch/mips/include/asm/mach-generic/spaces.h:93:23: error: 'CAC_BASE' undeclared (first use in this function)
    #define PAGE_OFFSET  (CAC_BASE + PHYS_OFFSET)
                          ^
>> arch/mips/include/asm/page.h:190:13: note: in expansion of macro 'PAGE_OFFSET'
     return x - PAGE_OFFSET + PHYS_OFFSET;
                ^~~~~~~~~~~
   arch/mips/include/asm/mach-generic/spaces.h:93:23: note: each undeclared identifier is reported only once for each function it appears in
    #define PAGE_OFFSET  (CAC_BASE + PHYS_OFFSET)
                          ^
>> arch/mips/include/asm/page.h:190:13: note: in expansion of macro 'PAGE_OFFSET'
     return x - PAGE_OFFSET + PHYS_OFFSET;
                ^~~~~~~~~~~
   arch/mips/include/asm/io.h: In function 'phys_to_virt':
>> arch/mips/include/asm/mach-generic/spaces.h:93:23: error: 'CAC_BASE' undeclared (first use in this function)
    #define PAGE_OFFSET  (CAC_BASE + PHYS_OFFSET)
                          ^
>> arch/mips/include/asm/io.h:138:28: note: in expansion of macro 'PAGE_OFFSET'
     return (void *)(address + PAGE_OFFSET - PHYS_OFFSET);
                               ^~~~~~~~~~~
   arch/mips/include/asm/io.h: In function 'isa_virt_to_bus':
>> arch/mips/include/asm/mach-generic/spaces.h:93:23: error: 'CAC_BASE' undeclared (first use in this function)
    #define PAGE_OFFSET  (CAC_BASE + PHYS_OFFSET)
                          ^
   arch/mips/include/asm/io.h:146:34: note: in expansion of macro 'PAGE_OFFSET'
     return (unsigned long)address - PAGE_OFFSET;
                                     ^~~~~~~~~~~
   arch/mips/include/asm/io.h: In function 'isa_bus_to_virt':
>> arch/mips/include/asm/mach-generic/spaces.h:93:23: error: 'CAC_BASE' undeclared (first use in this function)
    #define PAGE_OFFSET  (CAC_BASE + PHYS_OFFSET)
                          ^
   arch/mips/include/asm/io.h:151:28: note: in expansion of macro 'PAGE_OFFSET'
     return (void *)(address + PAGE_OFFSET);
                               ^~~~~~~~~~~
   include/linux/mm.h: In function 'lowmem_page_address':
>> arch/mips/include/asm/mach-generic/spaces.h:93:23: error: 'CAC_BASE' undeclared (first use in this function)
    #define PAGE_OFFSET  (CAC_BASE + PHYS_OFFSET)
                          ^
   arch/mips/include/asm/page.h:193:49: note: in expansion of macro 'PAGE_OFFSET'
    #define __va(x)  ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
                                                    ^~~~~~~~~~~
>> include/linux/mm.h:76:25: note: in expansion of macro '__va'
    #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
                            ^~~~
>> include/linux/mm.h:1005:9: note: in expansion of macro 'page_to_virt'
     return page_to_virt(page);
            ^~~~~~~~~~~~
   make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/CAC_BASE +93 arch/mips/include/asm/mach-generic/spaces.h

875d43e7 include/asm-mips/mach-generic/spaces.h      Ralf Baechle   2005-09-03  87  #endif /* CONFIG_64BIT */
^1da177e include/asm-mips/mach-generic/spaces.h      Linus Torvalds 2005-04-16  88  
c4612c85 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04  89  /*
c4612c85 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04  90   * This handles the memory map.
c4612c85 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04  91   */
c4612c85 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04  92  #ifndef PAGE_OFFSET
db385015 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04 @93  #define PAGE_OFFSET		(CAC_BASE + PHYS_OFFSET)
c4612c85 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04  94  #endif
c4612c85 include/asm-mips/mach-generic/spaces.h      Franck Bui-Huu 2007-06-04  95  
565b60de arch/mips/include/asm/mach-generic/spaces.h Kevin Cernekee 2010-09-07  96  #ifndef FIXADDR_TOP

:::::: The code at line 93 was first introduced by commit
:::::: db38501511a7513ec4f0ae9922d847c135cf3c78 [MIPS] Make PAGE_OFFSET aware of 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: 19122 bytes --]

  reply	other threads:[~2016-11-08 23:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 21:43 Sudip Mukherjee
2016-11-08 23:46 ` kbuild test robot [this message]
2016-11-09  9:53 ` James Hogan

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=201611090756.rtyiialH%fengguang.wu@intel.com \
    --to=lkp@intel.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®