diff mbox series

[1/9] dmaengine: omap-dma: include header for bool type

Message ID 20180213013243.8378-2-s-anna@ti.com
State New
Headers show
Series Some OMAP2+ legacy hwmod data cleanup | expand

Commit Message

Suman Anna Feb. 13, 2018, 1:32 a.m. UTC
The omap-dmaengine.h header file uses a bool type, so include
the linux types.h header file so that it is self-contained.
The lack of this header caused some build errors while cleaning
up some header files from various omap_hwmod data files.

Signed-off-by: Suman Anna <s-anna@ti.com>

---
 include/linux/omap-dmaengine.h | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Tony Lindgren Feb. 14, 2018, 6:07 p.m. UTC | #1
* Suman Anna <s-anna@ti.com> [180213 01:33]:
> The omap-dmaengine.h header file uses a bool type, so include

> the linux types.h header file so that it is self-contained.

> The lack of this header caused some build errors while cleaning

> up some header files from various omap_hwmod data files.


Let's rather include types.h directly. Here's a patch
that replaces your first two patches.

Regards,

Tony

8< --------------------
From tony Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>

Date: Wed, 14 Feb 2018 09:35:20 -0800
Subject: [PATCH] ARM: OMAP2+: Include types.h directly for hwmod data

This is needed in preparation for dropping some unused
headers that indirectly include types.h.

Signed-off-by: Tony Lindgren <tony@atomide.com>

---
 arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c      | 2 ++
 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 2 ++
 arch/arm/mach-omap2/omap_hwmod_81xx_data.c              | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
@@ -9,6 +9,8 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/types.h>
+
 #include <linux/platform_data/gpio-omap.h>
 #include <linux/omap-dma.h>
 #include <plat/dmtimer.h>
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
@@ -14,6 +14,8 @@
  * GNU General Public License for more details.
  */
 
+#include <linux/types.h>
+
 #include <linux/platform_data/gpio-omap.h>
 #include <linux/platform_data/hsmmc-omap.h>
 #include <linux/platform_data/spi-omap2-mcspi.h>
diff --git a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
@@ -15,6 +15,8 @@
  *
  */
 
+#include <linux/types.h>
+
 #include <linux/platform_data/gpio-omap.h>
 #include <linux/platform_data/hsmmc-omap.h>
 #include <linux/platform_data/spi-omap2-mcspi.h>
-- 
2.16.1
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Suman Anna Feb. 14, 2018, 6:22 p.m. UTC | #2
On 02/14/2018 12:07 PM, Tony Lindgren wrote:
> * Suman Anna <s-anna@ti.com> [180213 01:33]:

>> The omap-dmaengine.h header file uses a bool type, so include

>> the linux types.h header file so that it is self-contained.

>> The lack of this header caused some build errors while cleaning

>> up some header files from various omap_hwmod data files.

> 

> Let's rather include types.h directly. Here's a patch

> that replaces your first two patches.


Yeah, I am ok with this as well. I went with the other approach
primarily because whoever includes those header files will need a
similar fixing or rely on others bringing in the types.h.

> 

> Regards,

> 

> Tony

> 

> 8< --------------------

> From tony Mon Sep 17 00:00:00 2001

> From: Tony Lindgren <tony@atomide.com>

> Date: Wed, 14 Feb 2018 09:35:20 -0800

> Subject: [PATCH] ARM: OMAP2+: Include types.h directly for hwmod data

> 

> This is needed in preparation for dropping some unused

> headers that indirectly include types.h.

> 

> Signed-off-by: Tony Lindgren <tony@atomide.com>


Tested-by: Suman Anna <s-anna@ti.com>


regards
Suman

> ---

>  arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c      | 2 ++

>  arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 2 ++

>  arch/arm/mach-omap2/omap_hwmod_81xx_data.c              | 2 ++

>  3 files changed, 6 insertions(+)

> 

> diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c

> --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c

> +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c

> @@ -9,6 +9,8 @@

>   * published by the Free Software Foundation.

>   */

>  

> +#include <linux/types.h>

> +

>  #include <linux/platform_data/gpio-omap.h>

>  #include <linux/omap-dma.h>

>  #include <plat/dmtimer.h>

> diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c

> --- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c

> +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c

> @@ -14,6 +14,8 @@

>   * GNU General Public License for more details.

>   */

>  

> +#include <linux/types.h>

> +

>  #include <linux/platform_data/gpio-omap.h>

>  #include <linux/platform_data/hsmmc-omap.h>

>  #include <linux/platform_data/spi-omap2-mcspi.h>

> diff --git a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c

> --- a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c

> +++ b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c

> @@ -15,6 +15,8 @@

>   *

>   */

>  

> +#include <linux/types.h>

> +

>  #include <linux/platform_data/gpio-omap.h>

>  #include <linux/platform_data/hsmmc-omap.h>

>  #include <linux/platform_data/spi-omap2-mcspi.h>

> 


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/include/linux/omap-dmaengine.h b/include/linux/omap-dmaengine.h
index 8e6906c72e90..fc245bafb3ea 100644
--- a/include/linux/omap-dmaengine.h
+++ b/include/linux/omap-dmaengine.h
@@ -8,6 +8,8 @@ 
 #ifndef __LINUX_OMAP_DMAENGINE_H
 #define __LINUX_OMAP_DMAENGINE_H
 
+#include <linux/types.h>
+
 struct dma_chan;
 
 #if defined(CONFIG_DMA_OMAP) || (defined(CONFIG_DMA_OMAP_MODULE) && defined(MODULE))