Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1500138
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] regmap: include <linux/delay.h> from include/linux/regmap.h |
| Date | 2016-10-13 12:30 +0200 |
| Message-ID | <srLqV-2eM-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The readx_poll_timeout() macro calls usleep_range(), which is declared in <linux/delay.h>. Make include/linux/regmap.h include <linux/delay.h>, like include/linux/iopoll.h does. Otherwise, users of the macro will see "implicit declaration of function 'usleep_range'" error. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- include/linux/regmap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 9adc7b2..e5157e3 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -15,6 +15,7 @@ #include <linux/list.h> #include <linux/rbtree.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/bug.h> #include <linux/lockdep.h> -- 1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] regmap: include <linux/delay.h> from include/linux/regmap.h Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-10-13 12:30 +0200
csiph-web