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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Signed-off by: Steven Cole <[email protected]>

--- 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);

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux