From patchwork Thu Apr 27 08:28:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 98279 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp700023qgf; Thu, 27 Apr 2017 01:30:50 -0700 (PDT) X-Received: by 10.99.163.18 with SMTP id s18mr4333613pge.150.1493281849903; Thu, 27 Apr 2017 01:30:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s76si1171425pfa.388.2017.04.27.01.30.49; Thu, 27 Apr 2017 01:30:49 -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=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752909AbdD0Ian (ORCPT + 25 others); Thu, 27 Apr 2017 04:30:43 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34719 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbdD0Iaj (ORCPT ); Thu, 27 Apr 2017 04:30:39 -0400 Received: by mail-pf0-f182.google.com with SMTP id c198so19968949pfc.1 for ; Thu, 27 Apr 2017 01:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SAgkBUoe/M+ijpSakobf9R0Kfc764tdqmaWsst5k//k=; b=gk1QY1SzsAyxS4rI+5BJxilIUnoEXtrnMIBDq21P2qk/mYRbC3ySjw1gt1dJc2y9ZU rv5hdL/fSMjT8C6r6aunfRhi/1r+/epnCNgcRDNiSSqMPPocfdQbGIleCSCgs09x3f49 Y9JMBb/luVGhpRk6MHUW2seBzv/cXS5upPhfo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SAgkBUoe/M+ijpSakobf9R0Kfc764tdqmaWsst5k//k=; b=Mnpe7EZTF6Id7XTdYZhwbeEgu2LbPYnReneJX9SGgivtr3InDKPNV9SMHksDfMzNyE xhFWo/ZTYiO+VPwtpCoVrpciyj6CGeophIcHN29r3FJOsEVaGu2v51kwGLTxzrqaD3zv JOY5VpYoOkstPBzFeEPdhSJAv1cXDV22A79rjDa0DLto/FvKZULv+4vnlZ7mhcOcEulm PQ1Zo4zTkcwA/O37EgC8sV50IjVcUW+tbvcUf5kNxt1S71kA4GFS18hkGiXBOkG0seyQ 7O3Ze94fQrb9dBdN68G93l8u2hhKKjI0lxEIkjAPkL442Jx9Jexpo5qazoLLI2c8PCxm 4a3A== X-Gm-Message-State: AN3rC/5bmJM7HgZCpH0ty8IZWzyKaDgIflx8BwVItnXTbml7DeHPaPh1 NeyKfPwRX3IxiRhh X-Received: by 10.84.229.2 with SMTP id b2mr5612031plk.108.1493281839032; Thu, 27 Apr 2017 01:30:39 -0700 (PDT) Received: from localhost ([122.172.121.5]) by smtp.gmail.com with ESMTPSA id o10sm3071974pfe.78.2017.04.27.01.30.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 01:30:38 -0700 (PDT) From: Viresh Kumar To: Ingo Molnar , Peter Zijlstra Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Vincent Guittot , Viresh Kumar Subject: [PATCH 1/2] sched: Staticize pick_next_task_dl() and build_sched_domain() Date: Thu, 27 Apr 2017 13:58:59 +0530 Message-Id: <36e4cbb6210002cadae89920ae97e19e7e513008.1493281605.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.12.0.432.g71c3a4f4ba37 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pick_next_task_dl() and build_sched_domain() aren't used outside deadline.c and topology.c. Make them static. Signed-off-by: Viresh Kumar --- kernel/sched/deadline.c | 2 +- kernel/sched/topology.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.12.0.432.g71c3a4f4ba37 diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index a2ce59015642..ce9679a633f5 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -1168,7 +1168,7 @@ static struct sched_dl_entity *pick_next_dl_entity(struct rq *rq, return rb_entry(left, struct sched_dl_entity, rb_node); } -struct task_struct * +static struct task_struct * pick_next_task_dl(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) { struct sched_dl_entity *dl_se; diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 1b0b4fb12837..09a56ca76bd1 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1351,7 +1351,7 @@ static void __sdt_free(const struct cpumask *cpu_map) } } -struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, +static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, const struct cpumask *cpu_map, struct sched_domain_attr *attr, struct sched_domain *child, int cpu) {