X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fproc%2Finternal.h;h=f771889183c36fe52062267ffde5d139ca18c76b;hb=436058a49e0fb91c74454dbee9cfee6fb53b4336;hp=987c773dbb20a04f002ac03ae5f8ee522ba57cce;hpb=e823aff2d6eb43083abcc75a32ddfb167c324089;p=powerpc.git diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 987c773dbb..f771889183 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -11,6 +11,12 @@ #include +#ifdef CONFIG_PROC_SYSCTL +extern int proc_sys_init(void); +#else +static inline void proc_sys_init(void) { } +#endif + struct vmalloc_info { unsigned long used; unsigned long largest_chunk; @@ -38,13 +44,13 @@ extern int proc_tgid_stat(struct task_struct *, char *); extern int proc_pid_status(struct task_struct *, char *); extern int proc_pid_statm(struct task_struct *, char *); -extern struct file_operations proc_maps_operations; -extern struct file_operations proc_numa_maps_operations; -extern struct file_operations proc_smaps_operations; +extern const struct file_operations proc_maps_operations; +extern const struct file_operations proc_numa_maps_operations; +extern const struct file_operations proc_smaps_operations; -extern struct file_operations proc_maps_operations; -extern struct file_operations proc_numa_maps_operations; -extern struct file_operations proc_smaps_operations; +extern const struct file_operations proc_maps_operations; +extern const struct file_operations proc_numa_maps_operations; +extern const struct file_operations proc_smaps_operations; void free_proc_entry(struct proc_dir_entry *de);