From: Kevin Hilman Date: Wed, 14 Aug 2013 23:05:02 +0000 (-0700) Subject: regmap: Add another missing header for !CONFIG_REGMAP stubs X-Git-Tag: firefly_0821_release~6453^2~937 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f1179e006ed4315834bdbf0982b40f7029cf0977;p=firefly-linux-kernel-4.4.55.git regmap: Add another missing header for !CONFIG_REGMAP stubs commit 3f0fa9a808f98fa10a18ba2a73f13d65fda990fb upstream. 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] Signed-off-by: Kevin Hilman Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/regmap.h b/include/linux/regmap.h index f91bb416122d..98c470ced989 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -16,6 +16,7 @@ #include #include #include +#include struct module; struct device;