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
aea1cbc1
Commit
aea1cbc1
authored
Jun 05, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SunRPC: Fix size_t vs. unsigned int arg descrepancy.
parent
fe91ab5e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
include/linux/sunrpc/xdr.h
include/linux/sunrpc/xdr.h
+3
-4
net/sunrpc/xdr.c
net/sunrpc/xdr.c
+2
-2
No files found.
include/linux/sunrpc/xdr.h
View file @
aea1cbc1
...
@@ -137,10 +137,9 @@ void xdr_zero_iovec(struct iovec *, int, size_t);
...
@@ -137,10 +137,9 @@ void xdr_zero_iovec(struct iovec *, int, size_t);
/*
/*
* XDR buffer helper functions
* XDR buffer helper functions
*/
*/
extern
int
xdr_kmap
(
struct
iovec
*
,
struct
xdr_buf
*
,
unsigned
int
);
extern
int
xdr_kmap
(
struct
iovec
*
,
struct
xdr_buf
*
,
size_t
);
extern
void
xdr_kunmap
(
struct
xdr_buf
*
,
unsigned
int
);
extern
void
xdr_kunmap
(
struct
xdr_buf
*
,
size_t
);
extern
void
xdr_shift_buf
(
struct
xdr_buf
*
,
unsigned
int
);
extern
void
xdr_shift_buf
(
struct
xdr_buf
*
,
size_t
);
extern
void
xdr_zero_buf
(
struct
xdr_buf
*
,
unsigned
int
);
/*
/*
* Helper structure for copying from an sk_buff.
* Helper structure for copying from an sk_buff.
...
...
net/sunrpc/xdr.c
View file @
aea1cbc1
...
@@ -176,7 +176,7 @@ void xdr_shift_iovec(struct iovec *iov, int nr, size_t len)
...
@@ -176,7 +176,7 @@ void xdr_shift_iovec(struct iovec *iov, int nr, size_t len)
/*
/*
* Map a struct xdr_buf into an iovec array.
* Map a struct xdr_buf into an iovec array.
*/
*/
int
xdr_kmap
(
struct
iovec
*
iov_base
,
struct
xdr_buf
*
xdr
,
unsigned
in
t
base
)
int
xdr_kmap
(
struct
iovec
*
iov_base
,
struct
xdr_buf
*
xdr
,
size_
t
base
)
{
{
struct
iovec
*
iov
=
iov_base
;
struct
iovec
*
iov
=
iov_base
;
struct
page
**
ppage
=
xdr
->
pages
;
struct
page
**
ppage
=
xdr
->
pages
;
...
@@ -226,7 +226,7 @@ int xdr_kmap(struct iovec *iov_base, struct xdr_buf *xdr, unsigned int base)
...
@@ -226,7 +226,7 @@ int xdr_kmap(struct iovec *iov_base, struct xdr_buf *xdr, unsigned int base)
return
(
iov
-
iov_base
);
return
(
iov
-
iov_base
);
}
}
void
xdr_kunmap
(
struct
xdr_buf
*
xdr
,
unsigned
in
t
base
)
void
xdr_kunmap
(
struct
xdr_buf
*
xdr
,
size_
t
base
)
{
{
struct
page
**
ppage
=
xdr
->
pages
;
struct
page
**
ppage
=
xdr
->
pages
;
unsigned
int
pglen
=
xdr
->
page_len
;
unsigned
int
pglen
=
xdr
->
page_len
;
...
...
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