From nobody Fri May 1 11:13:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32322C433EF for ; Fri, 27 May 2022 21:08:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351367AbiE0VIZ (ORCPT ); Fri, 27 May 2022 17:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235763AbiE0VIX (ORCPT ); Fri, 27 May 2022 17:08:23 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56F62A26E for ; Fri, 27 May 2022 14:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:References; bh=Z+4+95ohfAKCNl77j5bYLAiF3pRGTU9rwn1dtnYMDaU=; b=AcW+1q2V6NnC/XP6ZplzUSyc2L cQ22b1/HTqS9sxS2W9pS3Pi88cUJu9PYkr5NYp/NaLh4SICowv3nqibARuYClvGwLxWgvKkHSdQdR K71663Tqw5hRC01Ik8gIvxJPVw3ncltm8igWvjU+XqXCtev+OzOe5q5WYAUT9CaGdz+d6UqHE2mhY ko4zImYI9AO6zZpFb9l/uTN2gFvO1tTLI1N7kdEBv7DQ6wx0po7zvG9pnrVM5nBNIey2dPqAa+Rpm eYkmUrX4nr8jTtFhPbkxUiVXnHBpvFoyvIzW/ygHg3G2328DvtsMKiuUJgdeUA1tk/HiLQIX6TCl8 LUJpHLWg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuhBV-000yGC-8c; Fri, 27 May 2022 21:07:49 +0000 Date: Fri, 27 May 2022 14:07:49 -0700 From: Luis Chamberlain To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com Cc: vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, Baisong Zhong , kbuild-all@lists.01.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] sched/rt: fix compilation on i386 for umax_rt_runtime Message-ID: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202205280150.1w6rdhr4-lkp@intel.com> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On i386 you can end up with this compilation warning: kernel/sched/rt.c:9:18: warning: 'max_rt_runtime' defined but not used [-Wu= nused-const-variable=3D] This can happen when SYSCTL or RT_GROUP_SCHED is disabled. Fix this. Reported-by: kernel test robot Cc: Baisong Zhong Signed-off-by: Luis Chamberlain --- kernel/sched/rt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 8c9ed9664840..eb2a167be098 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -5,8 +5,10 @@ */ =20 int sched_rr_timeslice =3D RR_TIMESLICE; +#if defined(CONFIG_SYSCTL) || defined(CONFIG_RT_GROUP_SCHED) /* More than 4 hours if BW_SHIFT equals 20. */ static const u64 max_rt_runtime =3D MAX_BW; +#endif =20 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun= ); =20 --=20 2.35.1