Module Name: src
Committed By: riastradh
Date: Fri Feb 11 17:30:48 UTC 2022
Modified Files:
src/sys/arch/playstation2/dev: sbus.c spd.c
src/sys/arch/playstation2/playstation2: mainbus.c
Log Message:
playstation2: Fix some pre-device_t/softc-split device private sizes.
Nothing appears to use device_private here, so let's not allocate
anything or ask for sizeof(struct device).
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/playstation2/dev/sbus.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/playstation2/dev/spd.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/playstation2/playstation2/mainbus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/playstation2/dev/sbus.c
diff -u src/sys/arch/playstation2/dev/sbus.c:1.19 src/sys/arch/playstation2/dev/sbus.c:1.20
--- src/sys/arch/playstation2/dev/sbus.c:1.19 Sat Aug 7 16:19:02 2021
+++ src/sys/arch/playstation2/dev/sbus.c Fri Feb 11 17:30:48 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: sbus.c,v 1.19 2021/08/07 16:19:02 thorpej Exp $ */
+/* $NetBSD: sbus.c,v 1.20 2022/02/11 17:30:48 riastradh Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.19 2021/08/07 16:19:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.20 2022/02/11 17:30:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -85,7 +85,7 @@ STATIC int sbus_search(device_t, cfdata_
const int *, void *);
STATIC int sbus_print(void *, const char *);
-CFATTACH_DECL_NEW(sbus, sizeof (struct device),
+CFATTACH_DECL_NEW(sbus, 0,
sbus_match, sbus_attach, NULL, NULL);
extern struct cfdriver sbus_cd;
Index: src/sys/arch/playstation2/dev/spd.c
diff -u src/sys/arch/playstation2/dev/spd.c:1.15 src/sys/arch/playstation2/dev/spd.c:1.16
--- src/sys/arch/playstation2/dev/spd.c:1.15 Sat Aug 7 16:19:02 2021
+++ src/sys/arch/playstation2/dev/spd.c Fri Feb 11 17:30:48 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: spd.c,v 1.15 2021/08/07 16:19:02 thorpej Exp $ */
+/* $NetBSD: spd.c,v 1.16 2022/02/11 17:30:48 riastradh Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.15 2021/08/07 16:19:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.16 2022/02/11 17:30:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -63,7 +63,7 @@ STATIC struct {
const char *name;
} __spd_table[2];
-CFATTACH_DECL_NEW(spd, sizeof(struct device),
+CFATTACH_DECL_NEW(spd, 0,
spd_match, spd_attach, NULL, NULL);
#ifdef DEBUG
Index: src/sys/arch/playstation2/playstation2/mainbus.c
diff -u src/sys/arch/playstation2/playstation2/mainbus.c:1.18 src/sys/arch/playstation2/playstation2/mainbus.c:1.19
--- src/sys/arch/playstation2/playstation2/mainbus.c:1.18 Sat Aug 7 16:19:02 2021
+++ src/sys/arch/playstation2/playstation2/mainbus.c Fri Feb 11 17:30:48 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.18 2021/08/07 16:19:02 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.19 2022/02/11 17:30:48 riastradh Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.18 2021/08/07 16:19:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.19 2022/02/11 17:30:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -41,7 +41,7 @@ static int mainbus_search(device_t, cfda
const int *, void *);
static int mainbus_print(void *, const char *);
-CFATTACH_DECL_NEW(mainbus, sizeof(struct device),
+CFATTACH_DECL_NEW(mainbus, 0,
mainbus_match, mainbus_attach, NULL, NULL);
static int