Re: 2.6.20-mm2
From: KAMEZAWA Hiroyuki
Date: Tue Feb 20 2007 - 02:41:15 EST
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 <kamezawa.hiroyu@xxxxxxxxxxxxxx>
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