diff mbox

regmap: Add another missing header for !CONFIG_REGMAP stubs

Message ID 1376521502-9370-1-git-send-email-khilman@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Kevin Hilman Aug. 14, 2013, 11:05 p.m. UTC
The use of WARN_ON() needs the definitions from bug.h, without it
you can get:

include/linux/regmap.h: In function 'regmap_write':
include/linux/regmap.h:525:2: error: implicit declaration of function 'WARN_ONCE' [-Werror=implicit-function-declaration]

Cc: Mark Brown <broonie@linaro.org> 
Signed-off-by: Kevin Hilman <khilman@linaro.org> 
--- 
This one has been showing up in linux-next for a bit under various ARM
defconfigs (specifically ape6evm_defconfig and lager_defconfig)u

 include/linux/regmap.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown Aug. 15, 2013, 11:09 a.m. UTC | #1
On Wed, Aug 14, 2013 at 04:05:02PM -0700, Kevin Hilman wrote:
> The use of WARN_ON() needs the definitions from bug.h, without it
> you can get:

Applied, thanks.
diff mbox

Patch

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index bafda87..a10380b 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -16,6 +16,7 @@ 
 #include <linux/list.h>
 #include <linux/rbtree.h>
 #include <linux/err.h>
+#include <linux/bug.h>
 
 struct module;
 struct device;