Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2758877ybh; Mon, 5 Aug 2019 06:23:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyj6QgKIdVX7xZhWFv3q9+ih57O3pjsxxbOo3rOCToDrHpyqXFA9t3fEEWrCTX0NrcjCOj X-Received: by 2002:a62:7990:: with SMTP id u138mr70159143pfc.191.1565011436149; Mon, 05 Aug 2019 06:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011436; cv=none; d=google.com; s=arc-20160816; b=fOfP18Jf9S18tNN6rntRS1vkfbKT5Qkt0W3yZ4OQfaCicjHjrC6PBzo7/jOAiRyTx3 ukPOAXG4iTsh5WiUOrO1vyTHDbsz0pNO7PgFc3WIHlZ03UUFMyZZ/ToEmAbPkS/Ds9ZJ OWFFWR47+Cv3XuTWrJYpHvUmVFnZpDQltImw5abOlp3KdT+L+oe5EUHwYiK/Tgucr+Zk s9QGofQqZxbLrMEMqhaSKvYdaLc3ZyeXmbBcbjjpe9s3hOFspEsiE8RNphebj7IAqOYJ ptLqeWPc9cfJwxeIk32q/Bmpn0wq7+y9jBlNVQAApE15afsRZiPFvTQJ8BEQCKFKm5+h gIWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nw87OXEHCPWuhZ6ZT8cYdVhkw1vRT/feXna1fumXMQo=; b=CnTZQ2XcudjYObrsq5AvMXR566ttT52ut3DFVomO+DRP+vdnQlcxKjEeCNH5Lc0J60 +ewO7yLqAp07pb0EygipQLwhYSOWDfo/5qjOzw7lT1DUwYKwdwqcZc7PONiCXeq8Gjdf beOeva9aNXkXgz+B9qhsw/zypqh6UhhCC5h1wMzj3f37mxKoBbtEZMvPh32MGn0Sk/4Y PuPiBmaAMUCqtm/F/sZ+U8++cEIAOZjS0LLzf/5O1uCnDxxDkcQrUEKqu0LdvYDYI7Cj gwOevDWLH27edo+8ngY2dC9lZrlRaG0O8qIXcJAk4oeAoLf17wVnBQUPxDG/DH/608Ac wxsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0hXpoucw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si10426733pgn.544.2019.08.05.06.23.40; Mon, 05 Aug 2019 06:23:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0hXpoucw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730450AbfHENW4 (ORCPT + 99 others); Mon, 5 Aug 2019 09:22:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:59576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730776AbfHENWz (ORCPT ); Mon, 5 Aug 2019 09:22:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 720F62067D; Mon, 5 Aug 2019 13:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011374; bh=ziQjtn5gXG10OVKMmQ0S3B2FYf9YyrWr4BVzu/gLGOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0hXpoucwlbYIFfvw99WZ3z1TXPsass/HOdHeEOsu4Z7qI9x+g0LGBBB4GGSUgwMxk GDyc3Pp5Xp2wIHfF+H38yKESLnvtXpIntAc4a9xsIoffbD2NnmmiyioDmYv7C8bqU3 iieFm4jTKQG27+PPB0VRYTF7o3ijIYgQA3OsHz+Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Josh Poimboeuf , Thomas Gleixner , Juergen Gross , "Peter Zijlstra (Intel)" , Sasha Levin Subject: [PATCH 5.2 069/131] x86/paravirt: Fix callee-saved function ELF sizes Date: Mon, 5 Aug 2019 15:02:36 +0200 Message-Id: <20190805124956.123542064@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 083db6764821996526970e42d09c1ab2f4155dd4 ] The __raw_callee_save_*() functions have an ELF symbol size of zero, which confuses objtool and other tools. Fixes a bunch of warnings like the following: arch/x86/xen/mmu_pv.o: warning: objtool: __raw_callee_save_xen_pte_val() is missing an ELF size annotation arch/x86/xen/mmu_pv.o: warning: objtool: __raw_callee_save_xen_pgd_val() is missing an ELF size annotation arch/x86/xen/mmu_pv.o: warning: objtool: __raw_callee_save_xen_make_pte() is missing an ELF size annotation arch/x86/xen/mmu_pv.o: warning: objtool: __raw_callee_save_xen_make_pgd() is missing an ELF size annotation Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Reviewed-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/afa6d49bb07497ca62e4fc3b27a2d0cece545b4e.1563413318.git.jpoimboe@redhat.com Signed-off-by: Sasha Levin --- arch/x86/include/asm/paravirt.h | 1 + arch/x86/kernel/kvm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index c25c38a05c1c9..d6f5ae2c79ab9 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -746,6 +746,7 @@ bool __raw_callee_save___native_vcpu_is_preempted(long cpu); PV_RESTORE_ALL_CALLER_REGS \ FRAME_END \ "ret;" \ + ".size " PV_THUNK_NAME(func) ", .-" PV_THUNK_NAME(func) ";" \ ".popsection") /* Get a reference to a callee-save function */ diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 5169b8cc35bb2..320b70acb2119 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -817,6 +817,7 @@ asm( "cmpb $0, " __stringify(KVM_STEAL_TIME_preempted) "+steal_time(%rax);" "setne %al;" "ret;" +".size __raw_callee_save___kvm_vcpu_is_preempted, .-__raw_callee_save___kvm_vcpu_is_preempted;" ".popsection"); #endif -- 2.20.1