Re: [PATCH v1 0/3] <linux/mod_devicetable.h> deprecation continues

From: Armin Wolf

Date: Tue Sep 22 2026 - 15:44:01 EST


Am 21.09.26 um 16:18 schrieb Uwe Kleine-König (The Capable Hub):

Hello,

this is a next step in the deprecation of <linux/mod_devicetable.h>.
scripts/mod/devicetable-offsets.c and scripts/mod/file2alias.c are the
only users of that header that use more than a few device-id structs. So
their number of lines actually grows when unfolding the needed includes
into them. Still it is a reduction in build dependencies.

I suggest to take this via kbuild during the merge window. Would be great to
cook in next for a while before.

Best regards
Uwe

Acked-by: Armin Wolf <W_Armin@xxxxxx>


Uwe Kleine-König (The Capable Hub) (3):
Move struct cpu_feature to <linux/cpufeature.h>
devicetable-offsets: Include the needed device-id headers instead of
the catch-all
file2alias: Include the needed device-id headers instead of the
catch-all

arch/loongarch/kvm/main.c | 2 +-
include/linux/cpufeature.h | 12 ++++++-
include/linux/mod_devicetable.h | 13 -------
scripts/mod/devicetable-offsets.c | 57 ++++++++++++++++++++++++++++++-
scripts/mod/file2alias.c | 56 +++++++++++++++++++++++++++++-
5 files changed, 123 insertions(+), 17 deletions(-)


base-commit: 93f51579e7df248780214094418f205253383cc5