Re: [PATCH 2.6.5] Add sysfs class support to fs/coda/psdev.c

From: Hanna Linder
Date: Thu Apr 08 2004 - 17:49:09 EST


--On Friday, April 09, 2004 12:02:19 AM +0200 Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote:

>> +static struct class_simple coda_psdev_class;
>
> I think coda_psdev_class must be a pointer.
>
> Regards
>
> Marcel


Doh! I tested on one system and fixed this there. Then accidentally mailed out the
original. Sorry about that. Here is a patch to fix it:

diff -Nrup -Xdontdiff linux-2.6.5/fs/coda/psdev.c linux-2.6.5p/fs/coda/psdev.c
--- linux-2.6.5/fs/coda/psdev.c 2004-04-08 15:37:06.000000000 -0700
+++ linux-2.6.5p/fs/coda/psdev.c 2004-04-08 15:37:15.000000000 -0700
@@ -62,7 +62,7 @@ unsigned long coda_timeout = 30; /* .. s


struct venus_comm coda_comms[MAX_CODADEVS];
-static struct class_simple coda_psdev_class;
+static struct class_simple *coda_psdev_class;

/*
* Device operations


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/