Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp780222imu; Tue, 20 Nov 2018 06:54:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/UVREBptUwyxsZN2ukCWmXy221SlYeB+ptztLDGDWSGNbTNJoejwud1IBpR1UDpVa6kIu6C X-Received: by 2002:a63:ac46:: with SMTP id z6mr2199716pgn.162.1542725680280; Tue, 20 Nov 2018 06:54:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542725680; cv=none; d=google.com; s=arc-20160816; b=Aoy9cqxYHus7i4y2zu3r5bB1JxW0mMrTGYXHr22k8KqFWD/f2ep49G9jwjTcyqVhCy WFxqnqXcNfQyYU/fdeXE/aKuaA8xztj3FyxYKpEUppS/M8QNuHIjjWXeNfFGZ7AyAOV/ r7myjd/AfKNqTNufmRbq3CKIsbJ0aN67k3urbXLrj1CvSzApWd7qHsC7Fbyac2nUmjqQ GfZtmmpsvce6RkHSTaZeKfeeCm/N/Sxj51Y71dHv72jRnEb7ZkOT/k7lwnypBFvBIjlA S0e4vqjTXvoOi5BbMaIcAwAeLQ8tvVPWMRx7WNDIn8w/7p8t/+US4gQcHgonXhM30ry3 MT5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dWQpHLZ5YnzpRmUGkheKCfgduVL+JSLGnwYGK1wo7lg=; b=QplCzfTIzMNxLp/rzUUuHZY+ipB4AHVdnpfe2BHYKMO6Mq/b/NCeZY0yKbIrIty3SZ +2P33DYHpHcpiO0//BpmZLbMNQXVM1lHskq0RxNafympV4Bkjpl3295F6ISuHVRCWQX6 eMjzjjHxdmQa/UfWdjyHFnZviqc+mSTGwu2nUp/VuCwSfjKgwMe7fgiIIJZuK9koE4cU Rb48jmJlheftku/OOEPqCZQT8DVbRzEtgtXZOyEqOMSC+idzy2SELYV+P4FHhvB45gOi aFK43QZ4pbgX5LxbyXwpTeUUOc6VGH86a/XQVOiV1a/8IfJMnS4TUrQYl7w8Vjfp5iCv tzYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KaYcldL5; 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 c11si43559339pgj.255.2018.11.20.06.54.25; Tue, 20 Nov 2018 06:54:40 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KaYcldL5; 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 S1729547AbeKTWpM (ORCPT + 99 others); Tue, 20 Nov 2018 17:45:12 -0500 Received: from merlin.infradead.org ([205.233.59.134]:56706 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728884AbeKTWpM (ORCPT ); Tue, 20 Nov 2018 17:45:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dWQpHLZ5YnzpRmUGkheKCfgduVL+JSLGnwYGK1wo7lg=; b=KaYcldL5ufgM6fELZ12IMxd6LK kI+AYfI2P4edfcD6G0HsB808RX5Ayz96Z59Z1Y/U9a/GpyvQ0jtmKd7ywJcSuhrqgqfVkc7FdLwrY 2Jf+ChaKsDDIqJHmNWBHSv7ZLeTtI9YFUe/w9lz3zG+OfYcHhKa7cNaI+Q2Lz7ye6X28l2Vo4RkIx UBzvgdO/rYICFB7Rv9box9BETXONU4clCifE0kxjGMac1+zMP+o8Rtcv1qaxIraBrZLWjRUV8QDvN rCbMzbEZoggl9hU56SwWSVyGbteOSiykUIw1yQJOdP3I5RKP9ajFZcuso2gXdZoB79yxo00fO/ppe gWIWCiPA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP4wy-0007Pb-FX; Tue, 20 Nov 2018 12:16:16 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 05C3A2029F87F; Tue, 20 Nov 2018 13:16:15 +0100 (CET) Date: Tue, 20 Nov 2018 13:16:14 +0100 From: Peter Zijlstra To: Yi Wang Cc: mingo@redhat.com, bp@suse.de, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn Subject: Re: [PATCH] sched/rt: Fix -Wmissing-prototypes warnings Message-ID: <20181120121614.GJ2131@hirez.programming.kicks-ass.net> References: <1542070474-4025-1-git-send-email-wang.yi59@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1542070474-4025-1-git-send-email-wang.yi59@zte.com.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 08:54:34AM +0800, Yi Wang wrote: > We get a warning when building kernel with W=1: > kernel/sched/rt.c:626:6: warning: no previous prototype for ‘sched_rt_bandwidth_account’ [-Wmissing-prototypes] > bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) > > Add the missing declaration to fix this. > > Signed-off-by: Yi Wang > --- > kernel/sched/sched.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > index 618577f..f5f29fc 100644 > --- a/kernel/sched/sched.h > +++ b/kernel/sched/sched.h > @@ -442,6 +442,7 @@ extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, > > extern void free_rt_sched_group(struct task_group *tg); > extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent); > +extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq); > extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, > struct sched_rt_entity *rt_se, int cpu, > struct sched_rt_entity *parent); This would then also render the declaration in sched/deadline.c redundant. Or am I missing something?