Josh Poimboeuf
adfc7aaa0d
entry: Fix noinstr warning in __enter_from_user_mode()
...
[ Upstream commit f87d28673b71b35b248231a2086f9404afbb7f28 ]
__enter_from_user_mode() is triggering noinstr warnings with
CONFIG_DEBUG_PREEMPT due to its call of preempt_count_add() via
ct_state().
The preemption disable isn't needed as interrupts are already disabled.
And the context_tracking_enabled() check in ct_state() also isn't needed
as that's already being done by the CT_WARN_ON().
Just use __ct_state() instead.
Fixes the following warnings:
vmlinux.o: warning: objtool: enter_from_user_mode+0xba: call to preempt_count_add() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0xf9: call to preempt_count_add() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0xc7: call to preempt_count_add() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0xba: call to preempt_count_add() leaves .noinstr.text section
Fixes: 171476775d ("context_tracking: Convert state to atomic_t")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Link: https://lore.kernel.org/r/d8955fa6d68dc955dda19baf13ae014ae27926f5.1677369694.git.jpoimboe@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-03-30 12:49:13 +02:00
..
2022-11-24 16:01:04 +01:00
2023-02-22 12:59:45 +01:00
2022-10-16 11:08:19 -07:00
2023-01-12 12:02:47 +01:00
2022-12-31 13:32:41 +01:00
2023-03-11 13:55:28 +01:00
2023-03-10 09:33:08 +01:00
2023-02-14 19:11:47 +01:00
2022-11-18 10:39:22 +01:00
2023-01-18 11:58:24 +01:00
2023-01-12 12:02:26 +01:00
2022-10-10 09:27:46 -07:00
2023-02-01 08:34:33 +01:00
2022-12-31 13:33:04 +01:00
2022-10-12 11:00:22 -07:00
2023-01-24 07:24:40 +01:00
2022-10-26 17:38:46 -07:00
2023-01-12 12:01:56 +01:00
2023-03-30 12:49:05 +02:00
2022-10-10 13:28:06 -07:00
2023-02-01 08:34:46 +01:00
2022-10-12 11:00:22 -07:00
2023-03-22 13:33:46 +01:00
2023-03-11 11:03:45 +01:00
2023-03-11 13:55:32 +01:00
2023-01-07 11:11:41 +01:00
2023-03-10 09:33:06 +01:00
2022-12-31 13:33:02 +01:00
2022-10-10 17:53:04 -07:00
2022-10-14 13:03:00 -07:00
2022-12-09 18:41:17 -08:00
2022-10-14 13:44:44 -07:00
2022-10-10 10:21:22 -07:00
2022-10-10 17:53:04 -07:00
2022-10-10 17:53:04 -07:00
2023-03-30 12:49:13 +02:00
2023-03-30 12:49:13 +02:00
2022-10-17 09:51:29 -04:00
2022-10-16 10:45:17 -07:00
2022-10-12 18:51:49 -07:00
2022-10-10 19:45:17 -07:00
2022-12-31 13:31:58 +01:00
2023-01-07 11:11:40 +01:00
2023-03-10 09:33:37 +01:00
2023-02-09 11:28:17 +01:00
2023-01-18 11:58:12 +01:00
2022-10-11 18:51:11 -07:00
2023-01-04 11:28:48 +01:00
2022-11-22 18:50:44 -08:00
2023-03-22 13:34:04 +01:00
2022-12-31 13:32:31 +01:00
2023-01-07 11:11:59 +01:00
2023-03-03 11:52:25 +01:00
2022-11-23 10:31:13 -08:00
2022-10-19 20:54:43 -07:00
2023-03-10 09:33:37 +01:00
2022-11-30 14:49:40 -08:00
2023-03-17 08:50:17 +01:00
2023-02-09 11:28:23 +01:00
2022-12-31 13:32:33 +01:00
2023-02-22 12:59:49 +01:00
2022-12-31 13:32:56 +01:00
2022-12-31 13:32:01 +01:00
2023-03-10 09:34:15 +01:00
2022-10-12 11:00:22 -07:00
2023-03-22 13:33:57 +01:00
2022-10-12 16:30:56 -06:00
2022-11-17 12:33:33 -07:00
2022-10-21 10:49:32 +02:00
2022-10-10 13:28:06 -07:00
2023-03-10 09:32:51 +01:00
2022-10-28 13:37:23 -07:00
2023-03-10 09:33:29 +01:00
2023-03-10 09:34:13 +01:00
2022-11-17 10:50:07 -05:00
2023-03-10 09:34:20 +01:00
2022-11-30 14:49:42 -08:00
2022-11-08 15:57:22 -08:00
2023-01-07 11:12:02 +01:00
2023-02-09 11:28:21 +01:00
2022-10-12 18:51:49 -07:00
2023-03-17 08:50:19 +01:00
2022-10-12 18:51:49 -07:00
2023-02-22 12:59:54 +01:00
2022-10-10 17:53:04 -07:00
2022-10-22 08:42:58 -06:00
2023-03-22 13:33:46 +01:00
2023-03-11 13:55:24 +01:00
2023-03-10 09:33:24 +01:00
2022-10-11 17:42:55 -06:00
2023-02-25 11:25:41 +01:00
2023-03-30 12:49:09 +02:00
2023-01-04 11:28:52 +01:00
2023-02-09 11:28:24 +01:00
2023-03-30 12:49:05 +02:00
2022-10-25 14:57:42 -07:00
2022-10-10 17:53:04 -07:00
2023-01-24 07:24:41 +01:00
2023-03-17 08:50:31 +01:00
2023-03-22 13:33:45 +01:00
2022-10-17 16:32:05 +02:00
2022-11-30 14:49:41 -08:00
2022-10-15 11:51:51 +01:00
2023-03-10 09:33:46 +01:00
2023-01-07 11:11:39 +01:00
2022-12-31 13:32:09 +01:00
2023-02-25 11:25:39 +01:00
2023-02-25 11:25:39 +01:00
2023-03-10 09:33:48 +01:00
2022-11-16 17:13:04 -05:00
2023-03-10 09:34:25 +01:00
2023-03-10 09:32:42 +01:00
2022-10-14 12:28:43 -07:00
2022-10-09 14:05:15 -07:00
2023-03-22 13:33:54 +01:00
2023-02-22 12:59:46 +01:00
2022-10-12 16:30:34 -06:00
2022-12-31 13:32:20 +01:00
2022-10-15 21:42:05 +02:00
2022-11-04 14:57:21 +01:00
2023-03-30 12:49:05 +02:00
2022-10-10 09:10:28 -07:00
2022-12-09 18:41:16 -08:00
2023-02-01 08:34:26 +01:00
2022-12-31 13:31:56 +01:00
2023-01-18 11:58:10 +01:00
2023-02-14 19:11:54 +01:00
2022-11-16 21:52:05 -05:00
2023-03-22 13:33:59 +01:00
2023-03-10 09:33:34 +01:00
2023-03-10 09:33:52 +01:00
2023-02-09 11:28:04 +01:00
2023-01-24 07:24:34 +01:00
2022-10-28 13:37:22 -07:00
2023-02-09 11:28:01 +01:00
2022-10-23 12:01:01 -07:00
2022-11-10 12:03:36 -07:00
2023-03-10 09:34:34 +01:00