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
9ae7d8ff
Commit
9ae7d8ff
authored
May 12, 2017
by
Christoph Hellwig
Committed by
Anna Schumaker
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
c551858a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
fs/nfs/nfs3xdr.c
fs/nfs/nfs3xdr.c
+1
-2
No files found.
fs/nfs/nfs3xdr.c
View file @
9ae7d8ff
...
@@ -2611,8 +2611,7 @@ static struct rpc_procinfo nfs3_acl_procedures[] = {
...
@@ -2611,8 +2611,7 @@ static struct rpc_procinfo nfs3_acl_procedures[] = {
static
unsigned
int
nfs3_acl_counts
[
ARRAY_SIZE
(
nfs3_acl_procedures
)];
static
unsigned
int
nfs3_acl_counts
[
ARRAY_SIZE
(
nfs3_acl_procedures
)];
const
struct
rpc_version
nfsacl_version3
=
{
const
struct
rpc_version
nfsacl_version3
=
{
.
number
=
3
,
.
number
=
3
,
.
nrprocs
=
sizeof
(
nfs3_acl_procedures
)
/
.
nrprocs
=
ARRAY_SIZE
(
nfs3_acl_procedures
),
sizeof
(
nfs3_acl_procedures
[
0
]),
.
procs
=
nfs3_acl_procedures
,
.
procs
=
nfs3_acl_procedures
,
.
counts
=
nfs3_acl_counts
,
.
counts
=
nfs3_acl_counts
,
};
};
...
...
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