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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 1E0EFD116F3 for ; Mon, 1 Dec 2025 15:37:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A69510E405; Mon, 1 Dec 2025 15:37:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nONQSmY5"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 75DF710E2C0; Mon, 1 Dec 2025 15:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1764603459; x=1796139459; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MeU4jNo4ernEmKrA7RaGnmNcq5s8KiPFvWMXT/71V+g=; b=nONQSmY5ZPZA93vDo11oGgIkT4hjPcZ3imkHh7+AZWr91OSJuKz7aDMe i92BdW11gD4tQwtpMxQTAWjkANWaJwRSwLYrBB9y07X25ZjtbvA+vN+40 Gd/yU/4J9a51KjjhCztyDzEgnnLe/MIU3TWbJdWGcJHnZQb3WKwuSOGB6 JkdYVYgS0vfRkBis5SbU1P8bw1Pxpc4f6CKYn45vlUnFhQfVnGcDK51i8 cq5TigbypCOC2683tQjfetBTJMC3GCZlTyq2mIAmrrhx6RMQgWSnen4xH FXSMJFZTRHokDDGZRUXGEZpn28781jmxql0G9o3+/LKXXsCsQCP6RY9QE Q==; X-CSE-ConnectionGUID: 5kFzc2HHTwGBmNPRNPDKUg== X-CSE-MsgGUID: uE/eUVqASWqQYVaQ/n+hag== X-IronPort-AV: E=McAfee;i="6800,10657,11629"; a="76865947" X-IronPort-AV: E=Sophos;i="6.20,241,1758610800"; d="scan'208";a="76865947" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2025 07:37:38 -0800 X-CSE-ConnectionGUID: bwEh+8eUQO2uePvE/vXKxw== X-CSE-MsgGUID: I7ELKOFwQYmhEDN2bjD6bA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,241,1758610800"; d="scan'208";a="193225939" Received: from rvuia-mobl.ger.corp.intel.com (HELO localhost) ([10.245.244.4]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2025 07:37:33 -0800 Date: Mon, 1 Dec 2025 17:37:31 +0200 From: Andy Shevchenko To: david laight Cc: Yury Norov , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Randy Dunlap , Ingo Molnar , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Petr Pavlu , Daniel Gomez , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Andrew Morton , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] tracing: move tracing declarations from kernel.h to a dedicated header Message-ID: References: <20251129195304.204082-1-yury.norov@gmail.com> <20251129195304.204082-4-yury.norov@gmail.com> <20251130230925.376b5377@pumpkin> <20251201101658.0b5ab68e@pumpkin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251201101658.0b5ab68e@pumpkin> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Mon, Dec 01, 2025 at 10:16:58AM +0000, david laight wrote: > On Mon, 1 Dec 2025 04:50:42 +0200 > Andy Shevchenko wrote: > > On Sun, Nov 30, 2025 at 11:09:25PM +0000, david laight wrote: > > > On Sun, 30 Nov 2025 21:44:46 +0200 > > > Andy Shevchenko wrote: ... > > kernel.h elimination (in the form it exists right now) is very fruitful. > > However, you may help with the (say) ioctl.h or whatever you consider > > really fruitful, we all will thank you (no jokes). > > > > This is the first #include path for ioctl.h > > In file included from ../include/asm-generic/ioctl.h:5, > from ./arch/x86/include/generated/uapi/asm/ioctl.h:1, > from ../include/uapi/linux/ioctl.h:5, > from ../include/uapi/linux/random.h:12, > from ../include/linux/random.h:10, > from ../include/linux/nodemask.h:94, > from ../include/linux/numa.h:6, > from ../include/linux/cpumask.h:17, > from ../arch/x86/include/asm/paravirt.h:21, > from ../arch/x86/include/asm/irqflags.h:102, > from ../include/linux/irqflags.h:18, > from ../include/linux/spinlock.h:59, > from ../include/linux/swait.h:7, > from ../include/linux/completion.h:12, > from ../include/linux/crypto.h:15, > from ../arch/x86/kernel/asm-offsets.c:9: > > Get past that and sched.h => processor.h => cpuid/api.h also > gets you to paravirt.h. > I suspect a lot of headers get pulled in like that. And several headers like ioctl.h that is "pull half of everything". device.h, for example. So, you can start untangling them piece by piece. Not sure how [1] is actual right now, but I believe plenty of those can still be used. [1]: https://lwn.net/ml/linux-kernel/YdIfz+LMewetSaEB@gmail.com/ -- With Best Regards, Andy Shevchenko