Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi iscsi_attrs is not used when iscsi(4) is compi...
details: https://anonhg.NetBSD.org/src/rev/dc1c3dce6834
branches: trunk
changeset: 333985:dc1c3dce6834
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Nov 24 21:49:17 2014 +0000
description:
iscsi_attrs is not used when iscsi(4) is compiled into the kernel.
diffstat:
sys/dev/iscsi/iscsi_main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 00ebcec426bb -r dc1c3dce6834 sys/dev/iscsi/iscsi_main.c
--- a/sys/dev/iscsi/iscsi_main.c Mon Nov 24 17:29:02 2014 +0000
+++ b/sys/dev/iscsi/iscsi_main.c Mon Nov 24 21:49:17 2014 +0000
@@ -506,12 +506,14 @@
#include <sys/module.h>
MODULE(MODULE_CLASS_DRIVER, iscsi, NULL);
+
+#ifdef _MODULE
static const struct cfiattrdata ibescsi_info = { "scsi", 1,
{{"channel", "-1", -1},}
};
+
static const struct cfiattrdata *const iscsi_attrs[] = { &ibescsi_info, NULL };
-#ifdef _MODULE
CFDRIVER_DECL(iscsi, DV_DULL, iscsi_attrs);
static struct cfdata iscsi_cfdata[] = {
Home |
Main Index |
Thread Index |
Old Index