Commit f2e0abdc authored by Yury Norov's avatar Yury Norov Committed by Andrew Morton
Browse files

kernel.h: drop STACK_MAGIC macro

Patch series "Unload linux/kernel.h", v5.

kernel.h hosts declarations that can be placed better.  This series
decouples kernel.h with some explicit and implicit dependencies; also,
moves tracing functionality to a new independent header.


This patch (of 6):

The macro was introduced in 1994, v1.0.4, for stacks protection.  Since
that, people found better ways to protect stacks, and now the macro is
only used by i915 selftests.  Move it to a local header and drop from the
kernel.h.

Link: https://lkml.kernel.org/r/20260116042510.241009-1-ynorov@nvidia.com
Link: https://lkml.kernel.org/r/20260116042510.241009-2-ynorov@nvidia.com


Signed-off-by: default avatarYury Norov <ynorov@nvidia.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Reviewed-by: default avatarAaron Tomlin <atomlin@atomlin.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: default avatarJoel Fernandes <joelagnelf@nvidia.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Petr Pavlu <petr.pavlu@suse.com>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent e8d899d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
 * Copyright © 2020 Intel Corporation
 */

#include "i915_selftest.h"
#include "intel_engine_pm.h"
#include "selftests/igt_flush_test.h"

+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@

#include <linux/types.h>

#define STACK_MAGIC	0xdeadbeef

struct pci_dev;
struct drm_i915_private;

+0 −2
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@

#include <uapi/linux/kernel.h>

#define STACK_MAGIC	0xdeadbeef

struct completion;
struct user;