x86, mce: add comment about mce_chrdev_ops being writable
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 May 2009 05:16:14 +0000 (22:16 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 28 May 2009 16:24:14 +0000 (09:24 -0700)
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>
arch/x86/kernel/cpu/mcheck/mce.c

index fe216bd10f4382da5d6edc99218a181c65cd13da..156cdf6d91816c1e8a6f9c2c0bb9cd8d010a9ad9 100644 (file)
@@ -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,