Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp379683pxv; Thu, 22 Jul 2021 02:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvodEc2d4QV6yaraqMU3zUl6EN484xP6M4s0yFSjtCf34VECihbsbPkaZuMOraVzcGsmkk X-Received: by 2002:a17:906:1b41:: with SMTP id p1mr42579788ejg.486.1626945927079; Thu, 22 Jul 2021 02:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626945927; cv=none; d=google.com; s=arc-20160816; b=Qjvyfz7z+O7qMzCwQvX0rB7QfqRE/EnY5z2tchS/W4xnoALQuU0SuWTGRwJkdilnZ0 m2MaWIH3U8d9cjlVUM0CZ/ot+CD67T6zUVKirGF2P2T8G9hWnSEOvTxMC2A1OMHr4RD0 XYqnCb8irpRamQwxPjbhfrpOiOZswr85+OvDq6C5439CXFiiTD1P8ILwgNF2/1s0xJjX MlZA43D0ryFQkYhyuwfCbn509XODETCZqsqleRHdTXr31GtGDC5eS/Otq8OofW9Vlw61 JAu0kWvXkS99qdL+hlkgeEMOpp8hv/nz0W6lj+wthtqubDHfTdZAsnhJEZY0dR1a3PJf czMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wVV1NKQntPKSAXSmSaAxE4Ah/CdiL8B+h1eN+sjS5is=; b=B5OHLlKdUOcg8wByn7cvPix2ADkS6L4xa7u9NBPGWeuloWMUU0FmBOktqIthC1Ivjg tQ+WKexB4iJuG5n8bgcx5922ZFmaOinjy9hfynrFKkL2O02eZ9pmRdrIB8M6W/ZaMcFs HyoUUyhqjKh++63RO5J5Zq17ck9EOZNjCvyX71ZpnnzgQB4q0OfQUkDsIuO/pjGg7JWv uL0P7Y1HJ0IeTbAqSzpulqZGRVTQR+ea3PVSOU7F6XDgcVNgvv0bftLpVC5MUmgTl5EI Y8RgCifJZxNF/Kb+Jkzc7VmWIG0vyqynv46mYG/QTFSQNr3nixkjEVrXlnLCnH0M2V65 8Jbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=b5IGVdj0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si30446738ejk.477.2021.07.22.02.25.03; Thu, 22 Jul 2021 02:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=b5IGVdj0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231280AbhGVIks (ORCPT + 99 others); Thu, 22 Jul 2021 04:40:48 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:38706 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbhGVIin (ORCPT ); Thu, 22 Jul 2021 04:38:43 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5DED81FEF8; Thu, 22 Jul 2021 09:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1626945558; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wVV1NKQntPKSAXSmSaAxE4Ah/CdiL8B+h1eN+sjS5is=; b=b5IGVdj0o0o3ZgqB7IKc1pzH0l/qkGcPh8eya4gUuqptwL1mrR7XgLvAAj6Poq+7r1UxMS kXYVWCyYHAFehGHjWly6du60lhQ70F4+//lEctXmuixD269nIGvk7a3QZldsuKZ4Ur0FdZ 3TCiCzx1kv24vG2SfM7JhElTXTv2G8k= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4393D13DA5; Thu, 22 Jul 2021 09:19:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id RknLDxY4+WCfewAAMHmgww (envelope-from ); Thu, 22 Jul 2021 09:19:18 +0000 From: Anthony Iliopoulos To: Christoph Hellwig , Marek Szyprowski , Robin Murphy Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] dma-debug: fix debugfs initialization order Date: Thu, 22 Jul 2021 11:18:18 +0200 Message-Id: <20210722091818.13434-1-ailiop@suse.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to link order, dma_debug_init is called before debugfs has a chance to initialize (via debugfs_init which also happens in the core initcall stage), so the directories for dma-debug are never created. Move the dma_debug_init initcall from core to postcore stage so that debugfs will already be initialized by the time this is called, making it oblivious to link-ordering. Fixes: 15b28bbcd567 ("dma-debug: move initialization to common code") Signed-off-by: Anthony Iliopoulos --- kernel/dma/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 14de1271463f..49d80ef7f995 100644 --- a/kernel/dma/debug.c +++ b/kernel/dma/debug.c @@ -915,7 +915,7 @@ static int dma_debug_init(void) pr_info("debugging enabled by kernel config\n"); return 0; } -core_initcall(dma_debug_init); +postcore_initcall(dma_debug_init); static __init int dma_debug_cmdline(char *str) { -- 2.32.0