Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4197487imm; Fri, 18 May 2018 00:38:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpPtSUy91nXEC6h7JdR3WY4kL4FRnSB9Viv+HMGMsze5ZXWhe5SUcKnmVz5pRH6gb9j1jo3 X-Received: by 2002:a62:105:: with SMTP id 5-v6mr8305620pfb.1.1526629094880; Fri, 18 May 2018 00:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526629094; cv=none; d=google.com; s=arc-20160816; b=o+xOr0BCNOPfr5eEHvungcysUBAY4ebTddX6UoH2oAy2G5Oifn6U/rgIoZ0c6idt46 Ur6o6zo/Kl20pOFLbzK3fnIQYucyPY6uAz4S83yyGtWiBWll4bNkzNIvVhpI+f8L5B2Q Hum9I7IMMzO4zhG8jIqv0dNnVlQarlpbawSEzt+6EtQIBwPtj0wrIOG5QXN5KSW6snod rarphVyEq8T9SbJrN3l1kMC6C7bC8pnClGaR9KYCFU2vbx2iBi2AWxQixJtiFlcKKyBn B4AFHLxBMBHokrXv48C2iX+uQW9tUCb1Hkh2J3PVfZLQ2p6awkFJQfk5bq2qy6zTcesz e8yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=e/4KtM+9qRdDedwIb8ziRf4rCgXrl4N9zOmIkYAaSq0=; b=e9809CEk0ne0NG1cbmEra2rjOe/mYld0EpVmYPnOxd2O9YP+KLdpvRAnCNq/eKYX2g zbcUWqv43JlAwDRvJztnTOaqN33LWG5+QREvTLubTkXAnQeeHCEnT3Rg8ZyKWq2ENEso isH4tfWHrMwQ0nIEX07inVjA0PKirppKx9KM9JgkjLZjP4v50+4MHTJQQBwiEUsYICwH c5z55IuAX9izIn+96PC0MGWpbJDXdIHHTQh2xms1Jhp/HPb4vvqI38gZZd0/JRk9aMW1 9QqyHf6nnIwSc2l9j/jsRXs7cT05W1CbO+2LjD44rxPOECMIymKCD7LnMBiR7X16G651 6zHQ== 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 z10-v6si5353794pgz.443.2018.05.18.00.38.00; Fri, 18 May 2018 00:38:14 -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; 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 S1751945AbeERHhb (ORCPT + 99 others); Fri, 18 May 2018 03:37:31 -0400 Received: from terminus.zytor.com ([198.137.202.136]:39975 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751184AbeERHh3 (ORCPT ); Fri, 18 May 2018 03:37:29 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w4I7aoxt2344693 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 18 May 2018 00:36:50 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w4I7aoJ12344690; Fri, 18 May 2018 00:36:50 -0700 Date: Fri, 18 May 2018 00:36:50 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mathieu Malaterre Message-ID: Cc: mingo@kernel.org, srikar@linux.vnet.ibm.com, torvalds@linux-foundation.org, tglx@linutronix.de, malat@debian.org, peterz@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: tglx@linutronix.de, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, hpa@zytor.com, malat@debian.org, peterz@infradead.org, mingo@kernel.org, srikar@linux.vnet.ibm.com In-Reply-To: <20180516195348.30426-1-malat@debian.org> References: <20180516195348.30426-1-malat@debian.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/urgent] sched/debug: Move the print_rt_rq() and print_dl_rq() declarations to kernel/sched/sched.h Git-Commit-ID: f6a3463063f42d9fb2c78f386437a822e0ad1792 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: f6a3463063f42d9fb2c78f386437a822e0ad1792 Gitweb: https://git.kernel.org/tip/f6a3463063f42d9fb2c78f386437a822e0ad1792 Author: Mathieu Malaterre AuthorDate: Wed, 16 May 2018 21:53:47 +0200 Committer: Ingo Molnar CommitDate: Fri, 18 May 2018 09:05:14 +0200 sched/debug: Move the print_rt_rq() and print_dl_rq() declarations to kernel/sched/sched.h In the following commit: 6b55c9654fcc ("sched/debug: Move print_cfs_rq() declaration to kernel/sched/sched.h") the print_cfs_rq() prototype was added to , right next to the prototypes for print_cfs_stats(), print_rt_stats() and print_dl_stats(). Finish this previous commit and also move related prototypes for print_rt_rq() and print_dl_rq(). Remove existing extern declarations now that they not needed anymore. Silences the following GCC warning, triggered by W=1: kernel/sched/debug.c:573:6: warning: no previous prototype for ‘print_rt_rq’ [-Wmissing-prototypes] kernel/sched/debug.c:603:6: warning: no previous prototype for ‘print_dl_rq’ [-Wmissing-prototypes] Signed-off-by: Mathieu Malaterre Acked-by: Peter Zijlstra Cc: Linus Torvalds Cc: Srikar Dronamraju Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20180516195348.30426-1-malat@debian.org Signed-off-by: Ingo Molnar --- kernel/sched/deadline.c | 2 -- kernel/sched/rt.c | 2 -- kernel/sched/sched.h | 5 +++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index e7b3008b85bb..d6196bc6cbb5 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -2731,8 +2731,6 @@ bool dl_cpu_busy(unsigned int cpu) #endif #ifdef CONFIG_SCHED_DEBUG -extern void print_dl_rq(struct seq_file *m, int cpu, struct dl_rq *dl_rq); - void print_dl_stats(struct seq_file *m, int cpu) { print_dl_rq(m, cpu, &cpu_rq(cpu)->dl); diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 7aef6b4e885a..ef3c4e6f5345 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2701,8 +2701,6 @@ int sched_rr_handler(struct ctl_table *table, int write, } #ifdef CONFIG_SCHED_DEBUG -extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq); - void print_rt_stats(struct seq_file *m, int cpu) { rt_rq_iter_t iter; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 15750c222ca2..1f0a4bc6a39d 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2025,8 +2025,9 @@ extern bool sched_debug_enabled; extern void print_cfs_stats(struct seq_file *m, int cpu); extern void print_rt_stats(struct seq_file *m, int cpu); extern void print_dl_stats(struct seq_file *m, int cpu); -extern void -print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq); +extern void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq); +extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq); +extern void print_dl_rq(struct seq_file *m, int cpu, struct dl_rq *dl_rq); #ifdef CONFIG_NUMA_BALANCING extern void show_numa_stats(struct task_struct *p, struct seq_file *m);