Skip to contentSkip to conversation

mmc: omap_hsmmc: fix dependency on indirect header inclusion

PATCH In review Felipe Balbi 3 participants 3 messages Jul 11, 2013 – Aug 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: omap_hsmmc: fix dependency on indirect header inclusion

omap_hsmmc.c depends on <linux/sizes.h> being
included indirectly by another header. Once we
enable COMPILE_TEST for this driver, we might
compile under architectures which won't include
<linux/sizes.h> for us. In fact, one such case
is x86.

In order to prevent compile breakages, let's
explicitly include <linux/sizes.h>

---

This should be applied before http://marc.info/?l=linux-omap&m=137347241524118&w=2
in order to maintain bisectability.

cheers

 drivers/mmc/host/omap_hsmmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/omap_hsmmc.c +1 -0
index 1865321..c937ffc 100644
@@ -21,6 +21,7 @@
 #include <linux/debugfs.h>
 #include <linux/dmaengine.h>
 #include <linux/seq_file.h>
+#include <linux/sizes.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
Signature · 1 line
1.8.2.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Felipe Balbi

omap_hsmmc.c depends on <linux/sizes.h> being
included indirectly by another header. Once we
enable COMPILE_TEST for this driver, we might
compile under architectures which won't include
<linux/sizes.h> for us. In fact, one such case
is x86.

Quoted 8 lines

In order to prevent compile breakages, let's
explicitly include <linux/sizes.h>

---

This should be applied before http://marc.info/?l=linux-omap&m=137347241524118&w=2
in order to maintain bisectability.

Thanks Felipe

Quoted 19 lines

cheers

  drivers/mmc/host/omap_hsmmc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/mmc/host/omap_hsmmc.c +1 -0
index 1865321..c937ffc 100644
@@ -21,6 +21,7 @@
  #include <linux/debugfs.h>
  #include <linux/dmaengine.h>
  #include <linux/seq_file.h>
+#include <linux/sizes.h>
  #include <linux/interrupt.h>
  #include <linux/delay.h>
  #include <linux/dma-mapping.h>
#2 lore raw

Hi,

Quoted 14 lines · Balaji T K
Quoted 13 lines · Felipe Balbi

omap_hsmmc.c depends on <linux/sizes.h> being included indirectly by another header. Once we enable COMPILE_TEST for this driver, we might compile under architectures which won't include <linux/sizes.h> for us. In fact, one such case is x86.

In order to prevent compile breakages, let's explicitly include <linux/sizes.h>

---

Quoted 6 lines
Quoted 3 lines

This should be applied before
http://marc.info/?l=linux-omap&m=137347241524118&w=2
in order to maintain bisectability.

Thanks Felipe

Thanks, pushed to mmc-next for 3.12.

- Chris.

Signature · 1 line
Chris Ball   <[email protected]>   <http://printf.net/>