Skip to contentSkip to conversation

fix megaraid.c with PROC_FS=n

PATCH New Adrian Bunk 1 participant 1 message Aug 9, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix megaraid.c with PROC_FS=n

I got the following compile error with CONFIG_PROC_FS=n:

<-- snip -->

...
LD .tmp_vmlinux1
drivers/built-in.o(.text+0x524563): In function `megaraid_probe_one':
: undefined reference to `mega_create_proc_entry'
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

The following patch fixes this issue:

drivers/scsi/megaraid.c renamed from drivers/scsi/megaraid.c.old +2 -0
@@ -4905,7 +4905,9 @@
 
 	pci_set_drvdata(pdev, host);
 
+#ifdef CONFIG_PROC_FS
 	mega_create_proc_entry(hba_count, mega_proc_dir_entry);
+#endif
 
 	error = scsi_add_host(host, &pdev->dev);
 	if (error)