From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755596AbcB2Qak (ORCPT ); Mon, 29 Feb 2016 11:30:40 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:3692 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbcB2Qag (ORCPT ); Mon, 29 Feb 2016 11:30:36 -0500 From: Eric Engestrom To: Andrew Morton , Al Viro , Kees Cook , Alexey Dobriyan , Cyrill Gorcunov , Ingo Molnar , Mateusz Guzik , Calvin Owens , Joe Perches , David Howells , CC: Eric Engestrom Subject: [PATCH] procfs: add conditional compilation check Date: Mon, 29 Feb 2016 16:30:37 +0000 Message-ID: <1456763437-32572-1-git-send-email-eric.engestrom@imgtec.com> X-Mailer: git-send-email 2.7.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.60.4.28] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org `proc_timers_operations` is only used when CONFIG_CHECKPOINT_RESTORE is enabled. Signed-off-by: Eric Engestrom --- fs/proc/base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/proc/base.c b/fs/proc/base.c index 4f764c2..28fc7a3 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 int proc_pident_instantiate(struct inode *dir, struct dentry *dentry, struct task_struct *task, const void *ptr) -- 2.7.1