From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f43.google.com (mail-yx1-f43.google.com [74.125.224.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29A572F90CC for ; Tue, 2 Dec 2025 21:18:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764710314; cv=none; b=MZ3GW+iNuIWyaRN9gHunUomJPzllQ0xhAhOKxbXESBIVkVfShG7ShDeuN2gRILf54ZMPEVOc2ODcAY5QzjWXuisiEnkfRINpuygMoeYsX9C5j4ylHh+tPNvSG3RQgGEJyuCCWA0hNHouhSWR1xHj0TIgcvqX1VBdFUmqqJaTIpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764710314; c=relaxed/simple; bh=TxpGRGw/pVRDHTZum8aN1QNo6n/+VR1tW4e6RQDKvGs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Aodi+Uw8HzQ++USfo7YZ8mwA+UeukWlYVkmZituhTocIu0nffgr6XR3euVv6rwfsAQdpCRlFcyHVgViAhfzyGRporNh73TFg+mZNFam9t0O15c9cGE/xRnbsBn7/WCOCuFvNUvfYtu7sX1HuXS9bMLJShLNE3c9BPOlwTMzb3oI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GaxTiE6R; arc=none smtp.client-ip=74.125.224.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GaxTiE6R" Received: by mail-yx1-f43.google.com with SMTP id 956f58d0204a3-6432842cafdso5468411d50.2 for ; Tue, 02 Dec 2025 13:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764710310; x=1765315110; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FYhGqDRGCK+cJn0UnOIQPro7GrvnzPHTnrrQsLBmDCo=; b=GaxTiE6R6LfqBTW+a8wBQm98OMcMnEZWZBOJDunJdO7eJ0OwezQO2qKKJvw8HceFU6 Cub7mz74pyHrH5ywafZLUd1n7ls0Z8vk56Vk2uqoGue1UJ6XbAseR4HKMgZaEIrQH8Qt 6Eapjil7ZWU1f4soLbJp/bTFpXGEJ9x5Qyg8B2xz27MnXETwuVO/KzX41BtKP5DvTXiK F+uGavL0vmH+cAJH8i7d0CwVE8QzCiNwD4INNpIzjzsTwBVq3hXOrIqVqnvEIuHnrVpr rHGY6/64UnoQsl6AvBeA8y8c/MVZIVfJxwUAJXJdU60hxjT21ZGcBAqxAqm4mr3I6Xkw 3udw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764710310; x=1765315110; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FYhGqDRGCK+cJn0UnOIQPro7GrvnzPHTnrrQsLBmDCo=; b=vSBAMYdrllDhE2M3scKy78bR41csLRwPslejSZWuMPTRLIsQHPVRz+S3u+OlKBTPNV VqcmiOmMiBQZ9pLLPkR8+LyxPOxBj40q12W0FzYbXw/AaAg5TCoiQwnqXnlWKQLf9Dsz SjGi94RORQB1xsEUfs+a7vp7fPbvzCet1FhhLTtmnQn7PVPnH95erWFFafRPH/kf1hfe TUzGBh6lbexBjxdXxZl7nqwsDkH5bG0916h8bOEzwlbkQY71/bhM2Mv48bdnNrrxBA+7 tbBfao5uatGGzwgUodxm64Tv7KfcGMkPp/RKpxQkBd4kuWCoEw5UB0KX8cUy81p4SD2K GRyw== X-Forwarded-Encrypted: i=1; AJvYcCWGJW3GxYVrMep0fgbH04r3m08ppD+74XgKGtjTf7HLPvqKI9/VMnUJ2YD6p2bebXUsitvXoG3bUaxsUJo=@vger.kernel.org X-Gm-Message-State: AOJu0YxoTKS0FaoJ3J909DbHx66WkIhANSYkd3uRXXHkDiAGUeophJjY dCAMB6NWHUqZ4iCD+92YdC4a0qQuFfhFGSL3DU1uW8B2a4KVKzYuzMCD X-Gm-Gg: ASbGncu1+H9dEtwgbx5AQ8xDqQ93Dp/0YkKiZJdvaOfFdPomY0+VWq1l8aaXj8AHiM+ 4tLecNjq9VCncHBh94pyjP8YQ9eZ2kC99Z7JNzIMmialPX9osb4rRlYlgMbB8RrUTzBWCPHImcH nKUQh8xLalVk6kJ9B5IVUxm0zj6f+mxzYMplrl20pVolGrLhAc437UhdnBhKgvzP4ASgiT6Xxkf FW0PPOAojfcsiMsv9s6DjI0tDPWQOCv55lpq2Y6eD94+Z0RwwBkjUZpEfZFB9ykjYv/agg9t9fx odY4ONj7KkcjRaEwOGfEK7eKifYXZbnvQXkMQytWLhnpeC1kgZyb1gdrQ5DiHWm8vrC5O7whCo8 BtR5eqp+yWMpGamLfOT0sKeyk+6mN9AkEdyTzbpXCVrETBdi1BknnS/VjGwAhKXJ1NY0dvpZlfA oSp0slrOQ= X-Google-Smtp-Source: AGHT+IEHsQzpfTBjBHA4dtIeH7oiiPcnL1uTXbBAuV28ldULX2+K4VUyMpGMegei8EdtYuGbElbA8Q== X-Received: by 2002:a05:690c:6f13:b0:786:7aaa:a070 with SMTP id 00721157ae682-78c0beeaf33mr40397b3.10.1764710310027; Tue, 02 Dec 2025 13:18:30 -0800 (PST) Received: from localhost ([2601:346:0:79bd:3422:8bf9:97bc:b085]) by smtp.gmail.com with ESMTPSA id 00721157ae682-78ad100e937sm67330467b3.27.2025.12.02.13.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Dec 2025 13:18:29 -0800 (PST) Date: Tue, 2 Dec 2025 16:18:29 -0500 From: Yury Norov To: Andi Shyti Cc: Jani Nikula , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andy Shevchenko , Randy Dunlap , Ingo Molnar , 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 1/3] kernel.h: drop STACK_MAGIC macro Message-ID: References: <20251129195304.204082-1-yury.norov@gmail.com> <20251129195304.204082-2-yury.norov@gmail.com> <3m64k5fagw7hp2duo43t5fldyn6argdjripx3nn6onxbr6xu6w@iwiepyn5krf6> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3m64k5fagw7hp2duo43t5fldyn6argdjripx3nn6onxbr6xu6w@iwiepyn5krf6> On Tue, Dec 02, 2025 at 09:58:19PM +0100, Andi Shyti wrote: > Hi Jani, > > On Mon, Dec 01, 2025 at 09:46:47AM +0200, Jani Nikula wrote: > > On Sat, 29 Nov 2025, "Yury Norov (NVIDIA)" wrote: > > > The macro is only used by i915. Move it to a local header and drop from > > > the kernel.h. > > > > > > Signed-off-by: Yury Norov (NVIDIA) > > > --- > > > drivers/gpu/drm/i915/i915_utils.h | 2 ++ > > > include/linux/kernel.h | 2 -- > > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h > > > index a0c892e4c40d..6c197e968305 100644 > > > --- a/drivers/gpu/drm/i915/i915_utils.h > > > +++ b/drivers/gpu/drm/i915/i915_utils.h > > > > i915_utils.h is on a diet itself. STACK_MAGIC is only used in selftests, > > please put this in i915_selftest.h. > > > > I guess also need to include that from gt/selftest_ring_submission.c, > > the only one that uses STACK_MAGIC but doesn't include i915_selftest.h. > > Doing this cleanups is a bit out of the scope of this patch. > Given that the patch itself has quite a good consensus, let move > it forward and I can take care of the i915 cleanup once it gets > merged. I'm already testing it in my tree: https://github.com/norov/linux/tree/sm1 If everything is fine, I'll submit v2 with this change, otherwise will schedule it for future improvements.