[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070220163959.ee958747.kamezawa.hiroyu@jp.fujitsu.com>
Date: Tue, 20 Feb 2007 16:39:59 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: 2.6.20-mm2
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@...fujitsu.com>
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.
Download attachment "myconfig" of type "application/octet-stream" (56940 bytes)
Powered by blists - more mailing lists