From patchwork Fri Feb 17 06:39:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haozhong Zhang X-Patchwork-Id: 9578885 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 A1651600C5 for ; Fri, 17 Feb 2017 06:43:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92EA12869B for ; Fri, 17 Feb 2017 06:43:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87AC1286A4; Fri, 17 Feb 2017 06:43:25 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 1FA932869B for ; Fri, 17 Feb 2017 06:43:25 +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 1cecDl-0002Ma-KD; Fri, 17 Feb 2017 06:40:45 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cecDk-0002MP-7V for xen-devel@lists.xen.org; Fri, 17 Feb 2017 06:40:44 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id E5/CD-13192-BEA96A85; Fri, 17 Feb 2017 06:40:43 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRWlGSWpSXmKPExsVywNykWPfVrGU RBu9/Klos+biYxYHR4+ju30wBjFGsmXlJ+RUJrBmrmuILmnkrbi//wtjA2MHdxcjFISQwjVGi bcM7li5GTg4JAV6JI8tmsELYfhLbPj9mhCjqZZT4OOE3E0iCTUBfYsXjg2BFIgLSEtc+XwYrY hY4yyix5G4DWJGwgJ3Es+29bCA2i4CqxLWFDYwgNq+ArcTkK4vZITbIS1y4egpsMydQ/Z+HH8 DiQkA17z/dY57AyLuAkWEVo3pxalFZapGuiV5SUWZ6RkluYmaOrqGBmV5uanFxYnpqTmJSsV5 yfu4mRmA4MADBDsbuy/6HGCU5mJREeRdNWxYhxJeUn1KZkVicEV9UmpNafIhRhoNDSYKXGxhe QoJFqempFWmZOcDAhElLcPAoifBygKR5iwsSc4sz0yFSpxgVpcR5b8wESgiAJDJK8+DaYNFwi VFWSpiXEegQIZ6C1KLczBJU+VeM4hyMSsK8F0Cm8GTmlcBNfwW0mAlocWfEUpDFJYkIKakGRu P2P6VfPh46YTjb6sbDa//eJHtscFr7vSDzppahjvC+G7849jtI9/apq4VM2lgTsqz0vvyXI7M 3cEyJunnp5fbbq0+afd0w+4Lby86uaNfH6vz8df6lS6O/vvY+cXeZkrmRQMgPK5YJGxO7JuYF 75kVIq+7ROj8++rv9gIeNRvF5DIyFnArdCuxFGckGmoxFxUnAgBgiF12gQIAAA== X-Env-Sender: haozhong.zhang@intel.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1487313633!34675007!4 X-Originating-IP: [192.55.52.115] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 32777 invoked from network); 17 Feb 2017 06:40:42 -0000 Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 17 Feb 2017 06:40:42 -0000 Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2017 22:40:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,171,1484035200"; d="scan'208";a="65781494" Received: from hz-desktop.sh.intel.com (HELO localhost) ([10.239.159.133]) by orsmga005.jf.intel.com with ESMTP; 16 Feb 2017 22:40:40 -0800 From: Haozhong Zhang To: xen-devel@lists.xen.org Date: Fri, 17 Feb 2017 14:39:21 +0800 Message-Id: <20170217063936.13208-5-haozhong.zhang@intel.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170217063936.13208-1-haozhong.zhang@intel.com> References: <20170217063936.13208-1-haozhong.zhang@intel.com> Cc: Haozhong Zhang , Christoph Egger , Andrew Cooper , Jan Beulich , Liu Jinsong Subject: [Xen-devel] [PATCH 04/19] xen/mce: remove unused x86_mcinfo_add() 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 Signed-off-by: Haozhong Zhang --- Cc: Christoph Egger Cc: Liu Jinsong Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/cpu/mcheck/mce.c | 16 ---------------- xen/arch/x86/cpu/mcheck/mce.h | 1 - 2 files changed, 17 deletions(-) diff --git a/xen/arch/x86/cpu/mcheck/mce.c b/xen/arch/x86/cpu/mcheck/mce.c index e327eab..f682520 100644 --- a/xen/arch/x86/cpu/mcheck/mce.c +++ b/xen/arch/x86/cpu/mcheck/mce.c @@ -834,22 +834,6 @@ void *x86_mcinfo_reserve(struct mc_info *mi, int size) return memset(mic_index, 0, size); } -void *x86_mcinfo_add(struct mc_info *mi, void *mcinfo) -{ - struct mcinfo_common *mic, *buf; - - mic = (struct mcinfo_common *)mcinfo; - buf = x86_mcinfo_reserve(mi, mic->size); - - if ( !buf ) - mce_printk(MCE_CRITICAL, - "mcinfo_add: No space left in mc_info\n"); - else - memcpy(buf, mic, mic->size); - - return buf; -} - static void x86_mcinfo_apei_save( struct mcinfo_global *mc_global, struct mcinfo_bank *mc_bank) { diff --git a/xen/arch/x86/cpu/mcheck/mce.h b/xen/arch/x86/cpu/mcheck/mce.h index e697780..56877c1 100644 --- a/xen/arch/x86/cpu/mcheck/mce.h +++ b/xen/arch/x86/cpu/mcheck/mce.h @@ -146,7 +146,6 @@ typedef struct mcinfo_extended *(*x86_mce_callback_t) (struct mc_info *, uint16_t, uint64_t); extern void x86_mce_callback_register(x86_mce_callback_t); -void *x86_mcinfo_add(struct mc_info *mi, void *mcinfo); void *x86_mcinfo_reserve(struct mc_info *mi, int size); void x86_mcinfo_dump(struct mc_info *mi);