Re: x86/mshyperv: Remove unneeded includes from mshyperv.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux