summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mcheck/mce.c
diff options
context:
space:
mode:
authorH. Peter Anvin2009-05-26 07:16:14 +0200
committerH. Peter Anvin2009-05-28 18:24:14 +0200
commita1ff41bfc1bb7a6d19cf958f89a9b539678781e5 (patch)
tree70aaaf822f0d309b23e8486500f8f7890cb6a3de /arch/x86/kernel/cpu/mcheck/mce.c
parentx86, mce: add basic error injection infrastructure (diff)
downloadkernel-qcow2-linux-a1ff41bfc1bb7a6d19cf958f89a9b539678781e5.tar.gz
kernel-qcow2-linux-a1ff41bfc1bb7a6d19cf958f89a9b539678781e5.tar.xz
kernel-qcow2-linux-a1ff41bfc1bb7a6d19cf958f89a9b539678781e5.zip
x86, mce: add comment about mce_chrdev_ops being writable
Add a comment explaining that mce_chrdev_ops is intentionally writable. [ Impact: comment only ] Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck/mce.c')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index fe216bd10f43..156cdf6d9181 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -940,6 +940,7 @@ static long mce_ioctl(struct file *f, unsigned int cmd, unsigned long arg)
}
}
+/* Modified in mce-inject.c, so not static or const */
struct file_operations mce_chrdev_ops = {
.open = mce_open,
.release = mce_release,