diff mbox series

soc: imx: gpcv2: include linux/sizes.h

Message ID 9e4549b47f0872a6a670d07b513f452c33f26501.1579524316.git.leonard.crestez@nxp.com (mailing list archive)
State Accepted
Headers show
Series soc: imx: gpcv2: include linux/sizes.h | expand

Commit Message

Leonard Crestez Jan. 20, 2020, 12:51 p.m. UTC
This header is included indirectly on arm/arm64 but not on x86 so
CONFIG_COMPILE_TEST breaks. Fix by including <linux/sizes.h> directly.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>

---
Support for COMPILE_TEST inside drivers/soc/imx is enabled by this
series:

https://patchwork.kernel.org/cover/11335989/

 drivers/soc/imx/gpcv2.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Shawn Guo Feb. 14, 2020, 2:03 a.m. UTC | #1
On Mon, Jan 20, 2020 at 02:51:28PM +0200, Leonard Crestez wrote:
> This header is included indirectly on arm/arm64 but not on x86 so
> CONFIG_COMPILE_TEST breaks. Fix by including <linux/sizes.h> directly.
> 
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>

Applied, thanks.
Peng Fan Feb. 14, 2020, 2:07 a.m. UTC | #2
Hi Shawn

> Subject: Re: [PATCH] soc: imx: gpcv2: include linux/sizes.h

I included this patch in https://patchwork.kernel.org/cover/11353557/

Patch 1/2 is exactly the same with this one.
Patch 2/2 needs this patch or patch 1/2.

Thanks,
Peng.

> 
> On Mon, Jan 20, 2020 at 02:51:28PM +0200, Leonard Crestez wrote:
> > This header is included indirectly on arm/arm64 but not on x86 so
> > CONFIG_COMPILE_TEST breaks. Fix by including <linux/sizes.h> directly.
> >
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> 
> Applied, thanks.
Shawn Guo Feb. 14, 2020, 2:22 a.m. UTC | #3
On Fri, Feb 14, 2020 at 02:07:02AM +0000, Peng Fan wrote:
> Hi Shawn
> 
> > Subject: Re: [PATCH] soc: imx: gpcv2: include linux/sizes.h
> 
> I included this patch in https://patchwork.kernel.org/cover/11353557/
> 
> Patch 1/2 is exactly the same with this one.
> Patch 2/2 needs this patch or patch 1/2.

Thanks for the note.  I will deal with it.

Shawn
diff mbox series

Patch

diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index b0dffb06c05d..6cf8a7a412bd 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -12,10 +12,11 @@ 
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/regmap.h>
 #include <linux/regulator/consumer.h>
+#include <linux/sizes.h>
 #include <dt-bindings/power/imx7-power.h>
 #include <dt-bindings/power/imx8mq-power.h>
 
 #define GPC_LPCR_A_CORE_BSC			0x000