Commit a1ff41bf authored by H. Peter Anvin's avatar H. Peter Anvin

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: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent ea149b36
...@@ -940,6 +940,7 @@ static long mce_ioctl(struct file *f, unsigned int cmd, unsigned long arg) ...@@ -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 = { struct file_operations mce_chrdev_ops = {
.open = mce_open, .open = mce_open,
.release = mce_release, .release = mce_release,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment