Peter Zijlstra
18bae38a20
UPSTREAM: sched: Fix DEBUG && !SCHEDSTATS warn
...
commit 769fdf83df upstream.
When !SCHEDSTATS schedstat_enabled() is an unconditional 0 and the
whole block doesn't exist, however GCC figures the scoped variable
'stats' is unused and complains about it.
Upgrade the warning from -Wunused-variable to -Wunused-but-set-variable
by writing it in two statements. This fixes the build because the new
warning is in W=1.
Given that whole if(0) {} thing, I don't feel motivated to change
things overly much and quite strongly feel this is the compiler being
daft.
Fixes: cb3e971c435d ("sched: Make struct sched_statistics independent of fair sched class")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au >
Change-Id: I3b1f6cc605ae53a43f4a75a8d1a6cf2a947998ea
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
(cherry picked from commit 0a008c5098 )
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com >
2023-06-14 12:35:34 +00:00
..
2023-04-26 13:37:41 +00:00
2023-06-06 18:15:52 +00:00
2021-05-07 00:26:34 -07:00
2022-05-25 09:57:37 +02:00
2023-01-05 02:16:50 +00:00
2023-03-30 12:47:51 +02:00
2023-04-17 11:31:12 +00:00
2023-05-11 02:31:28 +00:00
2022-12-31 13:14:47 +01:00
2023-03-23 12:10:59 +00:00
2023-06-09 08:39:36 +00:00
2022-10-26 12:34:30 +02:00
2023-05-12 16:47:54 +00:00
2023-05-18 13:30:37 +00:00
2023-03-21 10:16:45 +00:00
2023-04-20 01:04:33 +00:00
2023-06-14 12:35:34 +00:00
2023-03-17 13:35:31 +00:00
2023-04-25 16:02:54 +00:00
2022-04-27 15:34:29 +00:00
2022-12-31 13:14:40 +01:00
2022-02-23 12:03:07 +01:00
2022-08-31 17:16:33 +02:00
2021-08-24 18:52:36 -04:00
2020-12-03 14:58:35 +01:00
2022-02-08 18:34:03 +01:00
2022-04-08 14:23:06 +02:00
2021-03-22 15:23:32 -04:00
2022-04-08 14:23:06 +02:00
2020-07-30 11:15:58 -07:00
2022-11-30 00:28:11 +00:00
2021-01-24 14:27:16 +01:00
2022-11-14 22:32:51 +00:00
2023-04-05 11:24:53 +02:00
2021-08-16 18:55:32 +02:00
2023-01-18 12:52:16 +00:00
2021-12-29 12:28:49 +01:00
2022-02-23 12:30:26 +01:00
2021-05-12 11:43:25 +02:00
2023-02-01 09:38:19 +00:00
2023-03-11 13:57:38 +01:00
2023-03-23 12:10:59 +00:00
2023-05-18 13:30:37 +00:00
2022-07-14 22:20:19 +00:00
2022-12-19 16:16:00 +00:00
2021-02-26 09:41:03 -08:00
2022-02-10 09:29:34 +00:00
2021-06-13 15:19:53 +02:00
2021-07-05 10:46:20 +02:00
2021-07-08 11:48:22 -07:00
2020-12-15 19:36:48 -08:00
2021-08-17 17:50:51 +02:00
2021-06-28 22:43:05 +02:00
2020-11-02 18:00:20 -08:00
2023-04-20 12:13:57 +02:00
2023-04-20 12:13:57 +02:00
2023-04-20 12:13:57 +02:00
2023-04-20 12:13:57 +02:00
2021-05-07 00:26:33 -07:00
2023-03-10 09:40:01 +01:00
2023-04-20 12:13:57 +02:00
2023-03-30 12:47:42 +02:00
2023-03-31 18:52:41 +00:00
2021-01-19 10:24:45 +01:00
2021-01-19 10:24:45 +01:00
2022-12-16 16:44:54 +00:00
2023-02-01 09:38:19 +00:00
2021-08-16 18:55:32 +02:00
2021-09-03 09:58:12 -07:00
2022-12-31 13:14:24 +01:00
2023-02-01 08:27:22 +01:00
2021-08-16 14:42:22 +02:00
2023-03-10 09:39:09 +01:00
2021-09-02 09:42:36 +02:00
2022-08-17 14:24:04 +02:00
2022-06-09 10:22:29 +02:00
2020-10-16 11:11:19 -07:00
2021-09-28 08:49:54 -07:00
2020-07-27 14:31:12 -04:00
2022-12-31 13:14:05 +01:00
2020-11-25 18:52:35 +01:00
2023-03-10 09:40:08 +01:00
2022-04-08 14:23:10 +02:00
2022-06-09 10:22:46 +02:00
2023-05-25 16:09:30 -07:00
2022-02-16 12:56:38 +01:00
2023-04-25 18:08:34 +08:00
2022-08-17 14:24:24 +02:00
2021-08-10 14:57:42 +02:00
2023-01-31 23:44:26 +00:00
2022-02-23 12:03:07 +01:00
2022-04-24 16:57:32 +02:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2021-11-09 00:42:10 +00:00
2022-08-31 17:16:33 +02:00
2023-04-26 13:37:41 +00:00
2021-06-23 16:41:24 -06:00
2023-02-01 09:38:19 +00:00
2021-04-30 11:20:42 -07:00
2020-11-16 08:08:54 -08:00
2021-08-10 10:48:07 -07:00
2021-09-14 16:16:54 +02:00
2022-01-27 11:05:35 +01:00
2022-02-23 12:03:20 +01:00
2022-07-19 03:54:51 +00:00
2021-05-09 13:07:03 -07:00
2022-03-08 19:12:42 +01:00
2023-05-18 13:30:37 +00:00
2021-07-03 11:41:14 -07:00
2020-08-19 14:13:20 +02:00
2023-03-17 08:48:59 +01:00
2022-09-24 10:01:09 +02:00
2021-08-17 07:49:10 -10:00
2023-04-25 01:58:41 +00:00