Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Walle <michael@walle.cc>
  • Loading branch information
mwalle authored and Sebastien Bourdeauducq committed Apr 8, 2012
1 parent 0cf6156 commit 3aa9e9e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions software/bios/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void __attribute__((noreturn)) boot(unsigned int r1, unsigned int r2, uns
/* Note that we do not use the hw timer so that this function works
* even if the system controller does not.
*/
static int check_ack()
static int check_ack(void)
{
int timeout;
int recognized;
Expand Down Expand Up @@ -87,7 +87,7 @@ static int check_ack()

#define MAX_FAILED 5

void serialboot()
void serialboot(void)
{
struct sfl_frame frame;
int failed;
Expand Down Expand Up @@ -230,7 +230,7 @@ static int tftp_get_v(unsigned int ip, const char *filename, char *buffer)
return r;
}

void netboot()
void netboot(void)
{
int size;
unsigned int cmdline_adr, initrdstart_adr, initrdend_adr;
Expand Down Expand Up @@ -332,7 +332,7 @@ static void lzma_error(char *x)
printf("LZMA error: %s\n", x);
}

void flashboot()
void flashboot(void)
{
unsigned int *flashbase;
unsigned int length;
Expand Down
6 changes: 3 additions & 3 deletions software/bios/boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#ifndef __BOOT_H
#define __BOOT_H

void serialboot();
void netboot();
void serialboot(void);
void netboot(void);
void fsboot(int devnr);
void flashboot();
void flashboot(void);

#endif /* __BOOT_H */
2 changes: 1 addition & 1 deletion software/bios/isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <hal/usb.h>
#include <hal/tmu.h>

void isr()
void isr(void)
{
unsigned int irqs;

Expand Down
14 changes: 7 additions & 7 deletions software/bios/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static void mdiow(char *reg, char *value)

/* Init + command line */

static void help()
static void help(void)
{
puts("Milkymist(tm) BIOS (bootloader)");
puts("Don't know what to do? Try 'flashboot'.\n");
Expand Down Expand Up @@ -470,7 +470,7 @@ static void do_command(char *c)
printf("Command not found\n");
}

static int test_user_abort()
static int test_user_abort(void)
{
char c;

Expand Down Expand Up @@ -500,7 +500,7 @@ int rescue;

extern unsigned int _edata;

static void crcbios()
static void crcbios(void)
{
unsigned int offset_bios;
unsigned int length;
Expand All @@ -525,7 +525,7 @@ static void crcbios()
}
}

static void print_mac()
static void print_mac(void)
{
unsigned char *macadr = (unsigned char *)FLASH_OFFSET_MAC_ADDRESS;

Expand All @@ -539,7 +539,7 @@ static const char banner[] =
"it under the terms of the GNU General Public License as published by\n"
"the Free Software Foundation, version 3 of the License.\n\n";

static void boot_sequence()
static void boot_sequence(void)
{
if(test_user_abort()) {
if(rescue) {
Expand Down Expand Up @@ -593,15 +593,15 @@ static void readstr(char *s, int size)
}
}

static void ethreset_delay()
static void ethreset_delay(void)
{
CSR_TIMER0_COUNTER = 0;
CSR_TIMER0_COMPARE = CSR_FREQUENCY >> 2;
CSR_TIMER0_CONTROL = TIMER_ENABLE;
while(CSR_TIMER0_CONTROL & TIMER_ENABLE);
}

static void ethreset()
static void ethreset(void)
{
CSR_MINIMAC_SETUP = MINIMAC_SETUP_PHYRST;
ethreset_delay();
Expand Down
2 changes: 1 addition & 1 deletion software/bios/splash.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

extern int rescue;

void splash_display()
void splash_display(void)
{
int i;
unsigned short *splash_src = rescue ? (unsigned short *)FLASH_OFFSET_RESCUE_SPLASH : (unsigned short *)FLASH_OFFSET_REGULAR_SPLASH;
Expand Down
2 changes: 1 addition & 1 deletion software/bios/splash.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
#ifndef __SPLASH_H
#define __SPLASH_H

void splash_display();
void splash_display(void);

#endif /* __SPLASH_H */

0 comments on commit 3aa9e9e

Please sign in to comment.