Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4753405imu; Mon, 12 Nov 2018 16:53:33 -0800 (PST) X-Google-Smtp-Source: AJdET5dozgq7GV+6XbLPjXH3NI99kaFDp1u/2g+8ZqUKu3uzsriB3euPTKHk4U2Ceoknhp306w5N X-Received: by 2002:a17:902:784c:: with SMTP id e12-v6mr2977041pln.185.1542070413678; Mon, 12 Nov 2018 16:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542070413; cv=none; d=google.com; s=arc-20160816; b=rNwF2fGKC3WBymrOrm0r7yG8RfMjGQpY18kSRjFAj9YA2nbFd8aRhUw8w9yCwv8cGY C0X6ox+VoETwQbCKJVqV/SaMmp1nnGdXDOTUmGc1eCZykPb/dQ+4eXx5N1SYWf1do3Iv l0Z0WCQFAc8nguoV1pzW+BQMSQnMuFSPyr0dPHn3e5fcRl4KojbpR4m/eQRG8amYjxrk ItuWfjYuGadECmgLlVY8blgxeU1wGY8UVwLcQkgPlqoZ/TWxVTrOJoGasU2fykI2ILEt vuZ9QclW4tdywjpZsc1PPm+u6F5GDqU8fc4K3f2R1p66coF6wE10ZYYW7QS8mwxjDhrh LkeQ== 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=kEXxbnf3D2vVPemwkQ8vcSUexfbaAiqpKEKbZza+KlA=; b=mPuDJagMjMmo6JZGsYek5VUMquxVkDUKAspwefXE4+R24Jp7sgxipd/EDFXMWm1RJo skaaXgq+UmcjWQw2wPz0MpYBxLGV6W9hHvAJKEs6hKtjETdrIomwbGYvWasZkh+1A1Da AU1stCP1wOk2fmUPEkSR4igxDKsfW41HtnWpdIISUgY7GMOJNcjnOgzsSAmJ7Ic9QhLs 1RDy+fw1TKrYPvwLxyzAefSdTx+JOPtaRt15cuWI52tU9mm+KoMXC9ymGKkLE1adOge9 emNvUgoyDeGceNRqWFAo85377UOuTYK1s4C/l73cLmP+zypKe+Qkse1D9nXjd1TXA3Qo rdwA== 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 j191si17634645pgd.249.2018.11.12.16.53.14; Mon, 12 Nov 2018 16:53:33 -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 S1730422AbeKMKsb convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Nov 2018 05:48:31 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:34046 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbeKMKsb (ORCPT ); Tue, 13 Nov 2018 05:48:31 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id DDFA9C5FBDA94CB10E39; Tue, 13 Nov 2018 08:52:50 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wAD0qlJI088772; Tue, 13 Nov 2018 08:52:47 +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 2018111308525782-10282412 ; Tue, 13 Nov 2018 08:52:57 +0800 From: Yi Wang To: mingo@redhat.com Cc: peterz@infradead.org, bp@suse.de, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, Yi Wang Subject: [PATCH] sched/rt: Fix -Wmissing-prototypes warnings Date: Tue, 13 Nov 2018 08:54:34 +0800 Message-Id: <1542070474-4025-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-13 08:52:57, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-13 08:52:43 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wAD0qlJI088772 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 1.8.3.1