Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1091940rdg; Fri, 11 Aug 2023 09:24:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaiCBtsrlae1qg+av6TcNP7CA6ChhpQJhRKKLZ5gtcWUiqMHlodEustb7gCGLLwdI3+FS8 X-Received: by 2002:a54:4890:0:b0:3a4:1b66:5494 with SMTP id r16-20020a544890000000b003a41b665494mr2525421oic.44.1691771085525; Fri, 11 Aug 2023 09:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691771085; cv=none; d=google.com; s=arc-20160816; b=X4fPOJQ/PHeQIJg3T0qiIfO6aKFL4uQpzhM+1tf30YIcGq/kyN5hDVkUIfRUixICBI 3eRLhFEPs+t7iegndZSDqWaBSnyKoEIxoI8BJ1KcJ0eKWuulkgb/azk8jIZLcDqP/kJY P0vn9ql39LLB6P0x/Lfj06Jas/6G1sEw3rShtmbv7vy9qfw970e013p32/ixI2V6Fo7w DWEJJgT3eF25AlVvVZSWBjQKkXhIg/Xttcdzb9SMru0hm3Wc/WhQOkgLbP5MdOMO3wdp 7AF2GVLnuqENaZbCA+D+I9jObveE2PbZLPeMCuyZAIRstY0/xJ2s4C8JG/yeiax3qaZn ce5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=pS3E/kRtvQB1ZDJrBg7FXOnme+PLTHl01x31MRYbFkU=; fh=5Yh9Rbto1AF7N2HuJtzqtCURYQsEHLJUFeVAQb32AdA=; b=SBD1cD/b9yiTGhf6dLLKdvreINl08awWt/JwB7Y66PMarup9Rn8MbJ6uUiB/bujzUv bqNAlkQD41Kk+EsF7+annBiaBpcD5coH3QyTyqyDIWzYMFM5Uyj+ne7KDVbEJmkahboy hcQpEkx/yahWdQZ+++1oDKT++nllg8qMSXA/BX+glw3FBKvo0GdHGNrtcNnDeFQGlFH8 pZzhJJ+M7UucPTt3AhqlNHOatofDLYJpDoe03ZWboQDHXZY75lb70LWwb1wKTq1/y1K1 t6/hRCmJy44Fmk1zTRLpokhUOqDf8v7HN3B+HKYB6WShqjZxvu+HZDYAXEEIu7cBmzAk Axpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=gurEsYiC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i195-20020a636dcc000000b005657bc01a38si1101335pgc.230.2023.08.11.09.24.33; Fri, 11 Aug 2023 09:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=gurEsYiC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbjHKQCj (ORCPT + 99 others); Fri, 11 Aug 2023 12:02:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjHKQCi (ORCPT ); Fri, 11 Aug 2023 12:02:38 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0C2E26A0; Fri, 11 Aug 2023 09:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1691769750; x=1692374550; i=deller@gmx.de; bh=iqnZU8mU7l4QzSUyGuAE8+gkYIPMNUxpXam1GvezFL0=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=gurEsYiCx5h6JS7/3E7TPINnChnbpJXgenK2gid4u1fOoY03aXbqBS87XMcUMvTfvgDtklY P7l3ZBhcWjXPZSeBXOfLLsnyvDae63pVkMSSLBI43bC655NoV+7UHypumTm7PXyI7urtAl9Ho pGL04kP3y7XegtUkLyVyYWPragvEvAFodzTyc6kgvzVmPw3PsR4hjH5MR2GmC34M07MPCEFEu MwdOdUsZYEkCQFmjXUme+r2KxJsX1PRN+JJKzWSlgcOyhcrZ1IjSIj10UKXCnEU7UpYPWszep s/Hkj6oZMe0xaArxeq3gTQjqRRgCphcX4zi4lREbRKrAyYuQex5A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from p100 ([94.134.154.87]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MtwUw-1perNa3bQ4-00uLvy; Fri, 11 Aug 2023 18:02:30 +0200 Date: Fri, 11 Aug 2023 18:02:29 +0200 From: Helge Deller To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH] devtmpfs: Add missing lockdep annotation Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Provags-ID: V03:K1:5h8fVYMFGB3PYIxsCO6QS49v1wEkt43agtMG/34iq//pZ9V5LAb YkF0bhNu1iaP+ZrhLiiYwU0uwHPhPuhkR+J+KERMja230XstP/5Eaz4rguFxCD8fkur+KHe onAWIFvnQYGX0CmvhIjx1hLHh78WLKWtExr+sQilpTqGnSapM4TrgWyWTvfiQ6CgOYj5IM9 M7UCHO2bJlB6p9/JpNPaw== UI-OutboundReport: notjunk:1;M01:P0:Wh+Orez885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IM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the lockdep annotation to the setup_done completer to avoid this kernel warning: Backtrace: [<000000004030bcd0>] show_stack+0x74/0xb0 [<000000004146c63c>] dump_stack_lvl+0x104/0x180 [<000000004146c6ec>] dump_stack+0x34/0x48 [<000000004040e5b4>] register_lock_class+0xd24/0xd30 [<000000004040c21c>] __lock_acquire.isra.0+0xb4/0xac8 [<000000004040cd60>] lock_acquire+0x130/0x298 [<000000004147095c>] _raw_spin_lock_irq+0x60/0xb8 [<0000000041474a4c>] wait_for_completion+0xa0/0x2d0 [<000000004015d9f4>] devtmpfs_init+0x1e0/0x2b8 [<000000004015d0e4>] driver_init+0x68/0x1b8 [<0000000040102b68>] kernel_init_freeable+0x4ac/0x7f0 [<000000004146df68>] kernel_init+0x64/0x3a8 [<0000000040302020>] ret_from_kernel_thread+0x20/0x28 Signed-off-by: Helge Deller diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index b848764ef018..f98d58b0225c 100644 =2D-- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -462,6 +462,7 @@ int __init devtmpfs_init(void) return err; } + init_completion(&setup_done); thread =3D kthread_run(devtmpfsd, &err, "kdevtmpfs"); if (!IS_ERR(thread)) { wait_for_completion(&setup_done);