projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de23d4
)
procfs: add conditional compilation check
author
Eric Engestrom
<
[email protected]
>
Thu, 17 Mar 2016 21:20:57 +0000
(14:20 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 17 Mar 2016 22:09:34 +0000
(15:09 -0700)
`proc_timers_operations` is only used when CONFIG_CHECKPOINT_RESTORE is
enabled.
Signed-off-by: Eric Engestrom <
[email protected]
>
Acked-by: Cyrill Gorcunov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 35f583ad7dbe575b06b6537a8b8f1a218cd2d241..9e42411eef3fd1e0b636ca65a8e083c3c4f40526 100644
(file)
--- 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)