Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1555925rdg; Sat, 12 Aug 2023 06:15:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHV0vS6xoddKvLe8yC3XOxp8+L4u9dN62nNc3wySNUHL7a408OYb1OG5gl6kTGZZiNhPlUC X-Received: by 2002:a17:907:78d3:b0:988:b61e:4219 with SMTP id kv19-20020a17090778d300b00988b61e4219mr5496217ejc.29.1691846155134; Sat, 12 Aug 2023 06:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691846155; cv=none; d=google.com; s=arc-20160816; b=gXKSM1be7w3YJ/PCPvVn4cmy5Oa2z+0THwvfZAcDin8sKf3KdzYl38VfBY5/yccd/L DDKy8URMkQqkmpaoWXp9je2KxOVDkPAlDKsK2SojuJMhAJSrmPnwZOAO/Kctp+HF4/9O 6hkL7xJbSYF5VUciQBlcHXGEOOsp/u+q2zOJFo9BWnSPGpB8U2GyepH9SyTc1eg1wvj9 BRUksjmm4H1y65WSnqn11vowKPTnLum+Dwkfc4Ri/Ztg40fiQrvSmfR7cLC2yydZ1WjL W2z7ZA3JTfpIx+RjsWigYpPqmxAmcfW6QU3ac+LWwKxVguxiT1CysLN0XGiwcCzaLqjs xwrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m8i236LCUF2xAoN+e9iN/rkjtV7bM3rEUuNhYYvTvOE=; fh=O5xfxx65mU6AKbcasG8mQsn3WNJ1dWICSxB098bAgVI=; b=EqRx56uUgBafDePvjG8nfUCl6f2bzS6YEsNPPMBnNRB/FoSbse2ChZZUiMb+Qmr+b+ 5AsS9XpYkahM0CzYGtHfk/P9G7RSYpMxhIjPK4CDcMQ1J4fLYX7V/Fv6WASwarI8gkme 5Sp8e3SUPtKNen5oAKjdkQafUF7cxR3XZewMlQ4crNTzx1ss1t/sKQbWXTlk2z37zOs4 ys2aU1+Z56ee6UbSFhjO8Sfc7w45en+KU5y0BBLzlYa2LHdexlWs4ux8+qBehy3vHqXd FMITeAMtfTtBTYHfSbAmBCkQqbRD6V3Jds+BfvghaRNKy0SWg4m03YamIurmEE5P5URt 59dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RyqJOmQn; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a170906115100b0099cd8eab16csi5038683eja.559.2023.08.12.06.15.20; Sat, 12 Aug 2023 06:15:55 -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=@linuxfoundation.org header.s=korg header.b=RyqJOmQn; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234276AbjHLLLS (ORCPT + 99 others); Sat, 12 Aug 2023 07:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbjHLLLS (ORCPT ); Sat, 12 Aug 2023 07:11:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918D412A; Sat, 12 Aug 2023 04:11:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 269C861113; Sat, 12 Aug 2023 11:11:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C68AC433C8; Sat, 12 Aug 2023 11:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691838680; bh=jaTzjZessMaVnDkeWmo2jtJy8GiyLFaOtT4f523mTLU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RyqJOmQnz78FgotzOAZmoyoBKkI+w7uCqhLOzxZeCzEPE+pwkzilHKwT+xv/ssVKa 4yvHT/2RvZjHN5TSNQtMMe1jUpeEb1tLX312qfn0ai61B6OR6DmDuGw6bieATqY4Cj 94dPYC+A3rM6WYujdh1ldyjUdl0RQJnzDqW3qpeA= Date: Sat, 12 Aug 2023 13:11:17 +0200 From: Greg Kroah-Hartman To: Helge Deller Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: Re: [PATCH] devtmpfs: Add missing lockdep annotation Message-ID: <2023081210-deputy-emboss-f348@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 On Fri, Aug 11, 2023 at 06:02:29PM +0200, Helge Deller wrote: > 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 > --- 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 = kthread_run(devtmpfsd, &err, "kdevtmpfs"); > if (!IS_ERR(thread)) { > wait_for_completion(&setup_done); What changed to required this now? What commit id does this fix? Why doesn't the declaration of DECLARE_COMPLETION() initialize this properly for us already? thanks, greg k-h