Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3182373imm; Fri, 10 Aug 2018 05:16:28 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxNML+PrhaIh/qYnw8xx0SiOTdqftDziHKHGZc/3+xyC3NqYs8eQANpf5AlwDGinctoQ3MC X-Received: by 2002:a63:f:: with SMTP id 15-v6mr6273609pga.430.1533903388702; Fri, 10 Aug 2018 05:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533903388; cv=none; d=google.com; s=arc-20160816; b=cpHpWeBEAUBFj3n5SVLY6T1D9yfLkd1tauGeD/TiRFqf40P6xkbIO6fwdLzIAyqj0K alci7eJYhG9QMe0c4GFOK+X0NXcj7/a2UtUM6HqyyhkiBmRVpjVMbz3jAXg6qj62tgEC ZNnQwJsZ2nzCpqSWYvfburTxRDjZyveHmt2za2S00wbq11u7d0wpZx/AyoW26p2SU7Qh y/t7hWzDePIBVAqxSjGGQW/lkoWOykZY3aLYwoQRmTo50jEpiFKnxqZr1e+253KHkoNv Dp0Y4E0X5HjoWfsc9XuIBwwyPIc66Rc/S+eSYNrAiJjDZ43nP0Rv4Ne+w9LYCHV1/Se8 GD3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=mzuTAwFfUQavwoG9++AJed0hjMYX+mhxtbeXo0wRk9s=; b=jlYIg1HWCseNACKIGPa3w/icGqKGIA16s936yUoYDFzd+9Px5PKUTI87vbhk/62ofr mYcDzYtxoXzhsdilyU4/C7D4chtUwr744E9BsSuaio0jdB960/hjjeDYV0P3jgSyDCGW DAC+bzKT/q3UigHhcdPYm/QM138KjT6IEc/3yEvsIIEt4rvrmhwU4iRZHSvyaxdP1S1q 3zwIiFa9EE3lpA9xZjAzrYjsiRzPFwcLYx0RlhiCN2QstOm9vsMynJox8EIDan9DmT79 vFCl3txl2Gza+B6jKdpL0go1XCcSknV2CimGEB/8DWJKaMc8/RUzDtTgCf63Ds5dYc30 PyVg== ARC-Authentication-Results: i=1; mx.google.com; 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 b5-v6si7736945plr.101.2018.08.10.05.16.12; Fri, 10 Aug 2018 05:16:28 -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; 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 S1727635AbeHJOWe (ORCPT + 99 others); Fri, 10 Aug 2018 10:22:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:38604 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727493AbeHJOWe (ORCPT ); Fri, 10 Aug 2018 10:22:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 40DBCAE18; Fri, 10 Aug 2018 11:52:57 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org, virtualization@lists.linux-foundation.org Cc: akataria@vmware.com, rusty@rustcorp.com.au, boris.ostrovsky@oracle.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, Juergen Gross Subject: [PATCH 01/10] x86/paravirt: make paravirt_patch_call() and paravirt_patch_jmp() static Date: Fri, 10 Aug 2018 13:52:43 +0200 Message-Id: <20180810115252.18213-2-jgross@suse.com> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20180810115252.18213-1-jgross@suse.com> References: <20180810115252.18213-1-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org paravirt_patch_call() and paravirt_patch_jmp() are used in paravirt.c only. Convert them to static. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt_types.h | 6 ------ arch/x86/kernel/paravirt.c | 12 ++++++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index 180bc0bff0fb..036b2f88f105 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/paravirt_types.h @@ -370,12 +370,6 @@ extern struct pv_lock_ops pv_lock_ops; unsigned paravirt_patch_ident_32(void *insnbuf, unsigned len); unsigned paravirt_patch_ident_64(void *insnbuf, unsigned len); -unsigned paravirt_patch_call(void *insnbuf, - const void *target, u16 tgt_clobbers, - unsigned long addr, u16 site_clobbers, - unsigned len); -unsigned paravirt_patch_jmp(void *insnbuf, const void *target, - unsigned long addr, unsigned len); unsigned paravirt_patch_default(u8 type, u16 clobbers, void *insnbuf, unsigned long addr, unsigned len); diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 930c88341e4e..ce560b916b1f 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -80,10 +80,10 @@ struct branch { u32 delta; } __attribute__((packed)); -unsigned paravirt_patch_call(void *insnbuf, - const void *target, u16 tgt_clobbers, - unsigned long addr, u16 site_clobbers, - unsigned len) +static unsigned paravirt_patch_call(void *insnbuf, + const void *target, u16 tgt_clobbers, + unsigned long addr, u16 site_clobbers, + unsigned len) { struct branch *b = insnbuf; unsigned long delta = (unsigned long)target - (addr+5); @@ -102,8 +102,8 @@ unsigned paravirt_patch_call(void *insnbuf, return 5; } -unsigned paravirt_patch_jmp(void *insnbuf, const void *target, - unsigned long addr, unsigned len) +static unsigned paravirt_patch_jmp(void *insnbuf, const void *target, + unsigned long addr, unsigned len) { struct branch *b = insnbuf; unsigned long delta = (unsigned long)target - (addr+5); -- 2.13.7