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

Uwe Kleine-König (The Capable Hub) posted 3 patches 3 days, 4 hours ago
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(-)
[PATCH v1 0/3] <linux/mod_devicetable.h> deprecation continues
Posted by Uwe Kleine-König (The Capable Hub) 3 days, 4 hours ago
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

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
-- 
2.56.0.rc1

Re: [PATCH v1 0/3] <linux/mod_devicetable.h> deprecation continues
Posted by Armin Wolf 1 day, 22 hours ago
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@gmx.de>

>
> 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