Thread (4 messages) flat view 4 messages, 2 authors, 2012-03-12
STALE5300d

[PATCH] crypto: fix build failure in mv_cesa.c (missing of header)

From: Paul Gortmaker <hidden>
Date: 2012-03-09 19:58:37
Also in: linux-next
Subsystem: crypto api, the rest · Maintainers: Herbert Xu, "David S. Miller", Linus Torvalds

Commit 737b75872487f560397ba34846a19823b1addf88 (linux-next)

    "ARM: kirkwood: mv_cesa devicetree bindings"

fails to compile as follows:

 CC      drivers/crypto/mv_cesa.o
 drivers/crypto/mv_cesa.c:1139: error: implicit declaration of function 'of_match_ptr'
 drivers/crypto/mv_cesa.c:1139: error: 'mv_cesa_dt_ids' undeclared here (not in a function)
 drivers/crypto/mv_cesa.c:1139: error: initializer element is not constant
 drivers/crypto/mv_cesa.c:1139: error: (near initialization for 'marvell_crypto.driver.of_match_table')

because it is missing the linux/of.h header file.

Signed-off-by: Paul Gortmaker <redacted>
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index b7a3d48..093e214 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -10,6 +10,7 @@
 #include <crypto/algapi.h>
 #include <linux/crypto.h>
 #include <linux/interrupt.h>
+#include <linux/of.h>
 #include <linux/io.h>
 #include <linux/kthread.h>
 #include <linux/platform_device.h>
-- 
1.7.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help