make k6_mtrr_funcs, i686_mtrr_funcs and mtrr_funcs const

remove extern definition for i686_mtrr_funcs from include/mtrr.h, it's
not used outside mtrr_i686.c
This commit is contained in:
jdolecek 2003-02-09 09:38:23 +00:00
parent d0e6f0f013
commit ced8cde749
3 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtrr_i686.c,v 1.6 2002/10/25 12:01:57 fvdl Exp $ */
/* $NetBSD: mtrr_i686.c,v 1.7 2003/02/09 09:38:23 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mtrr_i686.c,v 1.6 2002/10/25 12:01:57 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: mtrr_i686.c,v 1.7 2003/02/09 09:38:23 jdolecek Exp $");
#include "opt_multiprocessor.h"
@ -113,7 +113,7 @@ static struct mtrr_state *mtrr_fixed_raw;
static struct mtrr *mtrr_fixed;
static struct mtrr *mtrr_var;
struct mtrr_funcs i686_mtrr_funcs = {
const struct mtrr_funcs i686_mtrr_funcs = {
i686_mtrr_init_cpu,
i686_mtrr_reload_cpu,
i686_mtrr_clean,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtrr_k6.c,v 1.5 2002/10/25 12:01:57 fvdl Exp $ */
/* $NetBSD: mtrr_k6.c,v 1.6 2003/02/09 09:38:23 jdolecek Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mtrr_k6.c,v 1.5 2002/10/25 12:01:57 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: mtrr_k6.c,v 1.6 2003/02/09 09:38:23 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -71,7 +71,7 @@ mtrr_var_raw[] = {
static struct mtrr *mtrr_var;
struct mtrr_funcs k6_mtrr_funcs = {
const struct mtrr_funcs k6_mtrr_funcs = {
k6_mtrr_init_cpu,
k6_mtrr_reload_cpu,
k6_mtrr_clean,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtrr.h,v 1.5 2002/10/01 12:57:07 fvdl Exp $ */
/* $NetBSD: mtrr.h,v 1.6 2003/02/09 09:38:23 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -131,9 +131,8 @@ struct mtrr_funcs {
void (*dump)(const char *tag);
};
extern struct mtrr_funcs i686_mtrr_funcs;
extern struct mtrr_funcs k6_mtrr_funcs;
extern struct mtrr_funcs *mtrr_funcs;
extern const struct mtrr_funcs k6_mtrr_funcs;
extern const struct mtrr_funcs *mtrr_funcs;
#define mtrr_init_cpu(ci) mtrr_funcs->init_cpu(ci)
#define mtrr_reload_cpu(ci) mtrr_funcs->reload_cpu(ci)