diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-29 09:21:26 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-29 09:21:26 -0700 |
| commit | b129cd766ba760481bdb375d3ec1a3344a37db28 (patch) | |
| tree | 649c3cee7c2fa50a4ae0cf780777cefffd39a956 /include/linux | |
| parent | a1b4b27a120e9c670b657d5f33adc2e6ee5c117e (diff) | |
[PATCH] Fix CONFIG_PROCFS=n
From: Manfred Spraul <manfred@colorfullife.com>
three build fixes for CONFIG_PROC_FS=n:
include/linux/procfs.h:
- add missing proc_pid_unhash, proc_pid_flush declarations. static
inline functions that do nothing.
- move semicolons around for kclist_{add,del}. gcc-3.2.2 doesn't like
the current syntax.
drivers/net/pppoe.c:
- proc_net doesn't exist if CONFIG_PROC_FS=n.
drivers/scsi/scsi_priv.h:
- add missing brackets to macro definition.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/proc_fs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 4607df82fd93..d099b44dd2f0 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -187,6 +187,9 @@ static inline struct proc_dir_entry *proc_net_create(const char *name, mode_t mo get_info_t *get_info) {return NULL;} static inline void proc_net_remove(const char *name) {} +static inline struct dentry *proc_pid_unhash(struct task_struct *p) { return NULL; } +static inline void proc_pid_flush(struct dentry *proc_dentry) { } + static inline struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode, struct proc_dir_entry *parent) { return NULL; } @@ -212,6 +215,14 @@ static inline void proc_tty_unregister_driver(struct tty_driver *driver) {}; extern struct proc_dir_entry proc_root; +static inline void kclist_add(struct kcore_list *new, void *addr, size_t size) +{ +} +static inline struct kcore_list * kclist_del(void *addr) +{ + return NULL; +} + #endif /* CONFIG_PROC_FS */ struct proc_inode { |
