Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2440484imm; Wed, 16 May 2018 12:55:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3ay0/zybRZnY1wAMEi9+7zH0MTgrYT3jn9cx1opDR+dI4Sv2+SPpC+iYasIXKoCW1asU6 X-Received: by 2002:a63:6d42:: with SMTP id i63-v6mr1819094pgc.161.1526500535145; Wed, 16 May 2018 12:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526500535; cv=none; d=google.com; s=arc-20160816; b=0FEObq22nfkMKAw20GUic36dbwzwN0dciHHfsxvu/7BZNSSx5jtBGn5/LjBwYZwB/I oUyPiC9GHk2oYjNXXfQi0xr/v8TvIOnE54CiwRWENORU8rMoWVL3sn8EvImbwiENaK9c 3cuP/5vF8kInHCqQIIMbMAZiKDb68RHhRHXqmPkKgbEU4pRdByMgW0EvATwPPmPKCCgC lZm9QRw51u3BdG+nJd1EEQjYghfYdkBcr+3/ttOuTsa/YkyyOGVNO8pr8EDzbumSkJ5r l34D3IEWgFSQQiVUC4KF+2Do55Fz9kH1FFzC+OcHNYuqIYS4fOU+1yK6qfwndDmDFQ5J 5cag== 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:dkim-signature :arc-authentication-results; bh=XiBloajT+WX6LJ79dD3zN9pmy+DtYspnm/rkSkYmiIo=; b=oQ/Dus+p6J4o8T+LeKhYFaBNYmHNE+ocw8kidJwm2IcfJWNPr8NDmhdP62J8TBovG3 GaE47NoxegmS+KoL5JBWfZlWIiC3EQmTloUoUi9gIlmgKOW8dN0ytRJ+xpnNNPW63ZGo zyZRjtG15+3vPyQqcledgVE9aHit50YxCaBVnwrNx61Go1VSGdZIf/TEUwOqJ3uaDEsQ XxAgukVCZh6qWLWO1R+tpnDsLh/b8hGbYhFIpEvYiOlQ5FQN6ybWywOFDBm4nOdkADyr vGjgP59Rh5T6YH9bBKNtHKsRd9hNVc9Ux3lfmXTkgozBcyu1IGIsPg6OIbX+J3f3PE90 JZ1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DJzjTPn/; 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 k5-v6si2658395pgo.0.2018.05.16.12.55.20; Wed, 16 May 2018 12:55:35 -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=fail header.i=@gmail.com header.s=20161025 header.b=DJzjTPn/; 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 S1751533AbeEPTyD (ORCPT + 99 others); Wed, 16 May 2018 15:54:03 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:32780 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbeEPTyC (ORCPT ); Wed, 16 May 2018 15:54:02 -0400 Received: by mail-wm0-f65.google.com with SMTP id x12-v6so2611216wmc.0 for ; Wed, 16 May 2018 12:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XiBloajT+WX6LJ79dD3zN9pmy+DtYspnm/rkSkYmiIo=; b=DJzjTPn/DEhHFfm83/vvPiM8cHhc7/XUbofVqibJIssOHoSC8bbYtHc2sns57T5Y3a Ec637OfWN00AeWWSOmEc3lz4Kli/WzAI47/dYFbTvg3uDPTxCPmciG0/3hu6cLQsjs7r EZXOy1fqFTQAk/sZ7kU9PePF4pdrBx3QcTJV65wuBgxNCzELuhKzrEohy8qtVSAVF46c qrU1pwTmfM9fbFBOmbD9ZDY9Oy8DKjFOM/MXvQ//3FrPjIfc1ZYWsL1VSgBx+oRyYvMR 9mULnWmdcc+lwOBojq8I1t9pdQ0V3P0Xk9ifUT9zn4fRVOHU7DGoLGZN5Q9t2wifbMy+ DxiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=XiBloajT+WX6LJ79dD3zN9pmy+DtYspnm/rkSkYmiIo=; b=J2g46Gor0lqqNBDMdS/8yEl43c7DQkYwPRBBexPa+9rkDo+fLiage4Ommq30xPK8r1 BErSPJzISFajVRSrfBZVsc2vd5TlTl2tkJXAgcPk5XqKhXROy9aGhL7aUDC2jYbSMKmo JB3lk85D9gtkmvlR/7oZAmAttB6i11RdTtcohnew8KD12PyDb2dOKM1c9qyuTsFjxOih mJ5Nf8/IpaqztgfNM26bHwrQ1XgPBEBsG9qzdOm4d1MY6FEPVv3sH4fmGYYWO15AxdTc eIh7DzOWeb/mVK6yxuEbIC5gE7zR6SvY1U6nxBfIqPGCEqpq3jEoKxUrK/reljl3v8dS 2Crg== X-Gm-Message-State: ALKqPwdSJ3Xu1PyquOhoMNZwuXyoPtqbr4oyqVqKFFE//Kr048bEzDj4 B/gPKIZNO3pRn4l50/DA6VQ= X-Received: by 2002:a1c:3c3:: with SMTP id 186-v6mr1749624wmd.140.1526500440757; Wed, 16 May 2018 12:54:00 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id b66-v6sm5187449wma.48.2018.05.16.12.53.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 12:53:59 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 680D610C058D; Wed, 16 May 2018 21:53:58 +0200 (CEST) From: Mathieu Malaterre To: Srikar Dronamraju Cc: Mathieu Malaterre , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: [PATCH] sched/debug: Move print_rt_rq and print_dl_rq declarations to kernel/sched/sched.h Date: Wed, 16 May 2018 21:53:47 +0200 Message-Id: <20180516195348.30426-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 6b55c9654fcc ("sched/debug: Move print_cfs_rq() declaration to kernel/sched/sched.h"), ‘print_cfs_rq’ prototype was added to right next to prototypes for ‘print_cfs_stats’, ‘print_rt_stats’ and ‘print_dl_stats’. Update this previous commit and also move related prototypes: ‘print_rt_rq’ and ‘print_dl_rq’. Remove existing extern declarations now that they not needed anymore. Silence the following gcc warning, triggered at 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 --- 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 125703d9b25e..1356afd1eeb6 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); -- 2.11.0