Skip to contentSkip to conversation

mmc: s3cmci: include linux/interrupt.h for tasklet_struct

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 20, 2017 – Jan 24, 2017 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: s3cmci: include linux/interrupt.h for tasklet_struct

I got this new build error on today's linux-next

drivers/mmc/host/s3cmci.h:69:24: error: field 'pio_tasklet' has incomplete type
struct tasklet_struct pio_tasklet;
drivers/mmc/host/s3cmci.c: In function 's3cmci_enable_irq':
drivers/mmc/host/s3cmci.c:390:4: error: implicit declaration of function 'enable_irq';did you mean 'enable_imask'? [-Werror=implicit-function-declaration]

While I haven't found out why this happened now and not earlier, the solution is obvious, we should include the header that defines the structure.

---
 drivers/mmc/host/s3cmci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/s3cmci.c +1 -0
index 932a4b1fed33..7a173f8c455b 100644
@@ -21,6 +21,7 @@
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
 #include <linux/gpio.h>
+#include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/io.h>
 
Signature · 1 line
2.9.0
#1 lore raw
Quoted 10 lines · Arnd Bergmann

I got this new build error on today's linux-next

drivers/mmc/host/s3cmci.h:69:24: error: field 'pio_tasklet' has incomplete type
struct tasklet_struct pio_tasklet;
drivers/mmc/host/s3cmci.c: In function 's3cmci_enable_irq':
drivers/mmc/host/s3cmci.c:390:4: error: implicit declaration of function 'enable_irq';did you mean 'enable_imask'? [-Werror=implicit-function-declaration]

While I haven't found out why this happened now and not earlier, the solution is obvious, we should include the header that defines the structure.

Yes, it's a bit weird. Actually non of the automated build system have reported this.

I have my own homebrewed makefiles, as to run a quick sanity test for mmc host drivers. However, my quick test didn't cover s3cmci, next time it will.

Quoted 2 lines

Thanks for helping out! Applied for next and folded it in properly in my queue to avoid bisect issues!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/s3cmci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/s3cmci.c +1 -1
index 932a4b1fed33..7a173f8c455b 100644
@@ -21,6 +21,7 @@
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
 #include <linux/gpio.h>
+#include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/io.h>
 
--

2.9.0