From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFFD41DC1AF for ; Mon, 28 Oct 2024 13:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730123649; cv=none; b=dKmHGUwJHd4TXb3WvE9H7xdDLd6XpveYhao+YH4FLYDgpt9Sr5piAOwJmvi1Pp0+4xyK0O939tBg6uWQH3JCjUEkfo6DVg8VAPSwID4y9w5QfOCJeEZuUcKKPvkR0+1vVvM6nm94Z80BJVrt2GIbcsbn/IS236Qzl8+REijzs10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730123649; c=relaxed/simple; bh=642HSufGqeH3JRUpG6mlN2cqXCLkfmAOd/pQBvnQmSU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mtjlgo1wtpQybckDVRjq2hTJaBHrr8eIqXJuDPGijiwfFJlnCHDTohMH4WDsqNcnSxjFz4SS1WSakqxND+v/5rkzViFQ6vIYQuZZFDZED2MQuWHexnZENs0cnRWT555qvDmv1zT/Levo1RRM8+uGyGkVFOrBcc436ykbTFz5fsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Jo0rZcR3; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Jo0rZcR3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730123646; x=1761659646; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=642HSufGqeH3JRUpG6mlN2cqXCLkfmAOd/pQBvnQmSU=; b=Jo0rZcR3qtpxN2Q14QZwCy3viJvjPDDz8OenR4nbvDDdkeNF/2G0onQZ vCPD4bF/s25BbfRmWLLdID8jsp9vQPY3LtEgb/3D6UDi4drBusfcGQbhc vFnGAhkGWE4HE3dPPHS3arNFBDIRYFT499gPEPbNH8rLxF1+JlAM/hUjh PFgjwrFdq8GQbbfKuvaMRnlBPaxkkAiOnw7VZclpwPRws0dOEv5MPq2bS Tfset2xLaxx1VYoQxrazTz/+qJPrJ77niMfFFbgOk/E5uQinhY0WYyqno mGMlkEOvfrvtoqrzQG7Htb8+EOodtJDTozXRpefbRkFk/fnzEF8nYl/hv A==; X-CSE-ConnectionGUID: 4IEAWCjiTaSCAYhCUSi+vA== X-CSE-MsgGUID: 35D79SkURuSjjC/cGMUHOQ== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29493611" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29493611" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2024 06:54:06 -0700 X-CSE-ConnectionGUID: OPdAvB92SUqABctMPZF5nA== X-CSE-MsgGUID: DLJNeqzrQOuEYLulSCh8VQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,239,1725346800"; d="scan'208";a="81204208" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 28 Oct 2024 06:54:03 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t5QC0-000cUm-1z; Mon, 28 Oct 2024 13:54:00 +0000 Date: Mon, 28 Oct 2024 21:53:25 +0800 From: kernel test robot To: Nam Cao , Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Kees Cook , linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Nam Cao , Sean Christopherson Subject: Re: [PATCH 04/31] KVM: x86: Switch to use hrtimer_setup() Message-ID: <202410282113.l2iM0IOZ-lkp@intel.com> References: <8774212e6c10c550743219e00738492eb379227c.1729864823.git.namcao@linutronix.de> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8774212e6c10c550743219e00738492eb379227c.1729864823.git.namcao@linutronix.de> Hi Nam, kernel test robot noticed the following build errors: [auto build test ERROR on kvm/queue] [also build test ERROR on tip/sched/core perf-tools-next/perf-tools-next tip/perf/core perf-tools/perf-tools tip/timers/core axboe-block/for-next linus/master v6.12-rc5 next-20241028] [cannot apply to kvm/linux-next acme/perf/core] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Nam-Cao/KVM-MIPS-Switch-to-use-hrtimer_setup/20241028-154142 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue patch link: https://lore.kernel.org/r/8774212e6c10c550743219e00738492eb379227c.1729864823.git.namcao%40linutronix.de patch subject: [PATCH 04/31] KVM: x86: Switch to use hrtimer_setup() config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241028/202410282113.l2iM0IOZ-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241028/202410282113.l2iM0IOZ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202410282113.l2iM0IOZ-lkp@intel.com/ All errors (new ones prefixed by >>): arch/x86/kvm/lapic.c: In function 'kvm_create_lapic': >> arch/x86/kvm/lapic.c:2878:9: error: implicit declaration of function 'hrtimer_setup'; did you mean 'timer_setup'? [-Werror=implicit-function-declaration] 2878 | hrtimer_setup(&apic->lapic_timer.timer, apic_timer_fn, CLOCK_MONOTONIC, | ^~~~~~~~~~~~~ | timer_setup cc1: some warnings being treated as errors -- arch/x86/kvm/i8254.c: In function 'kvm_create_pit': >> arch/x86/kvm/i8254.c:693:9: error: implicit declaration of function 'hrtimer_setup'; did you mean 'timer_setup'? [-Werror=implicit-function-declaration] 693 | hrtimer_setup(&pit_state->timer, pit_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); | ^~~~~~~~~~~~~ | timer_setup cc1: some warnings being treated as errors -- arch/x86/kvm/hyperv.c: In function 'stimer_init': >> arch/x86/kvm/hyperv.c:955:9: error: implicit declaration of function 'hrtimer_setup'; did you mean 'timer_setup'? [-Werror=implicit-function-declaration] 955 | hrtimer_setup(&stimer->timer, stimer_timer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); | ^~~~~~~~~~~~~ | timer_setup cc1: some warnings being treated as errors -- arch/x86/kvm/vmx/nested.c: In function 'enter_vmx_operation': >> arch/x86/kvm/vmx/nested.c:5278:9: error: implicit declaration of function 'hrtimer_setup'; did you mean 'timer_setup'? [-Werror=implicit-function-declaration] 5278 | hrtimer_setup(&vmx->nested.preemption_timer, vmx_preemption_timer_fn, CLOCK_MONOTONIC, | ^~~~~~~~~~~~~ | timer_setup cc1: some warnings being treated as errors vim +2878 arch/x86/kvm/lapic.c 2847 2848 int kvm_create_lapic(struct kvm_vcpu *vcpu) 2849 { 2850 struct kvm_lapic *apic; 2851 2852 ASSERT(vcpu != NULL); 2853 2854 if (!irqchip_in_kernel(vcpu->kvm)) { 2855 static_branch_inc(&kvm_has_noapic_vcpu); 2856 return 0; 2857 } 2858 2859 apic = kzalloc(sizeof(*apic), GFP_KERNEL_ACCOUNT); 2860 if (!apic) 2861 goto nomem; 2862 2863 vcpu->arch.apic = apic; 2864 2865 if (kvm_x86_ops.alloc_apic_backing_page) 2866 apic->regs = kvm_x86_call(alloc_apic_backing_page)(vcpu); 2867 else 2868 apic->regs = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT); 2869 if (!apic->regs) { 2870 printk(KERN_ERR "malloc apic regs error for vcpu %x\n", 2871 vcpu->vcpu_id); 2872 goto nomem_free_apic; 2873 } 2874 apic->vcpu = vcpu; 2875 2876 apic->nr_lvt_entries = kvm_apic_calc_nr_lvt_entries(vcpu); 2877 > 2878 hrtimer_setup(&apic->lapic_timer.timer, apic_timer_fn, CLOCK_MONOTONIC, 2879 HRTIMER_MODE_ABS_HARD); 2880 if (lapic_timer_advance) 2881 apic->lapic_timer.timer_advance_ns = LAPIC_TIMER_ADVANCE_NS_INIT; 2882 2883 /* 2884 * Stuff the APIC ENABLE bit in lieu of temporarily incrementing 2885 * apic_hw_disabled; the full RESET value is set by kvm_lapic_reset(). 2886 */ 2887 vcpu->arch.apic_base = MSR_IA32_APICBASE_ENABLE; 2888 static_branch_inc(&apic_sw_disabled.key); /* sw disabled at reset */ 2889 kvm_iodevice_init(&apic->dev, &apic_mmio_ops); 2890 2891 /* 2892 * Defer evaluating inhibits until the vCPU is first run, as this vCPU 2893 * will not get notified of any changes until this vCPU is visible to 2894 * other vCPUs (marked online and added to the set of vCPUs). 2895 * 2896 * Opportunistically mark APICv active as VMX in particularly is highly 2897 * unlikely to have inhibits. Ignore the current per-VM APICv state so 2898 * that vCPU creation is guaranteed to run with a deterministic value, 2899 * the request will ensure the vCPU gets the correct state before VM-Entry. 2900 */ 2901 if (enable_apicv) { 2902 apic->apicv_active = true; 2903 kvm_make_request(KVM_REQ_APICV_UPDATE, vcpu); 2904 } 2905 2906 return 0; 2907 nomem_free_apic: 2908 kfree(apic); 2909 vcpu->arch.apic = NULL; 2910 nomem: 2911 return -ENOMEM; 2912 } 2913 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki