提交 d81f9f51 编写于 作者: J Jessica Yu 提交者: Greg Kroah-Hartman

Staging: lustre: linux-module: add const modifier to file_operations

Add the const modifier to the file_operations struct, since it is
normally const.
Signed-off-by: NJessica Yu <jyu@cowsay.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 18e2e99b
......@@ -170,7 +170,7 @@ static long libcfs_ioctl(struct file *file,
return rc;
}
static struct file_operations libcfs_fops = {
static const struct file_operations libcfs_fops = {
.unlocked_ioctl = libcfs_ioctl,
.open = libcfs_psdev_open,
.release = libcfs_psdev_release,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册