summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-10-16 12:09:12 +0200
committerNicolas Schier <nsc@kernel.org>2026-11-08 20:23:55 +0100
commitcdfdbc11552b99dbc5c45c55f62a76527ffcc73d (patch)
tree7455a6d89fc56f43ace32c1f2a7b4d4f1f11581e /scripts
parentc9946f662ae155e455ce87866a6f41d9017a0988 (diff)
downloadlinux-next-cdfdbc11552b99dbc5c45c55f62a76527ffcc73d.tar.gz
linux-next-cdfdbc11552b99dbc5c45c55f62a76527ffcc73d.zip
Move struct cpu_feature to <linux/cpufeature.h>
struct cpu_feature used to be defined in <linux/mod_devicetable.h>. It's much better located in <linux/cpufeature.h>. The only downside is that modpost and devicetable-offsets.h need the definition and thus <linux/cpufeature.h> must be included explicitly there. Acked-by: Armin Wolf <W_Armin@gmx.de> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/bc9fbf5784f6788e10c749a05d56c42bdb68f3d9.1792144769.git.u.kleine-koenig@baylibre.com Signed-off-by: Nicolas Schier <nsc@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/devicetable-offsets.c1
-rw-r--r--scripts/mod/file2alias.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c
index 92596bfa6aec..324253524861 100644
--- a/scripts/mod/devicetable-offsets.c
+++ b/scripts/mod/devicetable-offsets.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#define COMPILE_OFFSETS
+#include <linux/cpufeature.h>
#include <linux/device-id/scmi.h>
#include <linux/kbuild.h>
#include <linux/mod_devicetable.h>
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 61a831c18721..7d08a99360c0 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -121,6 +121,7 @@ typedef struct {
/* Big exception to the "don't include kernel headers into userspace, which
* even potentially has different endianness and word sizes, since
* we handle those differences explicitly below */
+#include "../../include/linux/cpufeature.h"
#include "../../include/linux/device-id/scmi.h"
#include "../../include/linux/mod_devicetable.h"