Skip to contentSkip to conversation

regmap: Include linux/device.h to fix build error

PATCH In review Axel Lin 2 participants 2 messages Mar 10, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regmap: Include linux/device.h to fix build error

Fix below build error:

CC drivers/base/regmap/regmap.o
drivers/base/regmap/regmap.c: In function 'devm_regmap_init':
drivers/base/regmap/regmap.c:331: error: implicit declaration of function 'devres_alloc' drivers/base/regmap/regmap.c:331: warning: assignment makes pointer from integer without a cast drivers/base/regmap/regmap.c:338: error: implicit declaration of function 'devres_add' drivers/base/regmap/regmap.c:340: error: implicit declaration of function 'devres_free' drivers/base/regmap/regmap.c: In function '_regmap_raw_write':
drivers/base/regmap/regmap.c:421: error: implicit declaration of function 'dev_err' make[3]: *** [drivers/base/regmap/regmap.o] Error 1
make[2]: *** [drivers/base/regmap] Error 2
make[1]: *** [drivers/base] Error 2
make: *** [drivers] Error 2

---
This patch is against linux-next 20120309.

 drivers/base/regmap/regmap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/base/regmap/regmap.c +1 -0
index e1a4097..3b09587 100644
@@ -11,6 +11,7 @@
  */
 
 #include <linux/slab.h>
+#include <linux/device.h>
 #include <linux/export.h>
 #include <linux/mutex.h>
 #include <linux/err.h>
Signature · 1 line
1.7.5.4
#1 lore raw

Thanks, but this was caught earlier and already fixed.

http://marc.info/?l=linux-next&m=133130596327850&w=2

Paul.

---

Quoted 44 lines · Axel Lin

Fix below build error:

 CC      drivers/base/regmap/regmap.o
drivers/base/regmap/regmap.c: In function 'devm_regmap_init':
drivers/base/regmap/regmap.c:331: error: implicit declaration of function 'devres_alloc' drivers/base/regmap/regmap.c:331: warning: assignment makes pointer from integer without a cast drivers/base/regmap/regmap.c:338: error: implicit declaration of function 'devres_add' drivers/base/regmap/regmap.c:340: error: implicit declaration of function 'devres_free' drivers/base/regmap/regmap.c: In function '_regmap_raw_write':
drivers/base/regmap/regmap.c:421: error: implicit declaration of function 'dev_err' make[3]: *** [drivers/base/regmap/regmap.o] Error 1
make[2]: *** [drivers/base/regmap] Error 2
make[1]: *** [drivers/base] Error 2
make: *** [drivers] Error 2

---
This patch is against linux-next 20120309.

 drivers/base/regmap/regmap.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/base/regmap/regmap.c +1 -1
index e1a4097..3b09587 100644
@@ -11,6 +11,7 @@
  */
 
  #include <linux/slab.h>
+#include <linux/device.h>
  #include <linux/export.h>
  #include <linux/mutex.h>
  #include <linux/err.h>
--

1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/