Skip to content

Commit 38dc334

Browse files
arndbingomolnar
authored andcommitted
sched: Fix warning in kernel/sched/fair.c
a4c96ae "sched: Unthrottle rt runqueues in __disable_runtime()" turned the unthrottle_offline_cfs_rqs function into a static symbol, which now triggers a warning about it being potentially unused: kernel/sched/fair.c:2055:13: warning: 'unthrottle_offline_cfs_rqs' defined but not used [-Wunused-function] Marking it __maybe_unused shuts up the gcc warning and lets the compiler safely drop the function body when it's not being used. To reproduce, build the ARM bcm2835_defconfig. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Peter Boonstoppel <pboonstoppel@nvidia.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Turner <pjt@google.com> Cc: linux-arm-kernel@list.infradead.org Link: http://lkml.kernel.org/r/1359123276-15833-6-git-send-email-arnd@arndb.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent aa7f673 commit 38dc334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/fair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ static void destroy_cfs_bandwidth(struct cfs_bandwidth *cfs_b)
26632663
hrtimer_cancel(&cfs_b->slack_timer);
26642664
}
26652665

2666-
static void unthrottle_offline_cfs_rqs(struct rq *rq)
2666+
static void __maybe_unused unthrottle_offline_cfs_rqs(struct rq *rq)
26672667
{
26682668
struct cfs_rq *cfs_rq;
26692669

0 commit comments

Comments
 (0)