diff options
author | phk <phk@FreeBSD.org> | 2002-09-28 17:15:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-28 17:15:38 +0000 |
commit | 1dfc2c167f0c0ee95c98088b2c05b50350b97ddb (patch) | |
tree | 072f805928e7e540a4d2c0a3a7ec37f7529204a0 /sys/i386 | |
parent | 523f5243860c40ec5c7a3e961080d6035dbcb435 (diff) | |
download | FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.zip FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.tar.gz |
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too.
Inspired by: FlexeLint warning #512
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/initcpu.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/trap.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/npx.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/i386/initcpu.c b/sys/i386/i386/initcpu.c index 7bc83f8..65464c2 100644 --- a/sys/i386/i386/initcpu.c +++ b/sys/i386/i386/initcpu.c @@ -489,7 +489,7 @@ init_ppro(void) * Initialize BBL_CR_CTL3 (Control register 3: used to configure the * L2 cache). */ -void +static void init_mendocino(void) { #ifdef CPU_PPRO2CELERON diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 1318ebb..57e54c6 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -466,7 +466,7 @@ pmap_set_opt(void) } } -void * +static void * pmap_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) { *flags = UMA_SLAB_PRIV; diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index cdfc327..444bcf3 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -671,7 +671,7 @@ out: return; } -int +static int trap_pfault(frame, usermode, eva) struct trapframe *frame; int usermode; diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index 29e5f06..bbb7253 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -453,7 +453,7 @@ no_irq13: /* * Attach routine - announce which it is, and wire into system */ -int +static int npx_attach(dev) device_t dev; { |