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
48176a97
Commit
48176a97
authored
Jul 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch sysfs_chmod_file() to umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d161a13f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/hwmon/dme1737.c
drivers/hwmon/dme1737.c
+3
-3
fs/sysfs/file.c
fs/sysfs/file.c
+1
-1
include/linux/sysfs.h
include/linux/sysfs.h
+2
-2
No files found.
drivers/hwmon/dme1737.c
View file @
48176a97
...
@@ -1223,7 +1223,7 @@ static ssize_t show_pwm(struct device *dev, struct device_attribute *attr,
...
@@ -1223,7 +1223,7 @@ static ssize_t show_pwm(struct device *dev, struct device_attribute *attr,
}
}
static
struct
attribute
*
dme1737_pwm_chmod_attr
[];
static
struct
attribute
*
dme1737_pwm_chmod_attr
[];
static
void
dme1737_chmod_file
(
struct
device
*
,
struct
attribute
*
,
mode_t
);
static
void
dme1737_chmod_file
(
struct
device
*
,
struct
attribute
*
,
u
mode_t
);
static
ssize_t
set_pwm
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
static
ssize_t
set_pwm
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
const
char
*
buf
,
size_t
count
)
...
@@ -1961,7 +1961,7 @@ static inline void dme1737_sio_outb(int sio_cip, int reg, int val)
...
@@ -1961,7 +1961,7 @@ static inline void dme1737_sio_outb(int sio_cip, int reg, int val)
static
int
dme1737_i2c_get_features
(
int
,
struct
dme1737_data
*
);
static
int
dme1737_i2c_get_features
(
int
,
struct
dme1737_data
*
);
static
void
dme1737_chmod_file
(
struct
device
*
dev
,
static
void
dme1737_chmod_file
(
struct
device
*
dev
,
struct
attribute
*
attr
,
mode_t
mode
)
struct
attribute
*
attr
,
u
mode_t
mode
)
{
{
if
(
sysfs_chmod_file
(
&
dev
->
kobj
,
attr
,
mode
))
{
if
(
sysfs_chmod_file
(
&
dev
->
kobj
,
attr
,
mode
))
{
dev_warn
(
dev
,
"Failed to change permissions of %s.
\n
"
,
dev_warn
(
dev
,
"Failed to change permissions of %s.
\n
"
,
...
@@ -1971,7 +1971,7 @@ static void dme1737_chmod_file(struct device *dev,
...
@@ -1971,7 +1971,7 @@ static void dme1737_chmod_file(struct device *dev,
static
void
dme1737_chmod_group
(
struct
device
*
dev
,
static
void
dme1737_chmod_group
(
struct
device
*
dev
,
const
struct
attribute_group
*
group
,
const
struct
attribute_group
*
group
,
mode_t
mode
)
u
mode_t
mode
)
{
{
struct
attribute
**
attr
;
struct
attribute
**
attr
;
...
...
fs/sysfs/file.c
View file @
48176a97
...
@@ -618,7 +618,7 @@ EXPORT_SYMBOL_GPL(sysfs_add_file_to_group);
...
@@ -618,7 +618,7 @@ EXPORT_SYMBOL_GPL(sysfs_add_file_to_group);
*
*
*/
*/
int
sysfs_chmod_file
(
struct
kobject
*
kobj
,
const
struct
attribute
*
attr
,
int
sysfs_chmod_file
(
struct
kobject
*
kobj
,
const
struct
attribute
*
attr
,
mode_t
mode
)
u
mode_t
mode
)
{
{
struct
sysfs_dirent
*
sd
;
struct
sysfs_dirent
*
sd
;
struct
iattr
newattrs
;
struct
iattr
newattrs
;
...
...
include/linux/sysfs.h
View file @
48176a97
...
@@ -133,7 +133,7 @@ int __must_check sysfs_create_file(struct kobject *kobj,
...
@@ -133,7 +133,7 @@ int __must_check sysfs_create_file(struct kobject *kobj,
int
__must_check
sysfs_create_files
(
struct
kobject
*
kobj
,
int
__must_check
sysfs_create_files
(
struct
kobject
*
kobj
,
const
struct
attribute
**
attr
);
const
struct
attribute
**
attr
);
int
__must_check
sysfs_chmod_file
(
struct
kobject
*
kobj
,
int
__must_check
sysfs_chmod_file
(
struct
kobject
*
kobj
,
const
struct
attribute
*
attr
,
mode_t
mode
);
const
struct
attribute
*
attr
,
u
mode_t
mode
);
void
sysfs_remove_file
(
struct
kobject
*
kobj
,
const
struct
attribute
*
attr
);
void
sysfs_remove_file
(
struct
kobject
*
kobj
,
const
struct
attribute
*
attr
);
void
sysfs_remove_files
(
struct
kobject
*
kobj
,
const
struct
attribute
**
attr
);
void
sysfs_remove_files
(
struct
kobject
*
kobj
,
const
struct
attribute
**
attr
);
...
@@ -221,7 +221,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
...
@@ -221,7 +221,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
}
}
static
inline
int
sysfs_chmod_file
(
struct
kobject
*
kobj
,
static
inline
int
sysfs_chmod_file
(
struct
kobject
*
kobj
,
const
struct
attribute
*
attr
,
mode_t
mode
)
const
struct
attribute
*
attr
,
u
mode_t
mode
)
{
{
return
0
;
return
0
;
}
}
...
...
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