mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
fcea8b27f9
Fix following warnings: time_32.c:63:1: warning: symbol 'rtc_lock' was not declared. Should it be static? time_32.c:357:13: warning: symbol 'time_init' was not declared. Should it be static? time_32.c:148:16: warning: dereference of noderef expression Add extern definition of rtc_lock in mc146818rtc.h. time_init() is called from init/main.c - add prototype to kernel.h. Use proper u32 __iomem * for master_l10_counter. Fix all users. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
14 lines
259 B
C
14 lines
259 B
C
#ifndef ___ASM_SPARC_MC146818RTC_H
|
|
#define ___ASM_SPARC_MC146818RTC_H
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
extern spinlock_t rtc_lock;
|
|
|
|
#if defined(__sparc__) && defined(__arch64__)
|
|
#include <asm/mc146818rtc_64.h>
|
|
#else
|
|
#include <asm/mc146818rtc_32.h>
|
|
#endif
|
|
#endif
|