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
- References:
- 2.6.20-mm2
- From: Andrew Morton <[email protected]>
- 2.6.20-mm2
- Prev by Date: Re: [BUG?] register_blkdev: failed to get major for device mapper
- Next by Date: Re: 2.6.20-rc6 libata PATA ATAPI CDROM is not working
- Previous by thread: Re: [-mm patch] fs/9p/vfs_addr.c: make 2 functions static
- Next by thread: Re: 2.6.20-mm2
- Index(es):