efi: Fix debugobjects warning on efi_rts_work
PATCH 1/1 efi: Fix debugobjects warning on efi_rts_work
The commit 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page fault handler") converted efi_rts_work from an auto variable to a global variable. However, when submitting the work, INIT_WORK_ONSTACK() was still used causing the following complaint from debugobjects:
ODEBUG: object 00000000ed27b500 is NOT on stack 00000000c7d38760, but annotated.
Change the macro to just INIT_WORK() to eliminate the warning.
--- drivers/firmware/efi/runtime-wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/efi/runtime-wrappers.c +1 -1
@@ -67,7 +67,7 @@ } \ \init_completion (&efi_rts_work.efi_rts_comp); \ -INIT_WORK_ONSTACK (&efi_rts_work.work, efi_call_rts); \ +INIT_WORK (&efi_rts_work.work, efi_call_rts); \ efi_rts_work.arg1 = _arg1; \ efi_rts_work.arg2 = _arg2; \ efi_rts_work.arg3 = _arg3; \
Signature · 1 line
1.8.3.1
Quoted 16 lines
-----Original Message-----
From: Waiman Long [mailto:[email protected]]
Sent: Tuesday, October 23, 2018 7:18 AM
To: Ard Biesheuvel <[email protected]>
Cc: [email protected]; [email protected]; Prakhya, Sai Praneeth <[email protected]>; Waiman Long <[email protected]>
Subject: [PATCH] efi: Fix debugobjects warning onefi_rts_workThe commit
9dbbedaa6171("efi: Makeefi_rts_workaccessible to efi page fault handler") convertedefi_rts_workfrom an auto variable to a global variable. However, when submitting the work,INIT_WORK_ONSTACK()was still used causing the following complaint from debugobjects:
Quoted 7 lines
ODEBUG: object
00000000ed27b500is NOT on stack00000000c7d38760, but annotated.Change the macro to just
INIT_WORK()to eliminate the warning.Fixes 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page faulthandler")
Thanks for fixing this :)
Looks good to me.
Regards,
Sai
Quoted 21 lines · Sai Praneeth
Quoted 21 lines
-----Original Message-----
From: Waiman Long [mailto:[email protected]]
Sent: Tuesday, October 23, 2018 7:18 AM
To: Ard Biesheuvel <[email protected]>
Cc: [email protected]; [email protected]; Prakhya, Sai Praneeth <[email protected]>; Waiman Long <[email protected]>
Subject: [PATCH] efi: Fix debugobjects warning onefi_rts_workThe commit
9dbbedaa6171("efi: Makeefi_rts_workaccessible to efi page fault handler") convertedefi_rts_workfrom an auto variable to a global variable. However, when submitting the work,INIT_WORK_ONSTACK()was still used causing the following complaint from debugobjects:ODEBUG: object
00000000ed27b500is NOT on stack00000000c7d38760, but annotated.Change the macro to just
INIT_WORK()to eliminate the warning.
Quoted 8 lines
Quoted 2 lines
Fixes 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page faulthandler")
Thanks for fixing this :)
Looks good to me.Regards,
Sai
Thanks
Queued in efi/urgent (with Sai's ack)