Skip to content

Commit f1179e0

Browse files
Kevin Hilmangregkh
Kevin Hilman
authored andcommitted
regmap: Add another missing header for !CONFIG_REGMAP stubs
commit 3f0fa9a 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 <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ff2b0a7 commit f1179e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/regmap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/list.h>
1717
#include <linux/rbtree.h>
1818
#include <linux/err.h>
19+
#include <linux/bug.h>
1920

2021
struct module;
2122
struct device;

0 commit comments

Comments
 (0)