soc: fsl: Replace kernel.h with the necessary inclusions
Subsystems (2)
PATCH 1/1 soc: fsl: Replace kernel.h with the necessary inclusions
When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.
Replace kernel.h inclusion with the list of what is really being used.
--- include/soc/fsl/dpaa2-fd.h | 3 ++- include/soc/fsl/qe/immap_qe.h | 3 ++- include/soc/fsl/qe/qe_tdm.h | 4 +++- include/soc/fsl/qe/ucc_fast.h | 2 +- include/soc/fsl/qe/ucc_slow.h | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-)
include/soc/fsl/dpaa2-fd.h +2 -1
@@ -7,7 +7,8 @@#ifndef __FSL_DPAA2_FD_H#define __FSL_DPAA2_FD_H -#include <linux/kernel.h> +#include <linux/byteorder/generic.h> +#include <linux/types.h> /** * DOC: DPAA2 FD - Frame Descriptor APIs for DPAA2
include/soc/fsl/qe/immap_qe.h +2 -1
@@ -13,7 +13,8 @@#define _ASM_POWERPC_IMMAP_QE_H#ifdef __KERNEL__ -#include <linux/kernel.h> +#include <linux/types.h> +#include <asm/io.h> #define QE_IMMAP_SIZE (1024 * 1024)/* 1MB from 1MB+IMMR */
include/soc/fsl/qe/qe_tdm.h +3 -1
@@ -10,8 +10,8 @@#ifndef _QE_TDM_H_#define _QE_TDM_H_ -#include <linux/kernel.h> #include <linux/list.h> +#include <linux/types.h> #include <soc/fsl/qe/immap_qe.h> #include <soc/fsl/qe/qe.h>
@@ -19,6 +19,8 @@#include <soc/fsl/qe/ucc.h> #include <soc/fsl/qe/ucc_fast.h> +struct device_node ; +/* SI RAM entries */ #define SIR_LAST 0x0001#define SIR_BYTE 0x0002
include/soc/fsl/qe/ucc_fast.h +1 -1
@@ -10,7 +10,7 @@#ifndef __UCC_FAST_H__#define __UCC_FAST_H__ -#include <linux/kernel.h> +#include <linux/types.h> #include <soc/fsl/qe/immap_qe.h> #include <soc/fsl/qe/qe.h>
include/soc/fsl/qe/ucc_slow.h +1 -1
@@ -11,7 +11,7 @@#ifndef __UCC_SLOW_H__#define __UCC_SLOW_H__ -#include <linux/kernel.h> +#include <linux/types.h> #include <soc/fsl/qe/immap_qe.h> #include <soc/fsl/qe/qe.h>
Signature · 1 line
2.33.0
Quoted 4 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.
Seems nobody from PPC took this patch.
Any idea who can take it?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Le 29/10/2021 à 17:55, Andy Shevchenko a écrit :
Quoted 9 lines · Andy Shevchenko
Quoted 4 lines
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Seems nobody from PPC took this patch.
Any idea who can take it?
You have to check in MAINTAINERS file in the root directory of kernel
sources: https://github.com/linuxppc/linux/blob/master/MAINTAINERS
That's Michael who takes them. But you have to allow him enough time for it.
Christophe
Le 29/10/2021 à 17:55, Andy Shevchenko a écrit :
Quoted 9 lines · Andy Shevchenko
Quoted 4 lines
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Seems nobody from PPC took this patch.
Any idea who can take it?
You have to check in MAINTAINERS file in the root directory of kernel sources: https://github.com/linuxppc/linux/blob/master/MAINTAINERS
That's Michael who takes them. But you have to allow him enough time for it.
Christophe
Quoted 8 lines · LEROY Christophe
Quoted 4 lines · Andy Shevchenko
Quoted 3 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Replace
kernel.hinclusion with the list of what is really being used.Seems nobody from PPC took this patch.
Any idea who can take it?You have to check in
MAINTAINERSfile in the root directory of kernel
sources: https://github.com/linuxppc/linux/blob/master/MAINTAINERS
Actually for these files get_maintainer.pl showed nothing. I have chosen PPC maintainers manually.
Quoted 1 line
That's Michael who takes them. But you have to allow him enough time for it.
Thanks!
I wrote that message because I have got a notification from checkpatch that it should go somewhere else.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Le 29/10/2021 à 22:31, Andy Shevchenko a écrit :
Quoted 22 lines
Quoted 8 lines · LEROY Christophe
Quoted 4 lines · Andy Shevchenko
Quoted 3 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Replace
kernel.hinclusion with the list of what is really being used.Seems nobody from PPC took this patch.
Any idea who can take it?You have to check in
MAINTAINERSfile in the root directory of kernel
sources: https://github.com/linuxppc/linux/blob/master/MAINTAINERSActually for these files get_maintainer.pl showed nothing. I have chosen PPC maintainers manually.
Quoted 7 lines
Quoted 1 line
That's Michael who takes them. But you have to allow him enough time for it.
Thanks!
I wrote that message because I have got a notification from checkpatch that it should go somewhere else.
That means that Michael considered it is not for him.
And I think the reason is that in MAINTAINERS you have:
FREESCALE QUICC ENGINE LIBRARY
M: Qiang Zhao <[email protected]>
L: [email protected]
S: Maintained
F: drivers/soc/fsl/qe/
F: include/soc/fsl/*qe*.h
F: include/soc/fsl/*ucc*.h
FREESCALE SOC DRIVERS
M: Li Yang <[email protected]>
L: [email protected]
L: [email protected] (moderated for non-subscribers)
S: Maintained
F: Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml
F: Documentation/devicetree/bindings/soc/fsl/
F: drivers/soc/fsl/
F: include/linux/fsl/
Sorry I overlooked your patch.
Christophe
Quoted 55 lines · Christophe Leroy
Quoted 28 lines · Andy Shevchenko
Quoted 14 lines · LEROY Christophe
Quoted 9 lines · Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Quoted 7 lines
Quoted 4 lines
Seems nobody from PPC took this patch.
Any idea who can take it?You have to check in
MAINTAINERSfile in the root directory of kernel
sources: https://github.com/linuxppc/linux/blob/master/MAINTAINERSActually for these files get_maintainer.pl showed nothing. I have chosen PPC maintainers manually.
Quoted 10 lines
That's Michael who takes them. But you have to allow him enough time for
Quoted 2 lines
it.
Thanks!
I wrote that message because I have got a notification from checkpatch that it should go somewhere else.
That means that Michael considered it is not for him.
And I think the reason is that in
MAINTAINERSyou have:FREESCALE QUICC ENGINE LIBRARY
M: Qiang Zhao <[email protected]> L: [email protected] S: Maintained F: drivers/soc/fsl/qe/ F: include/soc/fsl/*qe*.h F: include/soc/fsl/*ucc*.hFREESCALE SOC DRIVERS
Quoted 11 lines
M: Li Yang <[email protected]> L: [email protected] L: [email protected] (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml F: Documentation/devicetree/bindings/soc/fsl/ F: drivers/soc/fsl/ F: include/linux/fsl/
Thanks! Now I should understand why get_maintainer hadn’t showed above for me.
Quoted 1 line
Sorry I overlooked your patch.
NP
Quoted 3 lines
Christophe
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 3 lines · Andy Shevchenko
Quoted 1 line · Christophe Leroy
Le 29/10/2021 à 22:31, Andy Shevchenko a écrit :
...
Quoted 24 lines
Quoted 14 lines
That means that Michael considered it is not for him.
And I think the reason is that in
MAINTAINERSyou have:FREESCALE QUICC ENGINE LIBRARY
M: Qiang Zhao <[email protected]> L: [email protected] S: Maintained F: drivers/soc/fsl/qe/ F: include/soc/fsl/*qe*.h F: include/soc/fsl/*ucc*.hFREESCALE SOC DRIVERS
Quoted 10 lines
M: Li Yang <[email protected]> L: [email protected] L: [email protected] (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml F: Documentation/devicetree/bindings/soc/fsl/ F: drivers/soc/fsl/ F: include/linux/fsl/
Quoted 2 lines
Thanks! Now I should understand why
get_maintainerhadn’t showed above for me.
He-he, there are two bugs in MAINTAINERS.
v2 has been sent with the corresponding fixes and updated Cc list.
Signature · 2 lines
With Best Regards, Andy Shevchenko