Re: 2.6.20-mm2

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

 



I used this patch to make vmlinux,
sorry if already fixed.
My .config is attached.
==

Fixes this link error. (found on ia64.)

  LD      .tmp_vmlinux1
`mon_bin_exit' referenced in section `.init.text' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o
`mon_text_exit' referenced in section `.init.text' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o

Signed-Off-By: KAMEZAWA Hiroyuki <[email protected]>

Index: devel-tree-2.6.20-mm2/drivers/usb/mon/mon_bin.c
===================================================================
--- devel-tree-2.6.20-mm2.orig/drivers/usb/mon/mon_bin.c
+++ devel-tree-2.6.20-mm2/drivers/usb/mon/mon_bin.c
@@ -1165,7 +1165,7 @@ err_dev:
 	return rc;
 }
 
-void __exit mon_bin_exit(void)
+void mon_bin_exit(void)
 {
 	cdev_del(&mon_bin_cdev);
 	unregister_chrdev_region(mon_bin_dev0, MON_BIN_MAX_MINOR);
Index: devel-tree-2.6.20-mm2/drivers/usb/mon/mon_text.c
===================================================================
--- devel-tree-2.6.20-mm2.orig/drivers/usb/mon/mon_text.c
+++ devel-tree-2.6.20-mm2/drivers/usb/mon/mon_text.c
@@ -520,7 +520,7 @@ int __init mon_text_init(void)
 	return 0;
 }
 
-void __exit mon_text_exit(void)
+void mon_text_exit(void)
 {
 	debugfs_remove(mon_dir);
 }
Index: devel-tree-2.6.20-mm2/drivers/usb/mon/usb_mon.h
===================================================================
--- devel-tree-2.6.20-mm2.orig/drivers/usb/mon/usb_mon.h
+++ devel-tree-2.6.20-mm2/drivers/usb/mon/usb_mon.h
@@ -56,10 +56,10 @@ int /*bool*/ mon_text_add(struct mon_bus
 void mon_text_del(struct mon_bus *mbus);
 // void mon_bin_add(struct mon_bus *);
 
-int __init mon_text_init(void);
-void __exit mon_text_exit(void);
-int __init mon_bin_init(void);
-void __exit mon_bin_exit(void);
+extern int mon_text_init(void) __init;
+extern void mon_text_exit(void);
+extern int  mon_bin_init(void) __init;
+extern void mon_bin_exit(void);
 
 /*
  * DMA interface.

Attachment: myconfig
Description: Binary data


[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