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: <201904150510.977CDVul%lkp@intel.com>
Date:   Mon, 15 Apr 2019 05:42:13 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.core/stacktrace 18/47] kernel//trace/trace_stack.c:24:17:
 error: static declaration of 'stack_trace_index' follows non-static
 declaration

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.core/stacktrace
head:   63c35ea6b829a0f98d307a8dec038095681ecd13
commit: 4a934c54305ab50cf2d4b0afb915feee0dbb487e [18/47] tracing: Cleanup stack trace code
config: i386-randconfig-x010-201915 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 4a934c54305ab50cf2d4b0afb915feee0dbb487e
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

>> kernel//trace/trace_stack.c:24:17: error: static declaration of 'stack_trace_index' follows non-static declaration
    static unsigned stack_trace_index[STACK_TRACE_ENTRIES];
                    ^~~~~~~~~~~~~~~~~
   In file included from kernel//trace/trace_stack.c:12:0:
   include/linux/ftrace.h:248:17: note: previous declaration of 'stack_trace_index' was here
    extern unsigned stack_trace_index[];
                    ^~~~~~~~~~~~~~~~~
>> kernel//trace/trace_stack.c:36:22: error: static declaration of 'stack_trace_max_size' follows non-static declaration
    static unsigned long stack_trace_max_size;
                         ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel//trace/trace_stack.c:12:0:
   include/linux/ftrace.h:250:22: note: previous declaration of 'stack_trace_max_size' was here
    extern unsigned long stack_trace_max_size;
                         ^~~~~~~~~~~~~~~~~~~~
>> kernel//trace/trace_stack.c:37:24: error: static declaration of 'stack_trace_max_lock' follows non-static declaration
    static arch_spinlock_t stack_trace_max_lock =
                           ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel//trace/trace_stack.c:12:0:
   include/linux/ftrace.h:251:24: note: previous declaration of 'stack_trace_max_lock' was here
    extern arch_spinlock_t stack_trace_max_lock;
                           ^~~~~~~~~~~~~~~~~~~~

vim +/stack_trace_index +24 kernel//trace/trace_stack.c

    22	
    23	static unsigned long stack_dump_trace[STACK_TRACE_ENTRIES];
  > 24	static unsigned stack_trace_index[STACK_TRACE_ENTRIES];
    25	
    26	/*
    27	 * Reserve one entry for the passed in ip. This will allow
    28	 * us to remove most or all of the stack size overhead
    29	 * added by the stack tracer itself.
    30	 */
    31	struct stack_trace stack_trace_max = {
    32		.max_entries		= STACK_TRACE_ENTRIES - 1,
    33		.entries		= &stack_dump_trace[0],
    34	};
    35	
  > 36	static unsigned long stack_trace_max_size;
  > 37	static arch_spinlock_t stack_trace_max_lock =
    38		(arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED;
    39	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ