All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] regmap: include <linux/ktime.h> from include/linux/regmap.h
@ 2018-04-23  6:42 ` sean.wang
  0 siblings, 0 replies; 24+ messages in thread
From: sean.wang @ 2018-04-23  6:42 UTC (permalink / raw)
  To: matthias.bgg, rjw, khilman
  Cc: ulf.hansson, linux-mediatek, linux-pm, linux-arm-kernel,
	linux-kernel, Sean Wang, Mark Brown

From: Sean Wang <sean.wang@mediatek.com>

Similar to the readx_poll_timeout() macro calling ktime_* and using
ktime_t type, which is declared in <linux/ktime.h>. So, make
include/linux/regmap.h explicitly include <linux/ktime.h>, like
include/linux/iopoll.h does.  Otherwise, users of the macro will see
below errors.

error: implicit declaration of function ‘ktime_add_us’
[-Werror=implicit-function-declaration]

error: implicit declaration of function ‘ktime_get’
[-Werror=implicit-function-declaration]

error: implicit declaration of function ‘ktime_compare’
[-Werror=implicit-function-declaration]

include/linux/regmap.h:128:2: error: unknown type name ‘ktime_t’
  ktime_t __timeout = ktime_add_us(ktime_get(), __timeout_us); \

Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
 include/linux/regmap.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 5f7ad05..b6865f0 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/ktime.h>
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/bug.h>
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2018-05-11 11:25 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-23  6:42 [PATCH v2 1/2] regmap: include <linux/ktime.h> from include/linux/regmap.h sean.wang
2018-04-23  6:42 ` sean.wang at mediatek.com
2018-04-23  6:42 ` sean.wang
2018-04-23  6:42 ` [PATCH v2 2/2] soc: mediatek: reuse regmap_read_poll_timeout helpers sean.wang
2018-04-23  6:42   ` sean.wang at mediatek.com
2018-04-23  6:42   ` sean.wang
2018-04-27  9:35   ` Matthias Brugger
2018-04-27  9:35     ` Matthias Brugger
2018-05-11 11:25   ` Matthias Brugger
2018-05-11 11:25     ` Matthias Brugger
2018-04-23 10:03 ` [PATCH v2 1/2] regmap: include <linux/ktime.h> from include/linux/regmap.h Mark Brown
2018-04-23 10:03   ` Mark Brown
2018-04-23 10:11   ` Matthias Brugger
2018-04-23 10:11     ` Matthias Brugger
2018-04-23 11:50     ` Mark Brown
2018-04-23 11:50       ` Mark Brown
2018-04-23 14:07       ` Matthias Brugger
2018-04-23 14:07         ` Matthias Brugger
2018-04-24 17:31         ` Mark Brown
2018-04-24 17:31           ` Mark Brown
2018-04-24 17:31           ` Mark Brown
2018-04-24 17:46 ` Applied "regmap: include <linux/ktime.h> from include/linux/regmap.h" to the regmap tree Mark Brown
2018-04-24 17:46   ` Mark Brown
2018-04-24 17:46   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.