Message ID | 20240812131803.16475-2-vincent.legoll@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4f3089ad555601b494c91aa9dfbf9c3060cc3e73 |
Headers | show |
Series | MIPS: ralink: Fix missing prototypes warnings | expand |
On Mon, Aug 12, 2024 at 03:17:42PM +0200, Vincent Legoll wrote: > Fix the following warning: > > CC arch/mips/ralink/timer-gic.o > arch/mips/ralink/timer-gic.c:18:13: warning: no previous prototype for 'plat_time_init' [-Wmissing-prototypes] > 18 | void __init plat_time_init(void) > | ^~~~~~~~~~~~~~ > > Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com> > --- > arch/mips/ralink/timer-gic.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/mips/ralink/timer-gic.c b/arch/mips/ralink/timer-gic.c > index dcf2a44ac51e..926082655a78 100644 > --- a/arch/mips/ralink/timer-gic.c > +++ b/arch/mips/ralink/timer-gic.c > @@ -11,6 +11,8 @@ > #include <linux/of_clk.h> > #include <linux/clocksource.h> > > +#include <asm/time.h> > + > #include "common.h" > > void __init plat_time_init(void) > -- > 2.46.0 applied to mips-next. Thomas.
diff --git a/arch/mips/ralink/timer-gic.c b/arch/mips/ralink/timer-gic.c index dcf2a44ac51e..926082655a78 100644 --- a/arch/mips/ralink/timer-gic.c +++ b/arch/mips/ralink/timer-gic.c @@ -11,6 +11,8 @@ #include <linux/of_clk.h> #include <linux/clocksource.h> +#include <asm/time.h> + #include "common.h" void __init plat_time_init(void)
Fix the following warning: CC arch/mips/ralink/timer-gic.o arch/mips/ralink/timer-gic.c:18:13: warning: no previous prototype for 'plat_time_init' [-Wmissing-prototypes] 18 | void __init plat_time_init(void) | ^~~~~~~~~~~~~~ Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com> --- arch/mips/ralink/timer-gic.c | 2 ++ 1 file changed, 2 insertions(+)