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]
Message-ID: <202105210700.p0x2UwSi-lkp@intel.com>
Date:   Fri, 21 May 2021 07:19:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ilya Lipnitskiy <ilya.lipnitskiy@...il.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: arch/mips/include/asm/mips-boards/launch.h:8:8: error: redefinition
 of 'cpulaunch'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f01da525b3de8e59b2656b55d40c60462098651f
commit: 6decd1aad15f56b169217789630a0098b496de0e MIPS: add support for buggy MT7621S core detection
date:   5 weeks ago
config: mips-randconfig-r016-20210521 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bf9ef3efaa99c02e7bfc4c57207301b8de39a278)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6decd1aad15f56b169217789630a0098b496de0e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6decd1aad15f56b169217789630a0098b496de0e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 arch/mips/mti-malta/malta-amon.c:16:
>> arch/mips/include/asm/mips-boards/launch.h:8:8: error: redefinition of 'cpulaunch'
   struct cpulaunch {
          ^
   arch/mips/include/asm/mips-cps.h:13:10: note: 'arch/mips/include/asm/mips-boards/launch.h' included multiple times, additional include site here
   #include <asm/mips-boards/launch.h>
            ^
   arch/mips/mti-malta/malta-amon.c:16:10: note: 'arch/mips/include/asm/mips-boards/launch.h' included multiple times, additional include site here
   #include <asm/mips-boards/launch.h>
            ^
   arch/mips/include/asm/mips-boards/launch.h:8:8: note: unguarded header; consider using #ifdef guards or #pragma once
   struct cpulaunch {
          ^
   arch/mips/mti-malta/malta-amon.c:19:5: warning: no previous prototype for function 'amon_cpu_avail' [-Wmissing-prototypes]
   int amon_cpu_avail(int cpu)
       ^
   arch/mips/mti-malta/malta-amon.c:19:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int amon_cpu_avail(int cpu)
   ^
   static 
   arch/mips/mti-malta/malta-amon.c:41:5: warning: no previous prototype for function 'amon_cpu_start' [-Wmissing-prototypes]
   int amon_cpu_start(int cpu,
       ^
   arch/mips/mti-malta/malta-amon.c:41:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int amon_cpu_start(int cpu,
   ^
   static 
   2 warnings and 1 error generated.


vim +/cpulaunch +8 arch/mips/include/asm/mips-boards/launch.h

39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28   7  
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  @8  struct cpulaunch {
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28   9      unsigned long	pc;
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  10      unsigned long	gp;
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  11      unsigned long	sp;
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  12      unsigned long	a0;
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  13      unsigned long	_pad[3]; /* pad to cache line size to avoid thrashing */
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  14      unsigned long	flags;
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  15  };
39b8d5254246ac5 include/asm-mips/mips-boards/launch.h Ralf Baechle 2008-04-28  16  

:::::: The code at line 8 was first introduced by commit
:::::: 39b8d5254246ac56342b72f812255c8f7a74dca9 [MIPS] Add support for MIPS CMP platform.

:::::: TO: Ralf Baechle <ralf@...ux-mips.org>
:::::: 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" (40934 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ