diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-08-31 04:32:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-31 04:32:02 -0700 |
| commit | 09952a581aae48a700e0b49ab3bffc41f3ee140a (patch) | |
| tree | 65a8ac80627d1fbbc4220964225ab696b24fbb24 /include/linux | |
| parent | 22cfa91bab3fb02c015a2f6cfa2b84f0dc34f652 (diff) | |
[PATCH] Fix build with CONFIG_KCORE_AOUT
We get a linkage error with CONFIG_KCORE_AOUT because there is no
implementation of kclist_add() and kclist_del().
Also fix a warning in the a.out version of read_kcore().
Maybe we should just remove kcore a.out support. m68knommu and h8300 are
setting CONFIG_KCORE_AOUT in their defconfigs though.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/proc_fs.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 9054f5686f04..254ae163c628 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -182,12 +182,6 @@ static inline void proc_net_remove(const char *name) remove_proc_entry(name,proc_net); } -/* - * fs/proc/kcore.c - */ -extern void kclist_add(struct kcore_list *, void *, size_t); -extern struct kcore_list *kclist_del(void *); - #else #define proc_root_driver NULL @@ -223,6 +217,9 @@ static inline void proc_tty_unregister_driver(struct tty_driver *driver) {}; extern struct proc_dir_entry proc_root; +#endif /* CONFIG_PROC_FS */ + +#if !defined(CONFIG_PROC_FS) || defined(CONFIG_KCORE_AOUT) static inline void kclist_add(struct kcore_list *new, void *addr, size_t size) { } @@ -230,8 +227,10 @@ static inline struct kcore_list * kclist_del(void *addr) { return NULL; } - -#endif /* CONFIG_PROC_FS */ +#else +extern void kclist_add(struct kcore_list *, void *, size_t); +extern struct kcore_list *kclist_del(void *); +#endif struct proc_inode { struct task_struct *task; |
