lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 9 Nov 2016 07:46:32 +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,
        Sudip Mukherjee <sudipm.mukherjee@...il.com>
Subject: Re: [PATCH] MIPS: fix duplicate define

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@...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" (19122 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ