From patchwork Thu May 30 05:47:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenbaodong X-Patchwork-Id: 10968295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 10634933 for ; Thu, 30 May 2019 07:00:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB33E28857 for ; Thu, 30 May 2019 07:00:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEFED2888B; Thu, 30 May 2019 07:00:37 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE4EA28877 for ; Thu, 30 May 2019 07:00:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWF1a-0001xA-T5; Thu, 30 May 2019 06:58:54 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWDx1-0005jL-Gz for xen-devel@lists.xenproject.org; Thu, 30 May 2019 05:50:07 +0000 X-Inumbo-ID: c217aa42-829e-11e9-afa5-075699f3fbd5 Received: from mxnavi-mail.mxnavi.com (unknown [116.90.87.199]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id c217aa42-829e-11e9-afa5-075699f3fbd5; Thu, 30 May 2019 05:50:00 +0000 (UTC) Received: from localhost.localdomain (61.161.186.150) by mxnavi-mail.mxnavi.com (116.90.87.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Thu, 30 May 2019 13:47:43 +0800 From: Baodong Chen To: Date: Thu, 30 May 2019 13:47:24 +0800 Message-ID: <1559195244-7692-1-git-send-email-chenbaodong@mxnavi.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [61.161.186.150] X-ClientProxiedBy: mxnavi-mail.mxnavi.com (116.90.87.199) To mxnavi-mail.mxnavi.com (116.90.87.199) X-Mailman-Approved-At: Thu, 30 May 2019 06:58:53 +0000 Subject: [Xen-devel] [PATCH] xen: 'keyhandler' is not used in null scheduler X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Baodong Chen , George Dunlap , Dario Faggioli Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP So remove 'keyhandler.h' include. Also add 'static' prefix for 'schud_bull_def' Signed-off-by: Baodong Chen Reviewed-by: George Dunlap --- xen/common/sched_null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/common/sched_null.c b/xen/common/sched_null.c index a59dbb2..c9700f1 100644 --- a/xen/common/sched_null.c +++ b/xen/common/sched_null.c @@ -31,7 +31,6 @@ #include #include #include -#include #include /* @@ -871,7 +870,7 @@ static void null_dump(const struct scheduler *ops) spin_unlock_irqrestore(&prv->lock, flags); } -const struct scheduler sched_null_def = { +static const struct scheduler sched_null_def = { .name = "null Scheduler", .opt_name = "null", .sched_id = XEN_SCHEDULER_NULL,