Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3526182ima; Tue, 23 Oct 2018 07:19:28 -0700 (PDT) X-Google-Smtp-Source: AJdET5eL4/Mbl+i//o52NzicnFK/pb1jAk6oEMTPo6oGfKOi7KnJ1VZWY/6CJIGMjAbYDZVgaVd5 X-Received: by 2002:a62:1850:: with SMTP id 77-v6mr1329924pfy.105.1540304368352; Tue, 23 Oct 2018 07:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540304368; cv=none; d=google.com; s=arc-20160816; b=PVd4QnB5ahhTX+ScK2He9BIXeULILq6oNsE2Yz0kfGsvdLy174YFFHTrWPQueDlnbu z1nw2jAsLuRrLUs/7XOpcDGwgD45Q+liU0U745NF6b3UJaEFbfNtT9KDYa9idcy369Lo 0lfCt3FSzj48gBTQ9+qpmRGUmngp+vbQz0MBhcSniLk7Vw+/oKykq1XhFZEMZDmqNQ8z lDLlCmSCXnApmSynqzkNRZRpQtP5YvGUd328zRCmH5r8ghgpykldR5eQjfL0XgP3YP8T awFKPJQiDaFb3Uocvbfzypb0rx9zAAUDM74SEVpU835vjh3p3fXzJ7VvItoR4ROaC1rG a4qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=IB/YBY9KZRBEAuU7D5ixfalslHW62KdqKD84Loh4jU0=; b=jRG1cuxcto6my6J56cd2NnPsgn9ePZ8dYUUHp5bGr7Nji5akX6jjy/fEa/Oi9Xq9Yt iUgISk6ZOFpfWSczJ9f/x2ofcPCXGx9pD86H0fyNI/BV7mwGB/S5X8L0g3J7XF0OBAl5 N8mt0xcPoGPfY5B0cAhu7q289f6BLykgwjTiagYvc0TEIg6YFunUABYL/FTsgS4SeATW wffeIoU+oH9KmafiPQYYySpiSOsNlu3tyC6lA63ASHTfGYkTf8FT1uxdrglbDH4szvlI z1o/yapStVQV8ZcSJ2BrrMyZMhYtuXCSVcvep3EG22+28CIMNaufqz1lWbrYrGP1u9BR etOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si1412348pgl.200.2018.10.23.07.19.11; Tue, 23 Oct 2018 07:19:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728059AbeJWWmV (ORCPT + 99 others); Tue, 23 Oct 2018 18:42:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57704 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbeJWWmV (ORCPT ); Tue, 23 Oct 2018 18:42:21 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CE7CDB2CD; Tue, 23 Oct 2018 14:18:42 +0000 (UTC) Received: from llong.com (dhcp-17-8.bos.redhat.com [10.18.17.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 096AC76510; Tue, 23 Oct 2018 14:18:38 +0000 (UTC) From: Waiman Long To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Sai Praneeth , Waiman Long Subject: [PATCH] efi: Fix debugobjects warning on efi_rts_work Date: Tue, 23 Oct 2018 10:18:27 -0400 Message-Id: <1540304307-2806-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 23 Oct 2018 14:18:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Fixes: 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page fault handler") Signed-off-by: Waiman Long --- drivers/firmware/efi/runtime-wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/runtime-wrappers.c b/drivers/firmware/efi/runtime-wrappers.c index a19d845..8903b9c 100644 --- a/drivers/firmware/efi/runtime-wrappers.c +++ b/drivers/firmware/efi/runtime-wrappers.c @@ -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; \ -- 1.8.3.1