Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp4534rdb; Fri, 16 Feb 2024 17:47:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZI5MAgM4DoGgijwwtrdy4Wqc52DOkaJSlHL56qSxzrqACOtBTyrDoo7fO73n5YMle86B3c1S5bHQPT8v38LWUKZLAHEGGddqHBZOPDA== X-Google-Smtp-Source: AGHT+IHkDlSdb/UP9v1cDLq+f8/lu30ukSwllAibmV9ydKgPfcdzaWqpY7iH37kc9ycfQoadbUpA X-Received: by 2002:a05:6808:1b06:b0:3c1:405d:5a28 with SMTP id bx6-20020a0568081b0600b003c1405d5a28mr3490610oib.13.1708134444600; Fri, 16 Feb 2024 17:47:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708134444; cv=pass; d=google.com; s=arc-20160816; b=V6JGhEiFskBSKf4UR2iD4YQELT+i2HvRcd1iL2fbQOGnPn9sHyacRkOOhHMLGpbpaO EogNJpfqiYxzOxMDPXu5QZnjnR8015HfD2VXdrMrTIHPf3ZjzUJdHgeFEWbn63yX8V6A 9uKluehGI/INtfvgfiLTgv+HbiJVfvFs+977Pc+EU30F5ENSSi3n2L4rXyPldJsZw8eW PX8TqE9KQbpsKQx8gvoxybwAtxksxvgobnoMja1iHxwn3DfGfN3wSOl0qP26+PbOyeYc ZxfbXjBIYMMkUiEuVa6H36vRHvxzhWxdJO/Z5FeA2440DbpAywD7wq4QJuOIGWOgdHn8 v4yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=mW+9H2smD/H8mX4e4XCousTPiUmSsQuKkNGqqdye5Xc=; fh=XRzwEF+fQjpfxxC/wsKQb1/dsB4Ew4aDFMosIn4WVmk=; b=WIKjNy8jdTEmKfrLNptoC8HCnyVetx/iCw+SU6+FqvMP8kjQI541KRzUvVQub3+vyv OyIqHFcsOxh6n0vNbpwLmdqtpop/kp0fgIc3plzrRy7ErLY547ClQmnRSLdbzLNXkJnv 7Bf2wImiUt0Nq6j9/mK6nCRojFPZLQ3QllD2qZwDqELO98JEa75ug11ETgdqeOcGsNC+ eSpsRTSdowa+akkzJogl17axGFMxPk2FX6EZ6hLjBvQ6jF7yZgT5QmcDXkEuAohoDKZD 7dO1+v7v2pZfxPU476NGlihzDVLFxXllPWclMwmA7K8L8bL38AYI4iOgUkNswrH9Gxpq F5LA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vg95R0lh; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-69659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69659-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q9-20020a05622a030900b0042db54f270fsi1332913qtw.337.2024.02.16.17.47.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 17:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vg95R0lh; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-69659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69659-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E87B1C21884 for ; Sat, 17 Feb 2024 01:47:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C9711D551; Sat, 17 Feb 2024 01:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vg95R0lh" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8780A1D537 for ; Sat, 17 Feb 2024 01:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708134389; cv=none; b=AikoZGe0p66v1DkT78Dvduqpi/SCWSa+sDKDkVD4IIMlrWCm0GAkJ/Enj8aRyNw5OGeTsBDSA1caeT/p/X8/beaF95xwJYPPaIgNQSJjvVKZHYx4gsP6waDXcihVwV22sbD95+wsQIKGWQZdWxcx990Np5t70xXniq9STsa01fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708134389; c=relaxed/simple; bh=ebtkhZa9f8zdVomsb1q0aUWFOJmg84ZTw+4BmJGHN5o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FglB0aD7xmGXhuPe0VWsk4G9Yx3w8V/RYpEOUyLz0oCk5QaHBvywWJBiXs6DiUBNOaYpn328OEqEXDEeiTvysY3bIQgWpJlbbaKoUUFHynqgesNQFqTi1bLrR1gEVFnOpFGi0991z9cP71MAgu6TcqImPFjKk3EL4d1Odrf+M6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=vg95R0lh; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=mW+9H2smD/H8mX4e4XCousTPiUmSsQuKkNGqqdye5Xc=; b=vg95R0lhtgCX+vYR15NytJy+b9 r3nz1FWWKApJrUTauGa8jOWlzpPIOhVOSN4RHVGpjmJL3HvEe2tBaVgErc465JYhyY/kJFfoBiQ6R hsf6GTqtXE1dOML2oFnpsFrVQ1UV4mA+/69nO5gdb4m+v/y5A+4+TdWE2QGt5Y76gkCdw3x/J//v9 uq40SCU/iV3/zrxNwAih0nN/s31irTgcJ3lDdhCLi8Dk/PUANTwhhOl62hg2N2IvYtJHOxjpP0y4R DKOKrplXvg2WiTJ8yO1qWtO7UlFm8WEdAXKwtmiKQCil0Oe3GVmzHztsSb8Sji8dqvlJbOTBzr5LD U4Kj51oA==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb9mY-00000004R4o-2H6Q; Sat, 17 Feb 2024 01:46:22 +0000 Message-ID: <158119e5-43e2-43bb-879a-f83ed6057007@infradead.org> Date: Fri, 16 Feb 2024 17:46:21 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/fred: fix building without CONFIG_KVM Content-Language: en-US To: Arnd Bergmann , Xin Li , "H. Peter Anvin" Cc: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org References: <20240216202527.2493264-1-arnd@kernel.org> From: Randy Dunlap In-Reply-To: <20240216202527.2493264-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/16/24 12:25, Arnd Bergmann wrote: > From: Arnd Bergmann > > Some constants are only defined if KVM is enabled: > > arch/x86/entry/entry_fred.c:117:9: error: use of undeclared identifier 'POSTED_INTR_VECTOR' > 117 | SYSVEC(POSTED_INTR_VECTOR, kvm_posted_intr_ipi), > | ^ > arch/x86/entry/entry_fred.c:118:9: error: use of undeclared identifier 'POSTED_INTR_WAKEUP_VECTOR' > 118 | SYSVEC(POSTED_INTR_WAKEUP_VECTOR, kvm_posted_intr_wakeup_ipi), > | ^ > arch/x86/entry/entry_fred.c:119:9: error: use of undeclared identifier 'POSTED_INTR_NESTED_VECTOR' > 119 | SYSVEC(POSTED_INTR_NESTED_VECTOR, kvm_posted_intr_nested_ipi), > | ^ > > Hiding the references behind the same preprocessor conditional is > probably the best fix here. > > Fixes: 14619d912b65 ("x86/fred: FRED entry/exit and dispatch code") > Signed-off-by: Arnd Bergmann Acked-by: Randy Dunlap Tested-by: Randy Dunlap Thanks. > --- > arch/x86/entry/entry_fred.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/entry/entry_fred.c b/arch/x86/entry/entry_fred.c > index ac120cbdaaf2..660b7f7f9a79 100644 > --- a/arch/x86/entry/entry_fred.c > +++ b/arch/x86/entry/entry_fred.c > @@ -114,9 +114,11 @@ static idtentry_t sysvec_table[NR_SYSTEM_VECTORS] __ro_after_init = { > > SYSVEC(IRQ_WORK_VECTOR, irq_work), > > +#if IS_ENABLED(CONFIG_KVM) > SYSVEC(POSTED_INTR_VECTOR, kvm_posted_intr_ipi), > SYSVEC(POSTED_INTR_WAKEUP_VECTOR, kvm_posted_intr_wakeup_ipi), > SYSVEC(POSTED_INTR_NESTED_VECTOR, kvm_posted_intr_nested_ipi), > +#endif > }; > > static bool fred_setup_done __initdata; -- #Randy