소스 검색

qstr: constify instances in procfs

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 9 년 전
부모
커밋
dc12e90949
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fs/proc/proc_sysctl.c

+ 1 - 1
fs/proc/proc_sysctl.c

@@ -474,7 +474,7 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
 {
 	struct ctl_table_header *head = grab_header(dir);
 	struct ctl_table_header *h = NULL;
-	struct qstr *name = &dentry->d_name;
+	const struct qstr *name = &dentry->d_name;
 	struct ctl_table *p;
 	struct inode *inode;
 	struct dentry *err = ERR_PTR(-ENOENT);