From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from jpms-ob02.noc.sony.co.jp (jpms-ob02.noc.sony.co.jp [211.125.140.165]) (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 C5CB9946C; Tue, 3 Feb 2026 00:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.125.140.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770078305; cv=none; b=nR7nuBhlWuwns7ERxDwuz5/6CNdRctCfiYXvyXidHQxvXeQk6ReMAujGc/sK2Xdb/Qze+Pijn2spSSzmuCkswUtRlErwvP0KQiwqmjpamRyCPHXdD6DVhXhSla9YUPjZseO0szeSnK7BndgjKhCO5+qcbApF0rh5xxJeYI4LyFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770078305; c=relaxed/simple; bh=BntylBVVgecoypzFquKfaO5D5v56DcVhmxm/iNQxf4A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S/nIazeC5S1C/XDvdisLDZLExqNgtBiiJbuf6Kk1JO7H1jQkm9kp4KpuxJjFUzSUjOdKS0HK2kZbfch6IfvwjbYKPijqR1muG6n3Jbkf86jJECgnxmAoGyFnomJ7/pleWrMDveT1fyfpwyhyR9W4SlaeH0ngWWmJ0NgWQfmwDo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com; spf=pass smtp.mailfrom=sony.com; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b=fHO3w0XQ; arc=none smtp.client-ip=211.125.140.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sony.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b="fHO3w0XQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; s=s1jp; t=1770078304; x=1801614304; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+mESz147mY99AmYLlTyE/1U+z38Cj71ObLjn1oYbbso=; b=fHO3w0XQoI2WqF5YgUqMWB6VZaa9/Q4IyTO664iYoU3Wv6rkTfcG/qph 7KHt9QrDJHUAQyH1CscG11pVElrEWVAQY2swJNooFFtOQmu3PYDsd/c7M XYpNsXh+CHmYy2mQ3N+SqtbQlim7rXCCIMvKVHxDv35QALZjG3HgUBhYd RjAD/tcdq9Tb07xnD1ocB9HvUkZAh+KMYFPrN5d2v22vOBVZyasbsDH3N 7tdXESbiPT4ikX34kGM+9T7tV2GnqxIlw07DJ3NBJX90rQx+b/nBKkvTQ ugUnPryVOIizL6CNWWCZWToWLu62aprcG7U2xO/BE+3IfYmGfGR6XR/mh g==; Received: from unknown (HELO jpmta-ob1.noc.sony.co.jp) ([IPv6:2001:cf8:0:6e7::6]) by jpms-ob02.noc.sony.co.jp with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2026 09:25:02 +0900 X-IronPort-AV: E=Sophos;i="6.21,269,1763391600"; d="scan'208";a="607577797" Received: from unknown (HELO JPC00244420) ([IPv6:2001:cf8:1:573:0:dddd:6b3e:119e]) by jpmta-ob1.noc.sony.co.jp with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2026 09:25:02 +0900 Date: Tue, 3 Feb 2026 09:24:56 +0900 From: Shashank Balaji To: kernel test robot Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Suresh Siddha , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Ajay Kaher , Alexey Makhalov , Broadcom internal kernel review list , Jan Kiszka , Paolo Bonzini , Vitaly Kuznetsov , Juergen Gross , Boris Ostrovsky , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, jailhouse-dev@googlegroups.com, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Rahul Bukte , Daniel Palmer , Tim Bird Subject: Re: [PATCH 1/3] x86/x2apic: disable x2apic on resume if the kernel expects so Message-ID: References: <20260202-x2apic-fix-v1-1-71c8f488a88b@sony.com> <202602030600.jFhsJyEC-lkp@intel.com> Precedence: bulk X-Mailing-List: virtualization@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: <202602030600.jFhsJyEC-lkp@intel.com> On Tue, Feb 03, 2026 at 06:31:40AM +0800, kernel test robot wrote: > Hi Shashank, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on 18f7fcd5e69a04df57b563360b88be72471d6b62] > > url: https://github.com/intel-lab-lkp/linux/commits/Shashank-Balaji/x86-x2apic-disable-x2apic-on-resume-if-the-kernel-expects-so/20260202-181147 > base: 18f7fcd5e69a04df57b563360b88be72471d6b62 > patch link: https://lore.kernel.org/r/20260202-x2apic-fix-v1-1-71c8f488a88b%40sony.com > patch subject: [PATCH 1/3] x86/x2apic: disable x2apic on resume if the kernel expects so > config: i386-randconfig-001-20260202 (https://download.01.org/0day-ci/archive/20260203/202602030600.jFhsJyEC-lkp@intel.com/config) > compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/202602030600.jFhsJyEC-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/202602030600.jFhsJyEC-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> arch/x86/kernel/apic/apic.c:2463:3: error: call to undeclared function '__x2apic_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 2463 | __x2apic_disable(); > | ^ > arch/x86/kernel/apic/apic.c:2463:3: note: did you mean '__x2apic_enable'? > arch/x86/kernel/apic/apic.c:1896:20: note: '__x2apic_enable' declared here > 1896 | static inline void __x2apic_enable(void) { } > | ^ > 1 error generated. This happens when CONFIG_X86_X2APIC is disabled. This patch fixes it, which I'll include in v2: diff --git i/arch/x86/kernel/apic/apic.c w/arch/x86/kernel/apic/apic.c index 8820b631f8a2..06cce23b89c1 100644 --- i/arch/x86/kernel/apic/apic.c +++ w/arch/x86/kernel/apic/apic.c @@ -1894,6 +1894,7 @@ void __init check_x2apic(void) static inline void try_to_enable_x2apic(int remap_mode) { } static inline void __x2apic_enable(void) { } +static inline void __x2apic_disable(void) {} #endif /* !CONFIG_X86_X2APIC */ void __init enable_IR_x2apic(void)