public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] procfs: add conditional compilation check
@ 2016-02-29 16:30 Eric Engestrom
  2016-02-29 16:59 ` Cyrill Gorcunov
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Engestrom @ 2016-02-29 16:30 UTC (permalink / raw)
  To: Andrew Morton, Al Viro, Kees Cook, Alexey Dobriyan,
	Cyrill Gorcunov, Ingo Molnar, Mateusz Guzik, Calvin Owens,
	Joe Perches, David Howells, linux-kernel
  Cc: Eric Engestrom

`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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] procfs: add conditional compilation check
  2016-02-29 16:30 [PATCH] procfs: add conditional compilation check Eric Engestrom
@ 2016-02-29 16:59 ` Cyrill Gorcunov
  0 siblings, 0 replies; 2+ messages in thread
From: Cyrill Gorcunov @ 2016-02-29 16:59 UTC (permalink / raw)
  To: Eric Engestrom
  Cc: Andrew Morton, Al Viro, Kees Cook, Alexey Dobriyan, Ingo Molnar,
	Mateusz Guzik, Calvin Owens, Joe Perches, David Howells,
	linux-kernel

On Mon, Feb 29, 2016 at 04:30:37PM +0000, Eric Engestrom wrote:
> `proc_timers_operations` is only used when CONFIG_CHECKPOINT_RESTORE
> is enabled.
> 
> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>

Thank you!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-29 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 16:30 [PATCH] procfs: add conditional compilation check Eric Engestrom
2016-02-29 16:59 ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox