linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@01.org, LKML <linux-kernel@vger.kernel.org>,
	devel@linuxdriverproject.org,
	Vitaly Kuznetsov <vkuznets@redhat.com>,
	x86@kernel.org
Subject: Re: x86/mshyperv: Remove unneeded includes from mshyperv.h
Date: Sat, 24 Jun 2017 16:54:40 +0800	[thread overview]
Message-ID: <201706241613.OMHbNHjk%fengguang.wu@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1706231038460.2647@nanos>

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

Hi Thomas,

[auto build test ERROR on tip/auto-latest]
[also build test ERROR on v4.12-rc6 next-20170623]
[cannot apply to tip/x86/core]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-mshyperv-Remove-unneeded-includes-from-mshyperv-h/20170624-121055
config: i386-randconfig-b0-06241558 (attached as .config)
compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/hyperv/hv_init.c:23:0:
   arch/x86/include/asm/mshyperv.h: In function 'vmbus_signal_eom':
>> arch/x86/include/asm/mshyperv.h:115:6: error: implicit declaration of function 'cmpxchg' [-Werror=implicit-function-declaration]
     if (cmpxchg(&msg->header.message_type, old_msg_type,
         ^
   Cyclomatic Complexity 1 arch/x86/include/asm/mshyperv.h:generate_guest_id
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_read_msr
   Cyclomatic Complexity 1 arch/x86/hyperv/hv_init.c:read_hv_clock_msr
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_write_msr
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:wrmsrl
   Cyclomatic Complexity 1 include/linux/clocksource.h:clocksource_register_hz
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:virt_to_phys
   Cyclomatic Complexity 4 arch/x86/hyperv/hv_init.c:hyperv_init
   Cyclomatic Complexity 1 arch/x86/hyperv/hv_init.c:hyperv_cleanup
   Cyclomatic Complexity 4 arch/x86/hyperv/hv_init.c:hv_do_hypercall
   Cyclomatic Complexity 2 arch/x86/hyperv/hv_init.c:hyperv_report_panic
   Cyclomatic Complexity 2 arch/x86/hyperv/hv_init.c:hv_is_hypercall_page_setup
   cc1: some warnings being treated as errors
--
   In file included from arch/x86//hyperv/hv_init.c:23:0:
   arch/x86/include/asm/mshyperv.h: In function 'vmbus_signal_eom':
>> arch/x86/include/asm/mshyperv.h:115:6: error: implicit declaration of function 'cmpxchg' [-Werror=implicit-function-declaration]
     if (cmpxchg(&msg->header.message_type, old_msg_type,
         ^
   Cyclomatic Complexity 1 arch/x86/include/asm/mshyperv.h:generate_guest_id
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_read_msr
   Cyclomatic Complexity 1 arch/x86//hyperv/hv_init.c:read_hv_clock_msr
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_write_msr
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:wrmsrl
   Cyclomatic Complexity 1 include/linux/clocksource.h:clocksource_register_hz
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:virt_to_phys
   Cyclomatic Complexity 4 arch/x86//hyperv/hv_init.c:hyperv_init
   Cyclomatic Complexity 1 arch/x86//hyperv/hv_init.c:hyperv_cleanup
   Cyclomatic Complexity 4 arch/x86//hyperv/hv_init.c:hv_do_hypercall
   Cyclomatic Complexity 2 arch/x86//hyperv/hv_init.c:hyperv_report_panic
   Cyclomatic Complexity 2 arch/x86//hyperv/hv_init.c:hv_is_hypercall_page_setup
   cc1: some warnings being treated as errors

vim +/cmpxchg +115 arch/x86/include/asm/mshyperv.h

e810e48c K. Y. Srinivasan 2017-01-19  109  	 * In case we blindly write msg->header.message_type we're going
e810e48c K. Y. Srinivasan 2017-01-19  110  	 * to lose it. We can still lose a message of the same type but
e810e48c K. Y. Srinivasan 2017-01-19  111  	 * we count on the fact that there can only be one
e810e48c K. Y. Srinivasan 2017-01-19  112  	 * CHANNELMSG_UNLOAD_RESPONSE and we don't care about other messages
e810e48c K. Y. Srinivasan 2017-01-19  113  	 * on crash.
e810e48c K. Y. Srinivasan 2017-01-19  114  	 */
e810e48c K. Y. Srinivasan 2017-01-19 @115  	if (cmpxchg(&msg->header.message_type, old_msg_type,
e810e48c K. Y. Srinivasan 2017-01-19  116  		    HVMSG_NONE) != old_msg_type)
e810e48c K. Y. Srinivasan 2017-01-19  117  		return;
e810e48c K. Y. Srinivasan 2017-01-19  118  

:::::: The code at line 115 was first introduced by commit
:::::: e810e48c0c9a1a1ebb90cfe966bce6dc80ce08e7 Drivers: hv: vmbus: Move the code to signal end of message

:::::: TO: K. Y. Srinivasan <kys@microsoft.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
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: 28035 bytes --]

      parent reply	other threads:[~2017-06-24  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23  8:50 x86/mshyperv: Remove unneeded includes from mshyperv.h Thomas Gleixner
2017-06-23 10:00 ` Thomas Gleixner
2017-06-24  6:54 ` [tip:x86/urgent] x86/mshyperv: Remove excess #includes " tip-bot for Thomas Gleixner
2017-06-24  8:54 ` kbuild test robot [this message]

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=201706241613.OMHbNHjk%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=devel@linuxdriverproject.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=vkuznets@redhat.com \
    --cc=x86@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).