summaryrefslogtreecommitdiffstats
path: root/kernel/time/timecounter.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@kernel.org>2017-07-12 23:33:33 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-13 01:26:00 +0200
commitd383d48470819e86fe30eb72f0e9494e1ee0e2af (patch)
tree70be7478d13013b86d3d757577a5c60e89f95603 /kernel/time/timecounter.c
parentsysctl: kdoc'ify sysctl_writes_strict (diff)
downloadlinux-d383d48470819e86fe30eb72f0e9494e1ee0e2af.tar.xz
linux-d383d48470819e86fe30eb72f0e9494e1ee0e2af.zip
sysctl: fold sysctl_writes_strict checks into helper
The mode sysctl_writes_strict positional checks keep being copy and pasted as we add new proc handlers. Just add a helper to avoid code duplication. Link: http://lkml.kernel.org/r/20170519033554.18592-4-mcgrof@kernel.org Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org> Suggested-by: Kees Cook <keescook@chromium.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/time/timecounter.c')
0 files changed, 0 insertions, 0 deletions