mmc: omap_hsmmc: fix dependency on indirect header inclusion
Subsystems (2)
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
@@ -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
Quoted 7 lines · Felipe Balbi
omap_hsmmc.cdepends on <linux/sizes.h> being
included indirectly by another header. Once we
enableCOMPILE_TESTfor 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>Signed-off-by Felipe Balbi <[email protected]>---
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@@ -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>
Hi,
Quoted 14 lines · Balaji T K
Quoted 13 lines · Felipe Balbi
omap_hsmmc.cdepends on <linux/sizes.h> being included indirectly by another header. Once we enableCOMPILE_TESTfor 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>Signed-off-by Felipe Balbi <[email protected]>---
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
Acked-by Balaji T K <[email protected]>
Thanks, pushed to mmc-next for 3.12.
- Chris.
Signature · 1 line
Chris Ball <[email protected]> <http://printf.net/>