From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C543EC433EF for ; Thu, 24 Mar 2022 18:36:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243928AbiCXSiT (ORCPT ); Thu, 24 Mar 2022 14:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347480AbiCXShw (ORCPT ); Thu, 24 Mar 2022 14:37:52 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 848CCB8214 for ; Thu, 24 Mar 2022 11:36:20 -0700 (PDT) Received: from zn.tnic (p2e55dff8.dip0.t-ipconnect.de [46.85.223.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 2D0F01EC0651; Thu, 24 Mar 2022 19:36:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1648146979; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U1Rvq88SshyAxMsduaB8chen/xtMUQxQ1mrNlILofXc=; b=KbaKJINE8WGXFToXFdh4H9Cvo3w6+/3R0sk5KkLnRIgjDe2viE/4vQEpWJFPh8JgqsaKQI A5UeTRiOFEbgUD9NQ36kDg8m5/Z6ZD8DSfZcsVFycdX+K9JfNy4xfKzhM+aB3UzdsJvcRR NGH2zIu0T6yYI8yFUmYxUuk2p3glNV8= From: Borislav Petkov To: X86 ML Cc: LKML Subject: [PATCH 3/3] x86/mm: Force-inline __phys_addr_nodebug() Date: Thu, 24 Mar 2022 19:36:07 +0100 Message-Id: <20220324183607.31717-4-bp@alien8.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324183607.31717-1-bp@alien8.de> References: <20220324183607.31717-1-bp@alien8.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Fix: vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0x8b: call to __phys_addr_nodebug() leaves .noinstr.text section Signed-off-by: Borislav Petkov --- arch/x86/include/asm/page_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h index e9c86299b835..baa70451b8df 100644 --- a/arch/x86/include/asm/page_64.h +++ b/arch/x86/include/asm/page_64.h @@ -16,7 +16,7 @@ extern unsigned long page_offset_base; extern unsigned long vmalloc_base; extern unsigned long vmemmap_base; -static inline unsigned long __phys_addr_nodebug(unsigned long x) +static __always_inline unsigned long __phys_addr_nodebug(unsigned long x) { unsigned long y = x - __START_KERNEL_map; -- 2.35.1