diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-08-27 13:31:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-31 09:21:18 -0400 |
commit | aeb83d7054de0180c4f4b8df7d5c75cc60277558 (patch) | |
tree | 356aab3c35805f03d82c55ec6ba218b3a2adb56c | |
parent | 148a1bc84398039e2b96ff78678c4d9a67f81452 (diff) |
fix:memory:of_memory:add missing header dependencies
We get 2 warnings when biuld kernel with W=1:
drivers/memory/of_memory.c:30:30: warning: no previous prototype for 'of_get_min_tck' [-Wmissing-prototypes]
drivers/memory/of_memory.c:106:30: warning: no previous prototype for 'of_get_ddr_timings' [-Wmissing-prototypes]
In fact, these functions are declared in drivers/memory/of_memory.h
so this patch add missing header dependencies.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/memory/of_memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/memory/of_memory.c b/drivers/memory/of_memory.c index 9daf94bb8f27..568f05ed961a 100644 --- a/drivers/memory/of_memory.c +++ b/drivers/memory/of_memory.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/gfp.h> | 16 | #include <linux/gfp.h> |
17 | #include <memory/jedec_ddr.h> | 17 | #include <memory/jedec_ddr.h> |
18 | #include <linux/export.h> | 18 | #include <linux/export.h> |
19 | #include "of_memory.h" | ||
19 | 20 | ||
20 | /** | 21 | /** |
21 | * of_get_min_tck() - extract min timing values for ddr | 22 | * of_get_min_tck() - extract min timing values for ddr |