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
3de91f92
Commit
3de91f92
authored
Jul 06, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mode_t whack-a-mole...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
193deee1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
drivers/staging/lustre/lustre/include/lprocfs_status.h
drivers/staging/lustre/lustre/include/lprocfs_status.h
+3
-3
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+4
-4
No files found.
drivers/staging/lustre/lustre/include/lprocfs_status.h
View file @
3de91f92
...
...
@@ -53,7 +53,7 @@ struct lprocfs_vars {
/**
* /proc file mode.
*/
mode_t
proc_mode
;
u
mode_t
proc_mode
;
};
struct
lprocfs_static_vars
{
...
...
@@ -600,11 +600,11 @@ extern int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list);
extern
int
lprocfs_obd_cleanup
(
struct
obd_device
*
obd
);
extern
int
lprocfs_seq_create
(
proc_dir_entry_t
*
parent
,
const
char
*
name
,
mode_t
mode
,
u
mode_t
mode
,
const
struct
file_operations
*
seq_fops
,
void
*
data
);
extern
int
lprocfs_obd_seq_create
(
struct
obd_device
*
dev
,
const
char
*
name
,
mode_t
mode
,
u
mode_t
mode
,
const
struct
file_operations
*
seq_fops
,
void
*
data
);
...
...
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
View file @
3de91f92
...
...
@@ -73,7 +73,7 @@ proc_dir_entry_t *lprocfs_add_simple(struct proc_dir_entry *root,
struct
file_operations
*
fops
)
{
proc_dir_entry_t
*
proc
;
mode_t
mode
=
0
;
u
mode_t
mode
=
0
;
if
(
root
==
NULL
||
name
==
NULL
||
fops
==
NULL
)
return
ERR_PTR
(
-
EINVAL
);
...
...
@@ -140,7 +140,7 @@ int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list,
while
(
list
->
name
!=
NULL
)
{
struct
proc_dir_entry
*
proc
;
mode_t
mode
=
0
;
u
mode_t
mode
=
0
;
if
(
list
->
proc_mode
!=
0000
)
{
mode
=
list
->
proc_mode
;
...
...
@@ -1899,7 +1899,7 @@ EXPORT_SYMBOL(lprocfs_find_named_value);
int
lprocfs_seq_create
(
proc_dir_entry_t
*
parent
,
const
char
*
name
,
mode_t
mode
,
u
mode_t
mode
,
const
struct
file_operations
*
seq_fops
,
void
*
data
)
{
...
...
@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(lprocfs_seq_create);
int
lprocfs_obd_seq_create
(
struct
obd_device
*
dev
,
const
char
*
name
,
mode_t
mode
,
u
mode_t
mode
,
const
struct
file_operations
*
seq_fops
,
void
*
data
)
{
...
...
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