From: Eric Engestrom <eric.engestrom@imgtec.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Al Viro <viro@zeniv.linux.org.uk>,
Kees Cook <keescook@chromium.org>,
Alexey Dobriyan <adobriyan@gmail.com>,
Cyrill Gorcunov <gorcunov@openvz.org>,
Ingo Molnar <mingo@kernel.org>, Mateusz Guzik <mguzik@redhat.com>,
Calvin Owens <calvinowens@fb.com>, Joe Perches <joe@perches.com>,
David Howells <dhowells@redhat.com>,
<linux-kernel@vger.kernel.org>
Cc: Eric Engestrom <eric.engestrom@imgtec.com>
Subject: [PATCH] procfs: add conditional compilation check
Date: Mon, 29 Feb 2016 16:30:37 +0000 [thread overview]
Message-ID: <1456763437-32572-1-git-send-email-eric.engestrom@imgtec.com> (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
next reply other threads:[~2016-02-29 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 16:30 Eric Engestrom [this message]
2016-02-29 16:59 ` Cyrill Gorcunov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456763437-32572-1-git-send-email-eric.engestrom@imgtec.com \
--to=eric.engestrom@imgtec.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=calvinowens@fb.com \
--cc=dhowells@redhat.com \
--cc=gorcunov@openvz.org \
--cc=joe@perches.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mguzik@redhat.com \
--cc=mingo@kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome