Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345978

[PATCH] procfs: add conditional compilation check

From Eric Engestrom <eric.engestrom@imgtec.com>
Newsgroups linux.kernel
Subject [PATCH] procfs: add conditional compilation check
Date 2016-02-29 17:40 +0100
Message-ID <r7z1x-5sW-27@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


`proc_timers_operations` is only used when CONFIG_CHECKPOINT_RESTORE
is enabled.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 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

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] procfs: add conditional compilation check Eric Engestrom <eric.engestrom@imgtec.com> - 2016-02-29 17:40 +0100
  Re: [PATCH] procfs: add conditional compilation check Cyrill Gorcunov <gorcunov@gmail.com> - 2016-02-29 18:00 +0100

csiph-web