From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF951CDE00C for ; Thu, 25 Jun 2026 23:42:12 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4gmb1t6CBSz2ySJ; Fri, 26 Jun 2026 09:42:10 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1782430930; cv=none; b=PSe/DuUqt3lTq3b9jY7ZqpD8dWF7MyZPsJmGP5XCoeFHjX74UeeemhpbAUtFmM8kexk9bo/WzoQxZ76NEfKgQEaNie266VHH6aoKOETeBq3zMB2+diAMGeYOFmRi8S9hGm8FhsyY5MCg8VpyINOQVoplYVPqA+YybabIZNgiKKpJ2q9Nm4wTl1I+MA4nkcFBhwcJFWAWwSXMx/oirO0UTl8EZKRhxkOABN/G0T/qh+vj/m2yR6vnLWF0rVz5omfsUElizPaYCtMOjQk1fkTGuJ+rpoYqGWcCQzjxCmPTt4dKAC7m+7znrZHN8feQIksJ2t43Bb+q70V1xmDTCApHnA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1782430930; c=relaxed/relaxed; bh=7rTeWGRC3qlYe3M/STi4OqC/ckIFBCcw0pmuKzcM+Ms=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T3vQDWLYI4/qrN8DuwcCYEA9pz8Pi1vKld/Ulc4xsO3J11/peWEo789m5CvOhX8nuCyl3rmsTP89Oxj5GglFvBtIe87CfpWhguNMQfViiPSOVH+VgqFKhqKaLMSbBcfNS90a8mpCvw8th9QVL2E7cM1jRAi6/3UMD/bdCshTw2h1gm6XCpUsba1hWl3b1CKL95vNOr7JxInGnFXmP8CZ81aHNzZzQvJWjxzK1ttD2w0MpAasHPzt7m7OV66bOQLBPqYg9RSv8tWaJCTfuio28y0W1hKJTezBED41om7bYpwMn3mssCCNxOSZWxcX3/3ShxrRnQG/bdC9Ohcfn9d5kg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ERWk9tSf; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=nathan@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ERWk9tSf; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=nathan@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4gmb1s4kWyz2xn3 for ; Fri, 26 Jun 2026 09:42:09 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A12BF40BF5; Thu, 25 Jun 2026 23:42:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DEF11F000E9; Thu, 25 Jun 2026 23:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782430926; bh=7rTeWGRC3qlYe3M/STi4OqC/ckIFBCcw0pmuKzcM+Ms=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ERWk9tSfkvUB3gpMoi+r8/npeOf+VTcK6LEcTQ+ydlZM4R04BnjE7NoxRlL2Y7oOp HwEILF3l/MEtXv4l1oapXtPAddR7mVIcAbFM+/NzAauaraVXtWjthqV/7Xr9jV0rmP iV/aTYKta1D6uPYRp+2hh9+GTlghECm8I505IDeByN96e5NV0eCKP7muVv5sc3JnQG O3K8AFvvCi6QK5nN6WRqQQQyuO2ODeP0WbSkJkHgCIFXVq1+HVSkMdVsvtq4txrVyP sezhtjuTBGj4tnd2fWtTX6Neebzlxe0449kNqUc5+ZQaEKrKtQDmJHaKYNRwLyfJcc gFiMuxnkCmkKg== Date: Thu, 25 Jun 2026 16:41:58 -0700 From: Nathan Chancellor To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Linus Torvalds , Sebastian Andrzej Siewior , John Ogness , Thomas Gleixner , Peter Zijlstra , Julia Lawall , Yury Norov , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-rdma@vger.kernel.org, linux-usb@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, kvm@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: Re: [PATCH v4 2/2] tracing: Remove trace_printk.h from kernel.h Message-ID: <20260625234158.GA261868@ax162> References: <20260625104007.041432666@kernel.org> <20260625104402.210473477@kernel.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260625104402.210473477@kernel.org> Hi Steve, On Thu, Jun 25, 2026 at 06:40:09AM -0400, Steven Rostedt wrote: > From: Steven Rostedt > > There have been complaints about trace_printk.h causing more build time > for being in kernel.h if it changes. There is also an effort to clean up > kernel.h to have it not include unneeded header files. Move trace_printk.h > out of kernel.h and place it in the headers and C files that use it. > > Link: https://lore.kernel.org/all/CAHk-=wikCBeVFjVXiY4o-oepdbjAoir5+TcAgtL12c4u1TpZLQ@mail.gmail.com/ > > Suggested-by: Yury Norov > Acked-by: Masami Hiramatsu (Google) > Signed-off-by: Steven Rostedt This patch breaks lib/test_context-analysis.c for me in several configurations: In file included from lib/test_context-analysis.c:9: In file included from include/linux/local_lock.h:5: include/linux/local_lock_internal.h:46:2: error: use of undeclared identifier '_THIS_IP_' 46 | lock_map_acquire(&l->dep_map); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/lockdep.h:541:69: note: expanded from macro 'lock_map_acquire' 541 | #define lock_map_acquire(l) lock_acquire_exclusive(l, 0, 0, NULL, _THIS_IP_) | ^~~~~~~~~ In file included from lib/test_context-analysis.c:9: In file included from include/linux/local_lock.h:5: include/linux/local_lock_internal.h:53:2: error: use of undeclared identifier '_THIS_IP_' 53 | lock_map_acquire_try(&l->dep_map); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/lockdep.h:542:73: note: expanded from macro 'lock_map_acquire_try' 542 | #define lock_map_acquire_try(l) lock_acquire_exclusive(l, 0, 1, NULL, _THIS_IP_) | ^~~~~~~~~ In file included from lib/test_context-analysis.c:9: In file included from include/linux/local_lock.h:5: include/linux/local_lock_internal.h:62:2: error: use of undeclared identifier '_THIS_IP_' 62 | lock_map_release(&l->dep_map); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/lockdep.h:545:47: note: expanded from macro 'lock_map_release' 545 | #define lock_map_release(l) lock_release(l, _THIS_IP_) | ^~~~~~~~~ 3 errors generated. The following diff resolves it for me, should I send it as a separate patch or do you want to just fold it in with a note? diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 621566345406..2301a701ffbb 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -10,6 +10,7 @@ #ifndef __LINUX_LOCKDEP_H #define __LINUX_LOCKDEP_H +#include #include #include #include -- Cheers, Nathan