Re: 2.6.12-rc1-mm2 (patch to fix build error In function `zft_init')

Steven Cole
2005-03-24T15:55:59Z

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Steven Cole wrote:
> I'm getting the following build error with 2.6.12-rc1-mm2:
>
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> drivers/built-in.o(.init.text+0x4323): In function `zft_init':
> : undefined reference to `class_device_creat'
> make: *** [.tmp_vmlinux1] Error 1
>

I glanced at the code, and this little patch fixes the problem:

Steven

[-- Attachment #2: patch-zftape-init-smallfix --]
[-- Type: text/plain, Size: 617 bytes --]

Signed-off by: Steven Cole <elenstev@mesatop.com>

--- linux-2.6.12-rc1-mm2/drivers/char/ftape/zftape/zftape-init.c.orig 2005-03-24 08:43:30.000000000 -0700
+++ linux-2.6.12-rc1-mm2/drivers/char/ftape/zftape/zftape-init.c 2005-03-24 08:43:56.000000000 -0700
@@ -331,7 +331,7 @@

zft_class = class_create(THIS_MODULE, "zft");
for (i = 0; i < 4; i++) {
- class_device_creat(zft_class, MKDEV(QIC117_TAPE_MAJOR, i), NULL, "qft%i", i);
+ class_device_create(zft_class, MKDEV(QIC117_TAPE_MAJOR, i), NULL, "qft%i", i);
devfs_mk_cdev(MKDEV(QIC117_TAPE_MAJOR, i),
S_IFCHR | S_IRUSR | S_IWUSR,
"qft%i", i);