Arnd Bergmann
d94b93a910
ARM: cpuidle: Avoid orphan section warning
...
Since commit 83109d5d5f ("x86/build: Warn on orphan section placement"),
we get a warning for objects in orphan sections. The cpuidle implementation
for OMAP causes this when CONFIG_CPU_IDLE is disabled:
arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table'
arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table'
arm-linux-gnueabi-ld: warning: orphan section `__cpuidle_method_of_table' from `arch/arm/mach-omap2/pm33xx-core.o' being placed in section `__cpuidle_method_of_table'
Change the definition of CPUIDLE_METHOD_OF_DECLARE() to silently
drop the table and all code referenced from it when CONFIG_CPU_IDLE
is disabled.
Fixes: 06ee7a950b ("ARM: OMAP2+: pm33xx-core: Add cpuidle_ops for am335x/am437x")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Reviewed-by: Miguel Ojeda <ojeda@kernel.org >
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
Link: https://lore.kernel.org/r/20201230155506.1085689-1-arnd@kernel.org
2021-06-02 12:41:03 -07:00
..
2021-02-01 19:44:30 +00:00
2020-10-30 21:57:05 +01:00
2020-08-06 10:57:30 +02:00
2021-04-23 11:33:50 +02:00
2020-03-24 10:56:05 +00:00
2019-06-25 19:49:18 +02:00
2021-01-21 17:42:46 +00:00
2019-06-19 17:09:07 +02:00
2021-02-01 19:41:30 +00:00
2020-07-29 16:14:18 +02:00
2019-02-01 22:05:50 +00:00
2018-07-30 11:45:53 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2021-05-07 00:26:34 -07:00
2019-06-19 17:09:55 +02:00
2020-10-25 14:51:49 -07:00
2020-06-08 11:05:58 -07:00
2017-11-02 11:10:55 +01:00
2020-08-20 15:45:16 -04:00
2020-03-21 15:23:54 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-03-21 15:24:03 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-06-02 12:41:03 -07:00
2019-01-02 10:37:05 +00:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:36:37 +02:00
2017-11-02 11:10:55 +01:00
2020-06-30 11:59:48 +02:00
2020-12-08 10:15:52 +00:00
2020-09-25 06:15:32 +02:00
2020-10-06 07:07:05 +02:00
2020-10-06 07:07:05 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-10-10 22:23:19 +01:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:29:52 -07:00
2020-12-14 16:25:06 +01:00
2020-12-22 13:34:27 -08:00
2017-11-02 11:10:55 +01:00
2017-12-17 22:14:21 +00:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2020-12-22 13:34:27 -08:00
2020-05-12 19:34:52 +03:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:55 +02:00
2019-11-22 00:19:16 +00:00
2020-05-07 00:41:47 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2020-11-23 10:31:05 +01:00
2020-12-04 23:35:34 +01:00
2019-06-05 17:37:06 +02:00
2020-06-03 20:09:46 -07:00
2019-11-15 22:21:08 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-31 09:16:55 +01:00
2017-11-02 11:10:55 +01:00
2020-10-25 14:51:49 -07:00
2017-11-02 11:10:55 +01:00
2021-05-07 00:26:34 -07:00
2017-11-02 11:10:55 +01:00
2020-11-23 10:31:05 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-10-27 12:11:08 +00:00
2020-10-27 12:11:10 +00:00
2020-12-29 15:36:49 -08:00
2021-02-05 10:23:29 +00:00
2021-03-09 10:25:35 +00:00
2018-05-19 11:53:46 +01:00
2020-10-27 12:11:51 +00:00
2018-10-17 13:14:33 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-09 10:25:18 +00:00
2020-10-26 16:45:06 +01:00
2017-11-16 12:50:35 -08:00
2020-04-23 10:50:26 +09:00
2020-09-25 00:36:41 +09:00
2018-05-19 11:53:46 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-03-18 12:27:04 +01:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:39 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:55 +02:00
2020-04-10 15:36:21 -07:00
2021-03-11 16:17:52 +01:00
2017-11-02 11:10:55 +01:00
2019-10-27 21:14:40 +00:00
2020-07-30 13:01:04 -07:00
2019-06-19 17:09:55 +02:00
2020-10-27 12:11:10 +00:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2020-12-22 13:34:27 -08:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2021-04-30 11:20:39 -07:00
2019-06-19 17:09:55 +02:00
2020-06-09 09:39:14 -07:00
2021-04-30 11:20:39 -07:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:55 +02:00
2020-10-28 17:05:39 +01:00
2019-06-19 17:09:55 +02:00
2020-10-27 12:10:59 +00:00
2019-05-30 11:26:41 -07:00
2019-06-03 15:49:07 +02:00
2019-06-19 17:09:55 +02:00
2020-11-20 11:16:34 -08:00
2020-03-24 10:56:05 +00:00
2018-05-08 14:50:42 +02:00
2021-04-18 19:15:11 +01:00
2020-10-25 14:51:49 -07:00
2017-11-02 11:10:55 +01:00
2020-11-23 10:31:05 -06:00
2017-11-02 11:10:55 +01:00
2017-11-16 14:05:12 -08:00
2019-02-01 21:44:10 +00:00
2020-10-25 14:51:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-22 02:45:52 +01:00
2018-12-12 13:20:07 -08:00
2017-11-02 11:10:55 +01:00
2020-10-27 12:11:06 +00:00
2019-02-26 11:32:54 +00:00
2017-11-02 11:10:55 +01:00
2019-12-08 14:37:32 +01:00
2017-11-02 11:10:55 +01:00
2019-05-07 19:06:04 -07:00
2017-11-02 11:10:55 +01:00
2019-02-07 23:10:45 +01:00
2020-10-25 14:51:49 -07:00
2017-11-02 11:10:55 +01:00
2020-12-22 13:34:27 -08:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-10-13 18:38:31 -07:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2020-10-08 17:17:27 +02:00
2020-06-09 09:39:10 -07:00
2020-10-27 12:11:08 +00:00
2020-08-12 10:57:58 -07:00
2017-11-16 12:50:35 -08:00
2017-10-24 10:33:23 +01:00
2019-06-05 17:37:06 +02:00
2019-07-11 10:09:44 -07:00
2020-06-09 09:39:10 -07:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-02-01 21:44:19 +00:00
2019-11-15 22:21:12 +00:00
2018-03-24 14:27:49 +00:00
2020-04-23 10:50:26 +09:00
2020-07-21 16:33:39 +01:00
2020-07-21 16:33:39 +01:00
2017-11-02 11:10:55 +01:00
2020-03-24 10:56:05 +00:00
2019-12-10 10:12:55 +01:00
2020-09-01 10:03:18 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00