Skip to content

Commit aeb83d7

Browse files
Baoyou Xiegregkh
authored andcommitted
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>
1 parent 148a1bc commit aeb83d7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/memory/of_memory.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/gfp.h>
1717
#include <memory/jedec_ddr.h>
1818
#include <linux/export.h>
19+
#include "of_memory.h"
1920

2021
/**
2122
* of_get_min_tck() - extract min timing values for ddr

0 commit comments

Comments
 (0)