Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
33488845
Commit
33488845
authored
May 31, 2019
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify ksys_mount() string arguments
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
fd3e007f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
drivers/base/devtmpfs.c
drivers/base/devtmpfs.c
+1
-2
fs/namespace.c
fs/namespace.c
+2
-2
include/linux/syscalls.h
include/linux/syscalls.h
+2
-2
No files found.
drivers/base/devtmpfs.c
View file @
33488845
...
...
@@ -357,8 +357,7 @@ int devtmpfs_mount(const char *mntdir)
if
(
!
thread
)
return
0
;
err
=
ksys_mount
(
"devtmpfs"
,
(
char
*
)
mntdir
,
"devtmpfs"
,
MS_SILENT
,
NULL
);
err
=
ksys_mount
(
"devtmpfs"
,
mntdir
,
"devtmpfs"
,
MS_SILENT
,
NULL
);
if
(
err
)
printk
(
KERN_INFO
"devtmpfs: error mounting %i
\n
"
,
err
);
else
...
...
fs/namespace.c
View file @
33488845
...
...
@@ -3295,8 +3295,8 @@ struct dentry *mount_subtree(struct vfsmount *m, const char *name)
}
EXPORT_SYMBOL
(
mount_subtree
);
int
ksys_mount
(
c
har
__user
*
dev_name
,
char
__user
*
dir_name
,
char
__user
*
typ
e
,
unsigned
long
flags
,
void
__user
*
data
)
int
ksys_mount
(
c
onst
char
__user
*
dev_name
,
const
char
__user
*
dir_nam
e
,
const
char
__user
*
type
,
unsigned
long
flags
,
void
__user
*
data
)
{
int
ret
;
char
*
kernel_type
;
...
...
include/linux/syscalls.h
View file @
33488845
...
...
@@ -1228,8 +1228,8 @@ asmlinkage long sys_ni_syscall(void);
* the ksys_xyzyyz() functions prototyped below.
*/
int
ksys_mount
(
c
har
__user
*
dev_name
,
char
__user
*
dir_name
,
char
__user
*
typ
e
,
unsigned
long
flags
,
void
__user
*
data
);
int
ksys_mount
(
c
onst
char
__user
*
dev_name
,
const
char
__user
*
dir_nam
e
,
const
char
__user
*
type
,
unsigned
long
flags
,
void
__user
*
data
);
int
ksys_umount
(
char
__user
*
name
,
int
flags
);
int
ksys_dup
(
unsigned
int
fildes
);
int
ksys_chroot
(
const
char
__user
*
filename
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment