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
0d7c7508
Commit
0d7c7508
authored
Aug 21, 2003
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warning about using a wrong type as the argument for
nfsroot_mount().
parent
97519332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fs/nfs/nfsroot.c
fs/nfs/nfsroot.c
+6
-2
No files found.
fs/nfs/nfsroot.c
View file @
0d7c7508
...
...
@@ -437,6 +437,7 @@ static int __init root_nfs_ports(void)
*/
static
int
__init
root_nfs_get_handle
(
void
)
{
struct
nfs_fh
fh
;
struct
sockaddr_in
sin
;
int
status
;
int
protocol
=
(
nfs_data
.
flags
&
NFS_MOUNT_TCP
)
?
...
...
@@ -445,11 +446,14 @@ static int __init root_nfs_get_handle(void)
NFS_MNT3_VERSION
:
NFS_MNT_VERSION
;
set_sockaddr
(
&
sin
,
servaddr
,
mount_port
);
status
=
nfsroot_mount
(
&
sin
,
nfs_path
,
&
nfs_data
.
root
,
version
,
protocol
);
status
=
nfsroot_mount
(
&
sin
,
nfs_path
,
&
fh
,
version
,
protocol
);
if
(
status
<
0
)
printk
(
KERN_ERR
"Root-NFS: Server returned error %d "
"while mounting %s
\n
"
,
status
,
nfs_path
);
else
{
nfs_data
.
root
.
size
=
fh
.
size
;
memcpy
(
nfs_data
.
root
.
data
,
fh
.
data
,
fh
.
size
);
}
return
status
;
}
...
...
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