mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	tipbuild@zytor.com, Thomas Gleixner <tglx@linutronix.de>
Subject: [tip:timers/urgent 1/1] arch/um/kernel/time.c:101:20: error: conflicting types for 'timer_setup'
Date: Fri, 29 Sep 2017 01:26:12 +0800	[thread overview]
Message-ID: <201709290108.77R9ysIb%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3677 bytes --]

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@brocade.com>
:::::: CC: Richard Weinberger <richard@nod.at>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7814 bytes --]

                 reply	other threads:[~2017-09-28 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201709290108.77R9ysIb%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tipbuild@zytor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®