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>] [day] [month] [year] [list]
Date:   Sat, 3 Jul 2021 19:16:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiaxun Yang <jiaxun.yang@...goat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit
 declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4b820e167bf6f410ace479d8df5b15a574000e75
commit: b13812ddea615b6507beef24f76540c0c1143c5c MIPS: Loongson2ef: Disable Loongson MMI instructions
date:   9 months ago
config: mips-randconfig-r015-20210703 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b13812ddea615b6507beef24f76540c0c1143c5c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout b13812ddea615b6507beef24f76540c0c1143c5c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from drivers/watchdog/mtx-1_wdt.c:44:
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsys':
>> arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
     603 |  void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
         |                                    ^~~~~~~~~
         |                                    CKSEG1ADDR
   arch/mips/include/asm/mach-au1x00/au1000.h:603:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     603 |  void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
         |                    ^
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_wrsys':
   arch/mips/include/asm/mach-au1x00/au1000.h:610:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     610 |  void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
         |                    ^
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsmem':
   arch/mips/include/asm/mach-au1x00/au1000.h:619:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     619 |  void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_STATIC_MEM_PHYS_ADDR);
         |                    ^
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_wrsmem':
   arch/mips/include/asm/mach-au1x00/au1000.h:626:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     626 |  void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_STATIC_MEM_PHYS_ADDR);
         |                    ^
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_uart_enable':
   arch/mips/include/asm/mach-au1x00/au1000.h:726:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     726 |  void __iomem *addr = (void __iomem *)KSEG1ADDR(uart_phys);
         |                       ^
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_uart_disable':
   arch/mips/include/asm/mach-au1x00/au1000.h:741:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     741 |  void __iomem *addr = (void __iomem *)KSEG1ADDR(uart_phys);
         |                       ^
   arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_uart_putchar':
   arch/mips/include/asm/mach-au1x00/au1000.h:749:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     749 |  void __iomem *base = (void __iomem *)KSEG1ADDR(uart_phys);
         |                       ^
   cc1: some warnings being treated as errors
--
   In file included from drivers/watchdog/ar7_wdt.c:29:
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_is_titan':
>> arch/mips/include/asm/mach-ar7/ar7.h:111:24: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
     111 |  return (readl((void *)KSEG1ADDR(AR7_REGS_GPIO + 0x24)) & 0xffff) ==
         |                        ^~~~~~~~~
         |                        CKSEG1ADDR
   arch/mips/include/asm/mach-ar7/ar7.h:111:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     111 |  return (readl((void *)KSEG1ADDR(AR7_REGS_GPIO + 0x24)) & 0xffff) ==
         |                ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_chip_id':
   arch/mips/include/asm/mach-ar7/ar7.h:117:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     117 |  return ar7_is_titan() ? AR7_CHIP_TITAN : (readl((void *)
         |                                                  ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'titan_chip_id':
   arch/mips/include/asm/mach-ar7/ar7.h:123:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     123 |  unsigned int val = readl((void *)KSEG1ADDR(AR7_REGS_GPIO +
         |                           ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_chip_rev':
   arch/mips/include/asm/mach-ar7/ar7.h:130:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     130 |  return (readl((void *)KSEG1ADDR(AR7_REGS_GPIO + (ar7_is_titan() ? 0x24 :
         |                ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_device_enable':
   arch/mips/include/asm/mach-ar7/ar7.h:157:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     157 |   (void *)KSEG1ADDR(AR7_REGS_RESET + AR7_RESET_PERIPHERAL);
         |   ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_device_disable':
   arch/mips/include/asm/mach-ar7/ar7.h:165:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     165 |   (void *)KSEG1ADDR(AR7_REGS_RESET + AR7_RESET_PERIPHERAL);
         |   ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_device_on':
   arch/mips/include/asm/mach-ar7/ar7.h:178:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     178 |  void *power_reg = (void *)KSEG1ADDR(AR7_REGS_POWER);
         |                    ^
   arch/mips/include/asm/mach-ar7/ar7.h: In function 'ar7_device_off':
   arch/mips/include/asm/mach-ar7/ar7.h:185:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     185 |  void *power_reg = (void *)KSEG1ADDR(AR7_REGS_POWER);
         |                    ^
   cc1: some warnings being treated as errors


vim +603 arch/mips/include/asm/mach-au1x00/au1000.h

^1da177e4c3f41 include/asm-mips/mach-au1x00/au1000.h      Linus Torvalds 2005-04-16  599  
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  600  /* helpers to access the SYS_* registers */
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  601  static inline unsigned long alchemy_rdsys(int regofs)
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  602  {
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23 @603  	void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  604  
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  605  	return __raw_readl(b + regofs);
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  606  }
1d09de7dc76ef9 arch/mips/include/asm/mach-au1x00/au1000.h Manuel Lauss   2014-07-23  607  

:::::: The code at line 603 was first introduced by commit
:::::: 1d09de7dc76ef96a9a2c7c0244e20f12d68e6ef8 MIPS: Alchemy: introduce helpers to access SYS register block.

:::::: TO: Manuel Lauss <manuel.lauss@...il.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (28626 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ