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
b57332b4
Commit
b57332b4
authored
Oct 10, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify iov_iter_count() and iter_is_iovec()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c3a69024
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/linux/uio.h
include/linux/uio.h
+2
-2
No files found.
include/linux/uio.h
View file @
b57332b4
...
@@ -110,12 +110,12 @@ int iov_iter_npages(const struct iov_iter *i, int maxpages);
...
@@ -110,12 +110,12 @@ int iov_iter_npages(const struct iov_iter *i, int maxpages);
const
void
*
dup_iter
(
struct
iov_iter
*
new
,
struct
iov_iter
*
old
,
gfp_t
flags
);
const
void
*
dup_iter
(
struct
iov_iter
*
new
,
struct
iov_iter
*
old
,
gfp_t
flags
);
static
inline
size_t
iov_iter_count
(
struct
iov_iter
*
i
)
static
inline
size_t
iov_iter_count
(
const
struct
iov_iter
*
i
)
{
{
return
i
->
count
;
return
i
->
count
;
}
}
static
inline
bool
iter_is_iovec
(
struct
iov_iter
*
i
)
static
inline
bool
iter_is_iovec
(
const
struct
iov_iter
*
i
)
{
{
return
!
(
i
->
type
&
(
ITER_BVEC
|
ITER_KVEC
|
ITER_PIPE
));
return
!
(
i
->
type
&
(
ITER_BVEC
|
ITER_KVEC
|
ITER_PIPE
));
}
}
...
...
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