From: Adrian Bunk This patch moves the extern of struct proc_kmsg_operations to fs/proc/internal.h and adds an #include "internal.h" to fs/proc/kmsg.c so that the latter sees the former. Signed-off-by: Adrian Bunk Cc: Alexey Dobriyan Signed-off-by: Andrew Morton --- fs/proc/internal.h | 1 + fs/proc/kmsg.c | 2 ++ include/linux/proc_fs.h | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff -puN fs/proc/internal.h~move-proc_kmsg_operations-to-fs-proc-internalh fs/proc/internal.h --- a/fs/proc/internal.h~move-proc_kmsg_operations-to-fs-proc-internalh +++ a/fs/proc/internal.h @@ -63,6 +63,7 @@ extern const struct file_operations proc extern const struct file_operations proc_clear_refs_operations; extern const struct file_operations proc_pagemap_operations; extern const struct file_operations proc_net_operations; +extern const struct file_operations proc_kmsg_operations; extern const struct inode_operations proc_net_inode_operations; void free_proc_entry(struct proc_dir_entry *de); diff -puN fs/proc/kmsg.c~move-proc_kmsg_operations-to-fs-proc-internalh fs/proc/kmsg.c --- a/fs/proc/kmsg.c~move-proc_kmsg_operations-to-fs-proc-internalh +++ a/fs/proc/kmsg.c @@ -15,6 +15,8 @@ #include #include +#include "internal.h" + extern wait_queue_head_t log_wait; extern int do_syslog(int type, char __user *bug, int count); diff -puN include/linux/proc_fs.h~move-proc_kmsg_operations-to-fs-proc-internalh include/linux/proc_fs.h --- a/include/linux/proc_fs.h~move-proc_kmsg_operations-to-fs-proc-internalh +++ a/include/linux/proc_fs.h @@ -138,7 +138,6 @@ extern int proc_readdir(struct file *, v extern struct dentry *proc_lookup(struct inode *, struct dentry *, struct nameidata *); extern const struct file_operations proc_kcore_operations; -extern const struct file_operations proc_kmsg_operations; extern const struct file_operations ppc_htab_operations; extern int pid_ns_prepare_proc(struct pid_namespace *ns); _