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:   Fri, 6 Aug 2021 04:03:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Paul E. McKenney" <paulmck@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [rcu:dev.2021.08.03a 41/61] kernel/cpu.c:144:6: error: redefinition
 of 'cpu_hp_stop_now'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.08.03a
head:   b7fafd4e7d0eb2a91d3b682d2618f7fad7e34b14
commit: 61b9eeb81d5f2548723d73ea60319a54ed277144 [41/61] EXP cpu: CPU-hotplug progress checks
config: ia64-randconfig-r034-20210804 (attached as .config)
compiler: ia64-linux-gcc (GCC) 10.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/paulmck/linux-rcu.git/commit/?id=61b9eeb81d5f2548723d73ea60319a54ed277144
        git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
        git fetch --no-tags rcu dev.2021.08.03a
        git checkout 61b9eeb81d5f2548723d73ea60319a54ed277144
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash

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/ia64/include/asm/pgtable.h:153,
                    from include/linux/pgtable.h:6,
                    from arch/ia64/include/asm/uaccess.h:40,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from kernel/cpu.c:7:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     127 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   kernel/cpu.c: At top level:
   kernel/cpu.c:135:6: error: redefinition of 'cpu_hp_start_now'
     135 | void cpu_hp_start_now(void)
         |      ^~~~~~~~~~~~~~~~
   In file included from kernel/cpu.c:17:
   include/linux/cpu.h:147:20: note: previous definition of 'cpu_hp_start_now' was here
     147 | static inline void cpu_hp_start_now(void) { }
         |                    ^~~~~~~~~~~~~~~~
>> kernel/cpu.c:144:6: error: redefinition of 'cpu_hp_stop_now'
     144 | void cpu_hp_stop_now(void)
         |      ^~~~~~~~~~~~~~~
   In file included from kernel/cpu.c:17:
   include/linux/cpu.h:148:20: note: previous definition of 'cpu_hp_stop_now' was here
     148 | static inline void cpu_hp_stop_now(void) { }
         |                    ^~~~~~~~~~~~~~~
   kernel/cpu.c:150:6: error: redefinition of 'cpu_hp_check_delay'
     150 | void cpu_hp_check_delay(const char *s, void *func)
         |      ^~~~~~~~~~~~~~~~~~
   In file included from kernel/cpu.c:17:
   include/linux/cpu.h:149:20: note: previous definition of 'cpu_hp_check_delay' was here
     149 | static inline void cpu_hp_check_delay(const char *s, void *func) { }
         |                    ^~~~~~~~~~~~~~~~~~


vim +/cpu_hp_stop_now +144 kernel/cpu.c

   134	
 > 135	void cpu_hp_start_now(void)
   136	{
   137		// if (jiffies < 9 * HZ)
   138		// 	return;
   139		// WARN_ON_ONCE(cpu_hp_start_time_valid);
   140		WRITE_ONCE(cpu_hp_start_time, ktime_get_mono_fast_ns());
   141		smp_store_release(&cpu_hp_start_time_valid, true);
   142	}
   143	
 > 144	void cpu_hp_stop_now(void)
   145	{
   146		// WARN_ON_ONCE(!cpu_hp_start_time_valid && jiffies > 10 * HZ);
   147		smp_store_release(&cpu_hp_start_time_valid, false);
   148	}
   149	

---
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" (32163 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ