Complete initializers so those files compile.

This commit is contained in:
cube 2007-01-13 18:42:45 +00:00
parent c80c56c733
commit 4cdd8aada6
6 changed files with 38 additions and 30 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dmover_io.c,v 1.24 2006/12/21 15:55:25 yamt Exp $ */
/* $NetBSD: dmover_io.c,v 1.25 2007/01/13 18:42:45 cube Exp $ */
/*
* Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.24 2006/12/21 15:55:25 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.25 2007/01/13 18:42:45 cube Exp $");
#include <sys/param.h>
#include <sys/queue.h>
@ -125,6 +125,7 @@ dev_type_open(dmoverioopen);
const struct cdevsw dmoverio_cdevsw = {
dmoverioopen, noclose, noread, nowrite, noioctl,
nostop, notty, nopoll, nommap, nokqfilter,
D_OTHER
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcf8583.c,v 1.6 2006/09/04 23:45:30 gdamore Exp $ */
/* $NetBSD: pcf8583.c,v 1.7 2007/01/13 18:42:45 cube Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@ -79,7 +79,7 @@ dev_type_write(pcfrtc_write);
const struct cdevsw pcfrtc_cdevsw = {
pcfrtc_open, pcfrtc_close, pcfrtc_read, pcfrtc_write, noioctl,
nostop, notty, nopoll, nommap, nokqfilter
nostop, notty, nopoll, nommap, nokqfilter, D_OTHER
};
static int pcfrtc_clock_read(struct pcfrtc_softc *, struct clock_ymdhms *,

View File

@ -1,4 +1,4 @@
/* $NetBSD: x1226.c,v 1.9 2006/09/04 23:45:30 gdamore Exp $ */
/* $NetBSD: x1226.c,v 1.10 2007/01/13 18:42:45 cube Exp $ */
/*
* Copyright (c) 2003 Shigeyuki Fukushima.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: x1226.c,v 1.9 2006/09/04 23:45:30 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: x1226.c,v 1.10 2007/01/13 18:42:45 cube Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -74,7 +74,7 @@ dev_type_write(xrtc_write);
const struct cdevsw xrtc_cdevsw = {
xrtc_open, xrtc_close, xrtc_read, xrtc_write,
noioctl, nostop, notty, nopoll, nommap, nokqfilter
noioctl, nostop, notty, nopoll, nommap, nokqfilter, D_OTHER
};
static int xrtc_clock_read(struct xrtc_softc *, struct clock_ymdhms *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: tga.c,v 1.63 2006/04/26 14:30:27 rpaulo Exp $ */
/* $NetBSD: tga.c,v 1.64 2007/01/13 18:42:45 cube Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.63 2006/04/26 14:30:27 rpaulo Exp $");
__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.64 2007/01/13 18:42:45 cube Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -121,6 +121,7 @@ struct wsdisplay_emulops tga_emulops = {
tga_copyrows,
tga_eraserows,
NULL,
NULL,
};
struct wsscreen_descr tga_stdscreen = {
@ -128,7 +129,8 @@ struct wsscreen_descr tga_stdscreen = {
0, 0, /* will be filled in -- XXX shouldn't, it's global */
&tga_emulops,
0, 0,
WSSCREEN_REVERSE
WSSCREEN_REVERSE,
NULL,
};
const struct wsscreen_descr *_tga_scrlist[] = {
@ -146,7 +148,9 @@ struct wsdisplay_accessops tga_accessops = {
tga_alloc_screen,
tga_free_screen,
tga_show_screen,
0 /* load_font */
NULL, /* load_font */
NULL,
NULL,
};
static void tga_blank(struct tga_devconfig *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_se.c,v 1.62 2006/09/07 02:40:33 dogcow Exp $ */
/* $NetBSD: if_se.c,v 1.63 2007/01/13 18:42:45 cube Exp $ */
/*
* Copyright (c) 1997 Ian W. Dall <ian.dall@dsto.defence.gov.au>
@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.62 2006/09/07 02:40:33 dogcow Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.63 2007/01/13 18:42:45 cube Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@ -150,24 +150,26 @@ int se_max_received = 0; /* Instrumentation */
#define PROTOCMD(p, d) \
((d) = (p))
#define PROTOCMD_DECL(name, val) \
static const struct scsi_ctron_ether_generic name = val
#define PROTOCMD_DECL(name) \
static const struct scsi_ctron_ether_generic name
#define PROTOCMD_DECL_SPECIAL(name, val) \
static const struct __CONCAT(scsi_,name) name = val
#define PROTOCMD_DECL_SPECIAL(name) \
static const struct __CONCAT(scsi_,name) name
/* Command initializers for commands using scsi_ctron_ether_generic */
PROTOCMD_DECL(ctron_ether_send, {CTRON_ETHER_SEND});
PROTOCMD_DECL(ctron_ether_add_proto, {CTRON_ETHER_ADD_PROTO});
PROTOCMD_DECL(ctron_ether_get_addr, {CTRON_ETHER_GET_ADDR});
PROTOCMD_DECL(ctron_ether_set_media, {CTRON_ETHER_SET_MEDIA});
PROTOCMD_DECL(ctron_ether_set_addr, {CTRON_ETHER_SET_ADDR});
PROTOCMD_DECL(ctron_ether_set_multi, {CTRON_ETHER_SET_MULTI});
PROTOCMD_DECL(ctron_ether_remove_multi, {CTRON_ETHER_REMOVE_MULTI});
PROTOCMD_DECL(ctron_ether_send) = {CTRON_ETHER_SEND, 0, {0,0}, 0};
PROTOCMD_DECL(ctron_ether_add_proto) = {CTRON_ETHER_ADD_PROTO, 0, {0,0}, 0};
PROTOCMD_DECL(ctron_ether_get_addr) = {CTRON_ETHER_GET_ADDR, 0, {0,0}, 0};
PROTOCMD_DECL(ctron_ether_set_media) = {CTRON_ETHER_SET_MEDIA, 0, {0,0}, 0};
PROTOCMD_DECL(ctron_ether_set_addr) = {CTRON_ETHER_SET_ADDR, 0, {0,0}, 0};
PROTOCMD_DECL(ctron_ether_set_multi) = {CTRON_ETHER_SET_MULTI, 0, {0,0}, 0};
PROTOCMD_DECL(ctron_ether_remove_multi) =
{CTRON_ETHER_REMOVE_MULTI, 0, {0,0}, 0};
/* Command initializers for commands using their own structures */
PROTOCMD_DECL_SPECIAL(ctron_ether_recv, {CTRON_ETHER_RECV});
PROTOCMD_DECL_SPECIAL(ctron_ether_set_mode, {CTRON_ETHER_SET_MODE});
PROTOCMD_DECL_SPECIAL(ctron_ether_recv) = {CTRON_ETHER_RECV};
PROTOCMD_DECL_SPECIAL(ctron_ether_set_mode) =
{CTRON_ETHER_SET_MODE, 0, {0,0}, 0};
struct se_softc {
struct device sc_dev;
@ -239,7 +241,7 @@ dev_type_ioctl(seioctl);
const struct cdevsw se_cdevsw = {
seopen, seclose, noread, nowrite, seioctl,
nostop, notty, nopoll, nommap, nokqfilter,
nostop, notty, nopoll, nommap, nokqfilter, D_OTHER
};
const struct scsipi_periphsw se_switch = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: wscons_rfont.h,v 1.3 2005/12/11 12:24:12 christos Exp $ */
/* $NetBSD: wscons_rfont.h,v 1.4 2007/01/13 18:42:45 cube Exp $ */
/*
* Copyright (c) 1992, 1993
@ -890,7 +890,8 @@ static u_int32_t gallant19_126_pixels[] = {
};
static struct raster gallant19_126 = { 12, 22, 1, 1, gallant19_126_pixels, 0 };
#define null2 {0}, {0}
#define null1 {0, 0, 0, 0, 0}
#define null2 null1, null1
#define null4 null2, null2
#define null8 null4, null4
#define null16 null8, null8
@ -997,7 +998,7 @@ struct raster_font gallant19 = {
{ &gallant19_124, 0, -15, 12, 0 },
{ &gallant19_125, 0, -15, 12, 0 },
{ &gallant19_126, 0, -15, 12, 0 },
{ 0 },
null1,
null128
},
#ifdef COLORFONT_CACHE