linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb
@ 2003-07-10  5:23 Jeff Chua
  2003-07-10 11:15 ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Chua @ 2003-07-10  5:23 UTC (permalink / raw)
  To: Marcelo Tosatti, Linux Kernel


Marcelo,

The following patch fixes problem when CONFIG_BLK_DEV_CMD640=y

depmod: *** Unresolved symbols in /lib/modules/2.4.22-pre4/kernel/drivers/ide/ide-core.o
depmod:         init_cmd640_vlb

init_cmd640_vlb() doesn't exist. This patch removes the function call so
that ide can be loaded as a module.

Thanks,
Jeff.

--- drivers/ide/ide.c	Thu Jul 10 13:03:49 2003
+++ drivers/ide/ide.c.new	Thu Jul 10 13:03:55 2003
@@ -2112,8 +2112,6 @@
 #ifdef CONFIG_BLK_DEV_CMD640
 			case -14: /* "cmd640_vlb" */
 			{
-				extern void init_cmd640_vlb (void);
-				init_cmd640_vlb();
 				goto done;
 			}
 #endif /* CONFIG_BLK_DEV_CMD640 */



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb
  2003-07-10  5:23 [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb Jeff Chua
@ 2003-07-10 11:15 ` Alan Cox
  2003-07-10 13:51   ` James Bourne
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2003-07-10 11:15 UTC (permalink / raw)
  To: Jeff Chua; +Cc: Marcelo Tosatti, Linux Kernel Mailing List

On Iau, 2003-07-10 at 06:23, Jeff Chua wrote:
> Marcelo,
> 
> The following patch fixes problem when CONFIG_BLK_DEV_CMD640=y
> 
> depmod: *** Unresolved symbols in /lib/modules/2.4.22-pre4/kernel/drivers/ide/ide-core.o
> depmod:         init_cmd640_vlb
> 
> init_cmd640_vlb() doesn't exist. This patch removes the function call so
> that ide can be loaded as a module.

And stops it working for everyone else. The function does exist too. See
drivers/ide/pci/cmd640.c





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb
  2003-07-10 11:15 ` Alan Cox
@ 2003-07-10 13:51   ` James Bourne
  2003-07-10 18:27     ` Jeff Chua
  0 siblings, 1 reply; 5+ messages in thread
From: James Bourne @ 2003-07-10 13:51 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jeff Chua, Marcelo Tosatti, Linux Kernel Mailing List

[-- Attachment #1: Type: TEXT/PLAIN, Size: 646 bytes --]

On 10 Jul 2003, Alan Cox wrote:

> And stops it working for everyone else. The function does exist too. See
> drivers/ide/pci/cmd640.c

Isn't this just an issue of doing an export_symbol?

Here's a patch that does that exact thing, I haven't tested it though.

Regards
James

-- 
James Bourne                  | Email:            jbourne@hardrock.org          
Unix Systems Administrator    | WWW:           http://www.hardrock.org
Custom Unix Programming       | Linux:  The choice of a GNU generation
----------------------------------------------------------------------
 "All you need's an occasional kick in the philosophy." Frank Herbert  

[-- Attachment #2: Type: TEXT/PLAIN, Size: 327 bytes --]

--- linux/drivers/ide/pci/cmd640.c~	Thu Jul 10 07:45:30 2003
+++ linux/drivers/ide/pci/cmd640.c	Thu Jul 10 07:45:30 2003
@@ -125,6 +125,12 @@
 static int cmd640_vlb = 0;
 
 /*
+ * export init_cmd640_vlb for ide-core
+ */
+ 
+EXPORT_SYMBOL(init_cmd640_vlb);
+
+/*
  * CMD640 specific registers definition.
  */
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb
  2003-07-10 13:51   ` James Bourne
@ 2003-07-10 18:27     ` Jeff Chua
  2003-07-11  5:48       ` Jeff Chua
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Chua @ 2003-07-10 18:27 UTC (permalink / raw)
  To: James Bourne
  Cc: Alan Cox, Jeff Chua, Marcelo Tosatti, Linux Kernel Mailing List

On Thu, 10 Jul 2003, James Bourne wrote:

> On 10 Jul 2003, Alan Cox wrote:
>
> > And stops it working for everyone else. The function does exist too. See
> > drivers/ide/pci/cmd640.c

Sorry. Missed this one.


> Here's a patch that does that exact thing, I haven't tested it though.
>

"make" doesn't seem to pick up ide/pci/cmd640.c when IDE is compiled as a
module.

	touch drivers/ide/pci/cmd640.c; make; make modules;
	*** it doesn't compile cmd640.c


Jeff






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb
  2003-07-10 18:27     ` Jeff Chua
@ 2003-07-11  5:48       ` Jeff Chua
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Chua @ 2003-07-11  5:48 UTC (permalink / raw)
  To: Jeff Chua
  Cc: James Bourne, Alan Cox, Jeff Chua, Marcelo Tosatti,
	Linux Kernel Mailing List


One more thing ... when compiled as a module, DMA can't be enabled!
If compiled as non-modules (CONFIG_IDE=y, CONFIG_BLK_DEV_IDE=y), DMA works
fine.


# hdparm -d 1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)



My .config ...

	CONFIG_IDE=m
	CONFIG_BLK_DEV_IDE=m
	CONFIG_BLK_DEV_IDEDISK=m
	CONFIG_IDEDISK_MULTI_MODE=y
	CONFIG_BLK_DEV_CMD640=y
	CONFIG_BLK_DEV_CMD640_ENHANCED=y
	CONFIG_BLK_DEV_IDEPCI=y
	CONFIG_IDEPCI_SHARE_IRQ=y
	CONFIG_BLK_DEV_IDEDMA_PCI=y
	CONFIG_IDEDMA_PCI_AUTO=y
	CONFIG_BLK_DEV_IDEDMA=y
	CONFIG_BLK_DEV_PIIX=y
	CONFIG_IDEDMA_AUTO=y
	CONFIG_BLK_DEV_IDE_MODES=y



Thanks,
Jeff
[ jchua@fedex.com ]

On Fri, 11 Jul 2003, Jeff Chua wrote:

> On Thu, 10 Jul 2003, James Bourne wrote:
>
> > On 10 Jul 2003, Alan Cox wrote:
> >
> > > And stops it working for everyone else. The function does exist too. See
> > > drivers/ide/pci/cmd640.c
>
> Sorry. Missed this one.
>
>
> > Here's a patch that does that exact thing, I haven't tested it though.
> >
>
> "make" doesn't seem to pick up ide/pci/cmd640.c when IDE is compiled as a
> module.
>
> 	touch drivers/ide/pci/cmd640.c; make; make modules;
> 	*** it doesn't compile cmd640.c
>
>
> Jeff
>
>
>
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-11  5:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-10  5:23 [PATCH] 2.4.22-pre4 ide module fix init_cmd640_vlb Jeff Chua
2003-07-10 11:15 ` Alan Cox
2003-07-10 13:51   ` James Bourne
2003-07-10 18:27     ` Jeff Chua
2003-07-11  5:48       ` Jeff Chua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).