From: Eric Engestrom Date: Thu, 17 Mar 2016 21:20:57 +0000 (-0700) Subject: procfs: add conditional compilation check X-Git-Tag: Ubuntu-4.8.0-22.24~1656^2~43 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b5946beaa9ee6a3c0bb35db49adecf795fb159d2;p=mirror_ubuntu-zesty-kernel.git procfs: add conditional compilation check `proc_timers_operations` is only used when CONFIG_CHECKPOINT_RESTORE is enabled. Signed-off-by: Eric Engestrom Acked-by: Cyrill Gorcunov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/base.c b/fs/proc/base.c index 35f583ad7dbe..9e42411eef3f 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -2158,6 +2158,7 @@ static const struct file_operations proc_map_files_operations = { .llseek = default_llseek, }; +#ifdef CONFIG_CHECKPOINT_RESTORE struct timers_private { struct pid *pid; struct task_struct *task; @@ -2256,6 +2257,7 @@ static const struct file_operations proc_timers_operations = { .llseek = seq_lseek, .release = seq_release_private, }; +#endif static ssize_t timerslack_ns_write(struct file *file, const char __user *buf, size_t count, loff_t *offset)