Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755200AbcCaIhJ (ORCPT ); Thu, 31 Mar 2016 04:37:09 -0400 Received: from mga09.intel.com ([134.134.136.24]:41547 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752427AbcCaIhG (ORCPT ); Thu, 31 Mar 2016 04:37:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,421,1455004800"; d="scan'208";a="948634473" Date: Thu, 31 Mar 2016 16:39:38 +0800 From: kbuild test robot To: Paolo Bonzini Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, lkml@tlinx.org, Andrew Morton , Michal Marek , stable@vger.kernel.org Subject: Re: [PATCH] compiler-gcc: disable -ftracer for __noclone functions Message-ID: <201603311657.a9YmF6yj%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459410252-15531-1-git-send-email-pbonzini@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3309 Lines: 55 Hi Paolo, [auto build test WARNING on v4.6-rc1] [also build test WARNING on next-20160331] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Paolo-Bonzini/compiler-gcc-disable-ftracer-for-__noclone-functions/20160331-154556 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute >> arch/x86/kvm/vmx.c:8610:13: sparse: attribute '__optimize__': unknown attribute vim +/__optimize__ +8610 arch/x86/kvm/vmx.c d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8594 int i, nr_msrs; d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8595 struct perf_guest_switch_msr *msrs; d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8596 d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8597 msrs = perf_guest_get_msrs(&nr_msrs); d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8598 d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8599 if (!msrs) d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8600 return; d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8601 d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8602 for (i = 0; i < nr_msrs; i++) d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8603 if (msrs[i].host == msrs[i].guest) d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8604 clear_atomic_switch_msr(vmx, msrs[i].msr); d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8605 else d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8606 add_atomic_switch_msr(vmx, msrs[i].msr, msrs[i].guest, d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8607 msrs[i].host); d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8608 } d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov 2011-10-05 8609 a3b5ba49 arch/x86/kvm/vmx.c Lai Jiangshan 2011-02-11 @8610 static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu) 6aa8b732 drivers/kvm/vmx.c Avi Kivity 2006-12-10 8611 { a2fa3e9f drivers/kvm/vmx.c Gregory Haskins 2007-07-27 8612 struct vcpu_vmx *vmx = to_vmx(vcpu); d974baa3 arch/x86/kvm/vmx.c Andy Lutomirski 2014-10-08 8613 unsigned long debugctlmsr, cr4; 104f226b arch/x86/kvm/vmx.c Avi Kivity 2010-11-18 8614 104f226b arch/x86/kvm/vmx.c Avi Kivity 2010-11-18 8615 /* Record the guest's net vcpu time for enforced NMI injections. */ 104f226b arch/x86/kvm/vmx.c Avi Kivity 2010-11-18 8616 if (unlikely(!cpu_has_virtual_nmis() && vmx->soft_vnmi_blocked)) 104f226b arch/x86/kvm/vmx.c Avi Kivity 2010-11-18 8617 vmx->entry_time = ktime_get(); 104f226b arch/x86/kvm/vmx.c Avi Kivity 2010-11-18 8618 :::::: The code at line 8610 was first introduced by commit :::::: a3b5ba49a8c58d9a578e016523b047467a41e047 KVM: VMX: add the __noclone attribute to vmx_vcpu_run :::::: TO: Lai Jiangshan :::::: CC: Marcelo Tosatti --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation