Skip to content

Commit

Permalink
m68k: 68000: fix warning in timer code
Browse files Browse the repository at this point in the history
When building with W=1:

      CC      arch/m68k/68000/timers.o
    arch/m68k/68000/timers.c:120:5: warning: no previous prototype for ‘m68328_hwclk’ [-Wmissing-prototypes]
     int m68328_hwclk(int set, struct rtc_time *t)
         ^~~~~~~~~~~~

Include m68328.h to get prototype for m68328_hwclk().

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
  • Loading branch information
Greg Ungerer authored and Greg Ungerer committed Oct 22, 2023
1 parent 19f144f commit 2508b60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/m68k/68000/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <asm/machdep.h>
#include <asm/MC68VZ328.h>

#include "m68328.h"

/***************************************************************************/

#if defined(CONFIG_DRAGEN2)
Expand Down

0 comments on commit 2508b60

Please sign in to comment.