Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp107135imu; Wed, 7 Nov 2018 21:53:01 -0800 (PST) X-Google-Smtp-Source: AJdET5eB+Pa3bY6aEkBEX+7t9ZvVc3V/VWR3xNeq5luZspCZfuoV86s7D9pYtlDUHGg1lF7cLbgt X-Received: by 2002:a17:902:ba83:: with SMTP id k3-v6mr3129483pls.200.1541656381638; Wed, 07 Nov 2018 21:53:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541656381; cv=none; d=google.com; s=arc-20160816; b=DL0+WccsBZIXXnJq5wWqjDV0VIGFlGorVNVjsIUlCshosRseFpws9OA7AuHn3AWrwa zIlyXShamSTOd+RCe9In7gdTHLNq5p9K05FCmWlIV8Sj83bQ+Fs5QQtzKjGPyWNnMY+D gs3OxNjH6+EuGE7lOmRsjY6YWA01mj1KlFVMwriwHa+jalOaIR04v6n4Lku2XEVc7dxV 4agyC8O/iRl/RtAvVZ+0qZJ7Js7rESTj+UoS1n7af9sNju6pTVyos7vu7HgeYiaxnU1F ZHhDUB0jzP1AT3zhuJaWgVSJsvLe+OAgOrTerSxWryGAyEQfa5hHatOgCaFq4EHT5U89 AWAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YBCmy0qQFHG/qVo8X46hoK6wrAvOsaRO6dTrWIchzIo=; b=jd6HTjxkqKWajebUOujxfBqove49i6k3EgcUOSbG4zid9DRcx+uK1OaSIZvKlLCGZk g94f9qrlAyWqEQYQ/ZIv/GWkM303V07rBiaywcHu9d2h93+l6p6QgLItk8Kji41Ze/we etbUu30SUohknwS5+jMvVREzP2EyPMfcVUK3CjpdwhmPTlWg98h/LAU9/57tAYhRzlIg OV3YNXWGGCyjnyOflIAJBUexwmOg2X8hDV3e/lcdhpIma4AkpPKXEXjW1lxkauaUO92Q JLowzF+vf6Hi86x/n7+rQ796K/D84lEACprX7cvdkGhzF4cgkqGCgRfA6dzRUaM7Rf6Y io8Q== 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 h13-v6si2799370pgq.285.2018.11.07.21.52.46; Wed, 07 Nov 2018 21:53:01 -0800 (PST) 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 S1726375AbeKHP0L convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Nov 2018 10:26:11 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:34698 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbeKHP0L (ORCPT ); Thu, 8 Nov 2018 10:26:11 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id BB3701629166CD38F03A; Thu, 8 Nov 2018 13:52:20 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wA85qE6H032454; Thu, 8 Nov 2018 13:52:14 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018110813524340-9360779 ; Thu, 8 Nov 2018 13:52:43 +0800 From: Yi Wang To: mingo@redhat.com Cc: peterz@infradead.org, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, Yi Wang Subject: [PATCH] sched/fair: make some function static Date: Thu, 8 Nov 2018 13:54:12 +0800 Message-Id: <1541656452-3326-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-11-08 13:52:43, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-08 13:52:02 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wA85qE6H032454 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make some function static as they are not used outside of fair.c. This fixes the following warning when building with 'W=1': kernel/sched/fair.c:2439:6: warning: no previous prototype for ‘task_numa_work’ [-Wmissing-prototypes] kernel/sched/fair.c:2584:6: warning: no previous prototype for ‘task_tick_numa’ [-Wmissing-prototypes] kernel/sched/fair.c:3548:6: warning: no previous prototype for ‘sync_entity_load_avg’ [-Wmissing-prototypes] kernel/sched/fair.c:3561:6: warning: no previous prototype for ‘remove_entity_load_avg’ [-Wmissing-prototypes] Signed-off-by: Yi Wang --- kernel/sched/fair.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index ee271bb..615e168 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2436,7 +2436,7 @@ static void reset_ptenuma_scan(struct task_struct *p) * The expensive part of numa migration is done from task_work context. * Triggered from task_tick_numa(). */ -void task_numa_work(struct callback_head *work) +static void task_numa_work(struct callback_head *work) { unsigned long migrate, next_scan, now = jiffies; struct task_struct *p = current; @@ -2581,7 +2581,7 @@ void task_numa_work(struct callback_head *work) /* * Drive the periodic memory faults.. */ -void task_tick_numa(struct rq *rq, struct task_struct *curr) +static void task_tick_numa(struct rq *rq, struct task_struct *curr) { struct callback_head *work = &curr->numa_work; u64 period, now; @@ -3545,7 +3545,7 @@ static inline u64 cfs_rq_last_update_time(struct cfs_rq *cfs_rq) * Synchronize entity load avg of dequeued entity without locking * the previous rq. */ -void sync_entity_load_avg(struct sched_entity *se) +static void sync_entity_load_avg(struct sched_entity *se) { struct cfs_rq *cfs_rq = cfs_rq_of(se); u64 last_update_time; @@ -3558,7 +3558,7 @@ void sync_entity_load_avg(struct sched_entity *se) * Task first catches up with cfs_rq, and then subtract * itself from the cfs_rq (task must be off the queue now). */ -void remove_entity_load_avg(struct sched_entity *se) +static void remove_entity_load_avg(struct sched_entity *se) { struct cfs_rq *cfs_rq = cfs_rq_of(se); unsigned long flags; -- 1.8.3.1