mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 05:42:36 +00:00
powerpc/powermac: Add missing include of header pmac.h
The header `pmac.h` was not included, leading to the following warnings, treated as error with W=1: arch/powerpc/platforms/powermac/time.c:69:13: error: no previous prototype for ‘pmac_time_init’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:207:15: error: no previous prototype for ‘pmac_get_boot_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:222:6: error: no previous prototype for ‘pmac_get_rtc_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:240:5: error: no previous prototype for ‘pmac_set_rtc_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:259:12: error: no previous prototype for ‘via_calibrate_decr’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:311:13: error: no previous prototype for ‘pmac_calibrate_decr’ [-Werror=missing-prototypes] The function `via_calibrate_decr` was made static to silence a warning. Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
baedcdf505
commit
2fff0f07b8
1 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,8 @@
|
||||||
#include <asm/nvram.h>
|
#include <asm/nvram.h>
|
||||||
#include <asm/smu.h>
|
#include <asm/smu.h>
|
||||||
|
|
||||||
|
#include "pmac.h"
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -249,7 +251,7 @@ int pmac_set_rtc_time(struct rtc_time *tm)
|
||||||
* Calibrate the decrementer register using VIA timer 1.
|
* Calibrate the decrementer register using VIA timer 1.
|
||||||
* This is used both on powermacs and CHRP machines.
|
* This is used both on powermacs and CHRP machines.
|
||||||
*/
|
*/
|
||||||
int __init via_calibrate_decr(void)
|
static int __init via_calibrate_decr(void)
|
||||||
{
|
{
|
||||||
struct device_node *vias;
|
struct device_node *vias;
|
||||||
volatile unsigned char __iomem *via;
|
volatile unsigned char __iomem *via;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue