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: <201709290108.77R9ysIb%fengguang.wu@intel.com>
Date:   Fri, 29 Sep 2017 01:26:12 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Kees Cook <keescook@...omium.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        tipbuild@...or.com, Thomas Gleixner <tglx@...utronix.de>
Subject: [tip:timers/urgent 1/1] arch/um/kernel/time.c:101:20: error:
 conflicting types for 'timer_setup'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/urgent
head:   686fef928bba6be13cabe639f154af7d72b63120
commit: 686fef928bba6be13cabe639f154af7d72b63120 [1/1] timer: Prepare to change timer callback argument type
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 686fef928bba6be13cabe639f154af7d72b63120
        # save the attached .config to linux build tree
        make ARCH=um SUBARCH=x86_64

All errors (new ones prefixed by >>):

>> arch/um/kernel/time.c:101:20: error: conflicting types for 'timer_setup'
    static void __init timer_setup(void)
                       ^~~~~~~~~~~
   In file included from include/linux/clocksource.h:16:0,
                    from include/linux/clockchips.h:13,
                    from arch/um/kernel/time.c:9:
   include/linux/timer.h:174:20: note: previous definition of 'timer_setup' was here
    static inline void timer_setup(struct timer_list *timer,
                       ^~~~~~~~~~~

vim +/timer_setup +101 arch/um/kernel/time.c

791a644a8 arch/um/kernel/time.c      Jeff Dike    2007-10-16  100  
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02 @101  static void __init timer_setup(void)
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  102  {
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  103  	int err;
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  104  
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  105  	err = request_irq(TIMER_IRQ, um_timer, IRQF_TIMER, "hr timer", NULL);
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  106  	if (err != 0)
537ae946e arch/um/kernel/time.c      Jeff Dike    2006-09-25  107  		printk(KERN_ERR "register_timer : request_irq failed - "
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  108  		       "errno = %d\n", -err);
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  109  
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  110  	err = os_timer_create(NULL);
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  111  	if (err != 0) {
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  112  		printk(KERN_ERR "creation of timer failed - errno = %d\n", -err);
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  113  		return;
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  114  	}
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  115  
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  116  	err = clocksource_register_hz(&timer_clocksource, NSEC_PER_SEC/TIMER_MULTIPLIER);
791a644a8 arch/um/kernel/time.c      Jeff Dike    2007-10-16  117  	if (err) {
60d687e7d arch/um/kernel/time.c      John Stultz  2010-04-26  118  		printk(KERN_ERR "clocksource_register_hz returned %d\n", err);
791a644a8 arch/um/kernel/time.c      Jeff Dike    2007-10-16  119  		return;
791a644a8 arch/um/kernel/time.c      Jeff Dike    2007-10-16  120  	}
2eb5f31bc arch/um/kernel/time.c      Anton Ivanov 2015-11-02  121  	clockevents_register_device(&timer_clockevent);
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  122  }
aceb34346 arch/um/kernel/time_kern.c Jeff Dike    2006-07-10  123  

:::::: The code at line 101 was first introduced by commit
:::::: 2eb5f31bc4ea24bb293e82934cfa1cce9573304b um: Switch clocksource to hrtimers

:::::: TO: Anton Ivanov <aivanov@...cade.com>
:::::: CC: Richard Weinberger <richard@....at>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ