Enable and fix prototype warnings.
This commit is contained in:
parent
7a0ccae4d3
commit
27d0a967bd
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.13 2008/05/31 01:43:57 nisimura Exp $
|
||||
# $NetBSD: Makefile,v 1.14 2009/01/12 08:06:54 tsutsui Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
|
@ -8,12 +8,13 @@ SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
|
|||
atawd.c pciide.c siisata.c printf.c
|
||||
CLEANFILES+= vers.c vers.o ${PROG} ${PROG}.bin
|
||||
CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple
|
||||
CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
|
||||
CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP
|
||||
CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
|
||||
#CPPFLAGS+= -DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600
|
||||
#CPPFLAGS+= -DTICKS_PER_SEC=(133333333/4)
|
||||
#CPPFLAGS+= -DSTART_DDB_SESSION
|
||||
CPPFLAGS+= -Wall -nostdinc -I. -I${.OBJDIR} -I${S}
|
||||
CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S}
|
||||
DBG= -Os
|
||||
|
||||
# XXX SHOULD NOT NEED TO DEFINE THESE!
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atawd.c,v 1.7 2008/05/14 23:14:11 nisimura Exp $ */
|
||||
/* $NetBSD: atawd.c,v 1.8 2009/01/12 08:06:54 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -80,7 +80,7 @@ static int wd_get_params(struct wd_softc *);
|
|||
static int wdgetdisklabel(struct wd_softc *);
|
||||
|
||||
int atac_init(unsigned);
|
||||
int atac_probe(struct atacdv *);
|
||||
int atac_probe(void *);
|
||||
static int atac_wait_for_ready(struct atac_channel *);
|
||||
static int atac_exec_identify(struct wd_softc *, void *);
|
||||
static int atac_read_block(struct wd_softc *, struct atac_command *);
|
||||
|
@ -191,7 +191,7 @@ atac_init(unsigned tag)
|
|||
}
|
||||
|
||||
int
|
||||
atatc_probe(void *atac)
|
||||
atac_probe(void *atac)
|
||||
{
|
||||
struct atac_softc *l = atac;
|
||||
struct wd_softc *wd;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: brdsetup.c,v 1.1 2008/05/30 14:54:16 nisimura Exp $ */
|
||||
/* $NetBSD: brdsetup.c,v 1.2 2009/01/12 08:06:54 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -32,6 +32,9 @@
|
|||
#include <sys/param.h>
|
||||
|
||||
#include <lib/libsa/stand.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
||||
#include <lib/libsa/net.h>
|
||||
#include <lib/libkern/libkern.h>
|
||||
|
||||
#include "globals.h"
|
||||
|
@ -39,10 +42,13 @@
|
|||
const unsigned dcache_line_size = 32; /* 32B linesize */
|
||||
const unsigned dcache_range_size = 4 * 1024; /* 16KB / 4-way */
|
||||
|
||||
void brdsetup(void);
|
||||
unsigned mpc107memsize(void);
|
||||
void setup_82C686B(void);
|
||||
void setup_83C553F(void);
|
||||
|
||||
static inline u_quad_t mftb(void);
|
||||
|
||||
unsigned uartbase;
|
||||
#define THR 0
|
||||
#define DLB 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: printf.c,v 1.5 2008/04/28 20:23:34 martin Exp $ */
|
||||
/* $NetBSD: printf.c,v 1.6 2009/01/12 08:06:54 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -35,13 +35,13 @@
|
|||
|
||||
#include <sys/types.h>
|
||||
#include <machine/stdarg.h>
|
||||
#include <lib/libsa/stand.h>
|
||||
|
||||
#define MAXSTR 80
|
||||
|
||||
static int _doprnt(int (*)(int), const char *, va_list);
|
||||
static void pr_int();
|
||||
static int sputchar(int);
|
||||
extern int putchar(int);
|
||||
static int _doprnt(void (*)(int), const char *, va_list);
|
||||
static void pr_int(unsigned long, int, char *);
|
||||
static void sputchar(int);
|
||||
|
||||
static char *sbuf, *ebuf;
|
||||
|
||||
|
@ -56,13 +56,10 @@ printf(const char *fmt, ...)
|
|||
}
|
||||
|
||||
void
|
||||
vprintf(const char *fmt, ...)
|
||||
vprintf(const char *fmt, va_list ap)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
_doprnt(putchar, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -93,7 +90,7 @@ snprintf(char *buf, size_t size, const char *fmt, ...)
|
|||
|
||||
static int
|
||||
_doprnt(func, fmt, ap)
|
||||
int (*func)(int); /* Function to put a character */
|
||||
void (*func)(int); /* Function to put a character */
|
||||
const char *fmt; /* Format string for pr_int/pr_float */
|
||||
va_list ap; /* Arguments to pr_int/pr_float */
|
||||
{
|
||||
|
@ -254,12 +251,11 @@ static void pr_int(lval, base, s)
|
|||
;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
sputchar(c)
|
||||
int c;
|
||||
{
|
||||
|
||||
if (sbuf < ebuf)
|
||||
*sbuf++ = c;
|
||||
return c;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rge.c,v 1.13 2008/05/30 14:54:16 nisimura Exp $ */
|
||||
/* $NetBSD: rge.c,v 1.14 2009/01/12 08:06:54 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -57,6 +57,7 @@
|
|||
#define DELAY(n) delay(n)
|
||||
#define ALLOC(T,A) (T *)((unsigned)alloc(sizeof(T) + (A)) &~ ((A) - 1))
|
||||
|
||||
int rge_match(unsigned, void *);
|
||||
void *rge_init(unsigned, void *);
|
||||
int rge_send(void *, char *, unsigned);
|
||||
int rge_recv(void *, char *, unsigned, unsigned);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tlp.c,v 1.19 2008/05/30 14:54:16 nisimura Exp $ */
|
||||
/* $NetBSD: tlp.c,v 1.20 2009/01/12 08:06:54 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -53,6 +53,7 @@
|
|||
#define DELAY(n) delay(n)
|
||||
#define ALLOC(T,A) (T *)((unsigned)alloc(sizeof(T) + (A)) &~ ((A) - 1))
|
||||
|
||||
int tlp_match(unsigned, void *);
|
||||
void *tlp_init(unsigned, void *);
|
||||
int tlp_send(void *, char *, unsigned);
|
||||
int tlp_recv(void *, char *, unsigned, unsigned);
|
||||
|
|
Loading…
Reference in New Issue