From patchwork Tue Aug 16 23:28:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 9284999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7FD4D607FD for ; Tue, 16 Aug 2016 23:32:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71ACD28704 for ; Tue, 16 Aug 2016 23:32:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6688028788; Tue, 16 Aug 2016 23:32:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 512F028704 for ; Tue, 16 Aug 2016 23:32:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZnnb-0004fE-Uo; Tue, 16 Aug 2016 23:29:35 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZnna-0004eD-He for xen-devel@lists.xen.org; Tue, 16 Aug 2016 23:29:34 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id 93/48-03281-DD1A3B75; Tue, 16 Aug 2016 23:29:33 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRWlGSWpSXmKPExsVyMXThQd27Cze HG0zu4rRY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDOmNB9mLXjDUXFySl0D4132LkZODiGBCYwS WzaFdTFycbAIzGOW2LiumREkISHQzyrRPicfwo6ROLhmGiuEXS3xYPF5VohmBYnfEw4xgTQLC axgkljy9gFYgk1AQ+LJrxlsILaIgLTEtc+XwYYyC5RI7J3/A8jm4BAWcJVY8EMIJMwioCrRcX QHM4jNK+AocefnQXaQEgkBOYkF731AwpwCThJHXzZA3ewo0bxmOtsERoEFjAyrGDWKU4vKUot 0DU30kooy0zNKchMzc3QNDYz1clOLixPTU3MSk4r1kvNzNzECQ4oBCHYwrtjueYhRkoNJSZR3 5sSN4UJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeOsWbA4XEixKTU+tSMvMAQY3TFqCg0dJhPcaS Jq3uCAxtzgzHSJ1itGYY8vva2uZOLZNvbeWSYglLz8vVUqcNx6kVACkNKM0D24QLOouMcpKCf MyAp0mxFOQWpSbWYIq/4pRnINRSZh3B8gUnsy8Erh9r4BOYQI6RV96A8gpJYkIKakGxvazwds naU8+uvTwvXmeP24ssD/buN/pXNpdkwKLsk0vdrgruT/omv0nxCLD7JyMcG7iP6MTJqd+Nauo 6fGF3l+eULq76bY0i8eJuT53CyYpB0+ek/OPb8aGGpYVj5Pqv297JP76et81850pss9fHJn1V 9ds94fc/oDTBh+1KqJe+fMcPv/HYrMSS3FGoqEWc1FxIgBbnAOktQIAAA== X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-15.tower-31.messagelabs.com!1471390172!51968006!1 X-Originating-IP: [209.85.161.193] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 55898 invoked from network); 16 Aug 2016 23:29:33 -0000 Received: from mail-yw0-f193.google.com (HELO mail-yw0-f193.google.com) (209.85.161.193) by server-15.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 16 Aug 2016 23:29:33 -0000 Received: by mail-yw0-f193.google.com with SMTP id r9so4226363ywg.2 for ; Tue, 16 Aug 2016 16:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bcPFprtuQA7JK0XXkC8spqIEoZhnQsnfeNvMWO568SE=; b=Lzgd61hrX1rtHU+NUNFrWgrI4yrC+RRGh13gSvmuGkOb/UDBarBHR5EMnRAqJj8m9l 56t1WM2wmz9+q9l95zvGqjjBePQRjYVWDFadieaP2rKtTtjbV2Pg5uDDwU719OXL/Dp9 XDVRFJ+RcB8/UZkQVgYtuBX3v1cP6XixOqvug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bcPFprtuQA7JK0XXkC8spqIEoZhnQsnfeNvMWO568SE=; b=jX8Yy72sKOQor9NTS2ezSkdcxKtWgO6M9geWT5lPzqT/5erpJvo2dpH4cEjKmE3WBL veb9K2H3uxl2RUW3rhoDGkOeO0HnQamNLl7os5wKrUbEFjwrdZPTBhc9tYivgsPGKe+8 AhWRY95eqFE+sLbJIJ0etnHW0Hx6IVqov3zzn4vGb/zGiHEP1etbwTyM34Ve2i78/qbZ QEOUBW6Hz3DviVNphQyN6D1l4vfte8cEFVJ8+SY03lWEQ8YOaIp/8VzgGxhUZvgupdCq aaYV3n7t0UjiT5pFyY4P6BNo+Vf9LL+zm+enCtjWMpNXqHNvz2kgG+y7MYoAvuB6x8hU QTTQ== X-Gm-Message-State: AEkoouseokowssTVxWeVNkTtaOA6JO/p02xfVu4MSLFLaRJnaywnw35gMmXw6p7gJzwyMg== X-Received: by 10.13.251.134 with SMTP id l128mr27646035ywf.17.1471390171805; Tue, 16 Aug 2016 16:29:31 -0700 (PDT) Received: from swanson.attlocal.net (104-179-196-18.lightspeed.brhmal.sbcglobal.net. [104.179.196.18]) by smtp.gmail.com with ESMTPSA id p67sm14046603ywe.2.2016.08.16.16.29.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Aug 2016 16:29:30 -0700 (PDT) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Tue, 16 Aug 2016 18:28:28 -0500 Message-Id: <1471390109-10407-9-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1471390109-10407-1-git-send-email-cardoe@cardoe.com> References: <1471390109-10407-1-git-send-email-cardoe@cardoe.com> Cc: Andrew Cooper , Doug Goldstein , Jan Beulich Subject: [Xen-devel] [PATCH 8/9] x86/mtrr: drop unused func prototypes and struct X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP These weren't used so drop them. Signed-off-by: Doug Goldstein Reviewed-by: Jan Beulich --- xen/arch/x86/cpu/mtrr/mtrr.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/xen/arch/x86/cpu/mtrr/mtrr.h b/xen/arch/x86/cpu/mtrr/mtrr.h index 9405cbc..1a3b1e5 100644 --- a/xen/arch/x86/cpu/mtrr/mtrr.h +++ b/xen/arch/x86/cpu/mtrr/mtrr.h @@ -22,18 +22,6 @@ void mtrr_generic_set(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type); int mtrr_generic_have_wrcomb(void); -/* library functions for processor-specific routines */ -struct set_mtrr_context { - unsigned long flags; - unsigned long cr4val; - uint64_t deftype; - u32 ccr3; -}; - -void set_mtrr_done(struct set_mtrr_context *ctxt); -void set_mtrr_cache_disable(struct set_mtrr_context *ctxt); -void set_mtrr_prepare_save(struct set_mtrr_context *ctxt); - void get_mtrr_state(void); extern u64 size_or_mask, size_and_mask; @@ -41,6 +29,3 @@ extern u64 size_or_mask, size_and_mask; extern unsigned int num_var_ranges; void mtrr_state_warn(void); - -extern int amd_init_mtrr(void); -extern int cyrix_init_mtrr(void);