2022-05-17 06:55:38

by Stafford Horne

[permalink] [raw]
Subject: [PATCH v2 11/13] openrisc/delay: Add include to fix symbol not declared warning

Add asm/timex.h include for read_current_timer prototype.

Sparse reporting the following warning:

arch/openrisc/lib/delay.c:23:5: warning: symbol 'read_current_timer' was not declared. Should it be static?

Signed-off-by: Stafford Horne <[email protected]>
---
arch/openrisc/lib/delay.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/openrisc/lib/delay.c b/arch/openrisc/lib/delay.c
index 036ae57180ef..5e89e4131304 100644
--- a/arch/openrisc/lib/delay.c
+++ b/arch/openrisc/lib/delay.c
@@ -15,6 +15,7 @@
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/init.h>
+#include <linux/timex.h>
#include <asm/param.h>
#include <asm/delay.h>
#include <asm/timex.h>
--
2.31.1