]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.41/efi-fix-debugobjects-warning-on-efi_rts_work.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.19.41 / efi-fix-debugobjects-warning-on-efi_rts_work.patch
CommitLineData
7be4ccde
SL
1From 41c0ae8d1aa7277db2de943cb81cda92e10659a1 Mon Sep 17 00:00:00 2001
2From: Waiman Long <longman@redhat.com>
3Date: Wed, 14 Nov 2018 09:55:40 -0800
4Subject: efi: Fix debugobjects warning on 'efi_rts_work'
5
6[ Upstream commit ef1491e791308317bb9851a0ad380c4a68b58d54 ]
7
8The following commit:
9
10 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page fault handler")
11
12converted 'efi_rts_work' from an auto variable to a global variable.
13However, when submitting the work, INIT_WORK_ONSTACK() was still used,
14causing the following complaint from debugobjects:
15
16 ODEBUG: object 00000000ed27b500 is NOT on stack 00000000c7d38760, but annotated.
17
18Change the macro to just INIT_WORK() to eliminate the warning.
19
20Signed-off-by: Waiman Long <longman@redhat.com>
21Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
22Acked-by: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
23Cc: Linus Torvalds <torvalds@linux-foundation.org>
24Cc: Peter Zijlstra <peterz@infradead.org>
25Cc: Thomas Gleixner <tglx@linutronix.de>
26Cc: linux-efi@vger.kernel.org
27Fixes: 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page fault handler")
28Link: http://lkml.kernel.org/r/20181114175544.12860-2-ard.biesheuvel@linaro.org
29Signed-off-by: Ingo Molnar <mingo@kernel.org>
30Signed-off-by: Sasha Levin <sashal@kernel.org>
31---
32 drivers/firmware/efi/runtime-wrappers.c | 2 +-
33 1 file changed, 1 insertion(+), 1 deletion(-)
34
35diff --git a/drivers/firmware/efi/runtime-wrappers.c b/drivers/firmware/efi/runtime-wrappers.c
36index b0aeffd4e269..1606abead22c 100644
37--- a/drivers/firmware/efi/runtime-wrappers.c
38+++ b/drivers/firmware/efi/runtime-wrappers.c
39@@ -95,7 +95,7 @@ struct efi_runtime_work {
40 efi_rts_work.status = EFI_ABORTED; \
41 \
42 init_completion(&efi_rts_work.efi_rts_comp); \
43- INIT_WORK_ONSTACK(&efi_rts_work.work, efi_call_rts); \
44+ INIT_WORK(&efi_rts_work.work, efi_call_rts); \
45 efi_rts_work.arg1 = _arg1; \
46 efi_rts_work.arg2 = _arg2; \
47 efi_rts_work.arg3 = _arg3; \
48--
492.20.1
50