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
587a1f16
Commit
587a1f16
authored
Jul 23, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch ->is_visible() to returning umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9104e427
Changes
33
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
70 additions
and
70 deletions
+70
-70
drivers/firmware/iscsi_ibft.c
drivers/firmware/iscsi_ibft.c
+6
-6
drivers/hwmon/jc42.c
drivers/hwmon/jc42.c
+1
-1
drivers/hwmon/max1668.c
drivers/hwmon/max1668.c
+2
-2
drivers/hwmon/max6650.c
drivers/hwmon/max6650.c
+1
-1
drivers/hwmon/tmp421.c
drivers/hwmon/tmp421.c
+1
-1
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iscsi_iser.c
+1
-1
drivers/input/touchscreen/ad7877.c
drivers/input/touchscreen/ad7877.c
+2
-2
drivers/input/touchscreen/tsc2005.c
drivers/input/touchscreen/tsc2005.c
+2
-2
drivers/pci/pci-label.c
drivers/pci/pci-label.c
+2
-2
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/asus-laptop.c
+1
-1
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/asus-wmi.c
+2
-2
drivers/platform/x86/ideapad-laptop.c
drivers/platform/x86/ideapad-laptop.c
+1
-1
drivers/power/power_supply_sysfs.c
drivers/power/power_supply_sysfs.c
+2
-2
drivers/scsi/be2iscsi/be_iscsi.c
drivers/scsi/be2iscsi/be_iscsi.c
+1
-1
drivers/scsi/be2iscsi/be_iscsi.h
drivers/scsi/be2iscsi/be_iscsi.h
+1
-1
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_main.c
+6
-6
drivers/scsi/bnx2i/bnx2i_iscsi.c
drivers/scsi/bnx2i/bnx2i_iscsi.c
+1
-1
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/cxgbi/libcxgbi.c
+1
-1
drivers/scsi/cxgbi/libcxgbi.h
drivers/scsi/cxgbi/libcxgbi.h
+1
-1
drivers/scsi/iscsi_boot_sysfs.c
drivers/scsi/iscsi_boot_sysfs.c
+7
-7
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.c
+1
-1
drivers/scsi/qla4xxx/ql4_os.c
drivers/scsi/qla4xxx/ql4_os.c
+5
-5
drivers/scsi/scsi_transport_iscsi.c
drivers/scsi/scsi_transport_iscsi.c
+4
-4
drivers/scsi/scsi_transport_spi.c
drivers/scsi/scsi_transport_spi.c
+1
-1
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/adc/ad7192.c
+2
-2
drivers/staging/iio/adc/ad7606_core.c
drivers/staging/iio/adc/ad7606_core.c
+2
-2
drivers/staging/iio/dac/ad5446.c
drivers/staging/iio/dac/ad5446.c
+2
-2
drivers/staging/iio/dds/ad9834.c
drivers/staging/iio/dds/ad9834.c
+2
-2
drivers/usb/core/sysfs.c
drivers/usb/core/sysfs.c
+2
-2
fs/sysfs/group.c
fs/sysfs/group.c
+1
-1
include/linux/iscsi_boot_sysfs.h
include/linux/iscsi_boot_sysfs.h
+4
-4
include/linux/sysfs.h
include/linux/sysfs.h
+1
-1
include/scsi/scsi_transport_iscsi.h
include/scsi/scsi_transport_iscsi.h
+1
-1
No files found.
drivers/firmware/iscsi_ibft.c
View file @
587a1f16
...
@@ -433,11 +433,11 @@ static int __init ibft_check_device(void)
...
@@ -433,11 +433,11 @@ static int __init ibft_check_device(void)
* Helper routiners to check to determine if the entry is valid
* Helper routiners to check to determine if the entry is valid
* in the proper iBFT structure.
* in the proper iBFT structure.
*/
*/
static
mode_t
ibft_check_nic_for
(
void
*
data
,
int
type
)
static
u
mode_t
ibft_check_nic_for
(
void
*
data
,
int
type
)
{
{
struct
ibft_kobject
*
entry
=
data
;
struct
ibft_kobject
*
entry
=
data
;
struct
ibft_nic
*
nic
=
entry
->
nic
;
struct
ibft_nic
*
nic
=
entry
->
nic
;
mode_t
rc
=
0
;
u
mode_t
rc
=
0
;
switch
(
type
)
{
switch
(
type
)
{
case
ISCSI_BOOT_ETH_INDEX
:
case
ISCSI_BOOT_ETH_INDEX
:
...
@@ -488,11 +488,11 @@ static mode_t ibft_check_nic_for(void *data, int type)
...
@@ -488,11 +488,11 @@ static mode_t ibft_check_nic_for(void *data, int type)
return
rc
;
return
rc
;
}
}
static
mode_t
__init
ibft_check_tgt_for
(
void
*
data
,
int
type
)
static
u
mode_t
__init
ibft_check_tgt_for
(
void
*
data
,
int
type
)
{
{
struct
ibft_kobject
*
entry
=
data
;
struct
ibft_kobject
*
entry
=
data
;
struct
ibft_tgt
*
tgt
=
entry
->
tgt
;
struct
ibft_tgt
*
tgt
=
entry
->
tgt
;
mode_t
rc
=
0
;
u
mode_t
rc
=
0
;
switch
(
type
)
{
switch
(
type
)
{
case
ISCSI_BOOT_TGT_INDEX
:
case
ISCSI_BOOT_TGT_INDEX
:
...
@@ -524,11 +524,11 @@ static mode_t __init ibft_check_tgt_for(void *data, int type)
...
@@ -524,11 +524,11 @@ static mode_t __init ibft_check_tgt_for(void *data, int type)
return
rc
;
return
rc
;
}
}
static
mode_t
__init
ibft_check_initiator_for
(
void
*
data
,
int
type
)
static
u
mode_t
__init
ibft_check_initiator_for
(
void
*
data
,
int
type
)
{
{
struct
ibft_kobject
*
entry
=
data
;
struct
ibft_kobject
*
entry
=
data
;
struct
ibft_initiator
*
init
=
entry
->
initiator
;
struct
ibft_initiator
*
init
=
entry
->
initiator
;
mode_t
rc
=
0
;
u
mode_t
rc
=
0
;
switch
(
type
)
{
switch
(
type
)
{
case
ISCSI_BOOT_INI_INDEX
:
case
ISCSI_BOOT_INI_INDEX
:
...
...
drivers/hwmon/jc42.c
View file @
587a1f16
...
@@ -413,7 +413,7 @@ static struct attribute *jc42_attributes[] = {
...
@@ -413,7 +413,7 @@ static struct attribute *jc42_attributes[] = {
NULL
NULL
};
};
static
mode_t
jc42_attribute_mode
(
struct
kobject
*
kobj
,
static
u
mode_t
jc42_attribute_mode
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
index
)
struct
attribute
*
attr
,
int
index
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
drivers/hwmon/max1668.c
View file @
587a1f16
...
@@ -335,10 +335,10 @@ static struct attribute *max1668_attribute_unique[] = {
...
@@ -335,10 +335,10 @@ static struct attribute *max1668_attribute_unique[] = {
NULL
NULL
};
};
static
mode_t
max1668_attribute_mode
(
struct
kobject
*
kobj
,
static
u
mode_t
max1668_attribute_mode
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
index
)
struct
attribute
*
attr
,
int
index
)
{
{
in
t
ret
=
S_IRUGO
;
umode_
t
ret
=
S_IRUGO
;
if
(
read_only
)
if
(
read_only
)
return
ret
;
return
ret
;
if
(
attr
==
&
sensor_dev_attr_temp1_max
.
dev_attr
.
attr
||
if
(
attr
==
&
sensor_dev_attr_temp1_max
.
dev_attr
.
attr
||
...
...
drivers/hwmon/max6650.c
View file @
587a1f16
...
@@ -464,7 +464,7 @@ static SENSOR_DEVICE_ATTR(gpio1_alarm, S_IRUGO, get_alarm, NULL,
...
@@ -464,7 +464,7 @@ static SENSOR_DEVICE_ATTR(gpio1_alarm, S_IRUGO, get_alarm, NULL,
static
SENSOR_DEVICE_ATTR
(
gpio2_alarm
,
S_IRUGO
,
get_alarm
,
NULL
,
static
SENSOR_DEVICE_ATTR
(
gpio2_alarm
,
S_IRUGO
,
get_alarm
,
NULL
,
MAX6650_ALRM_GPIO2
);
MAX6650_ALRM_GPIO2
);
static
mode_t
max6650_attrs_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
a
,
static
u
mode_t
max6650_attrs_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
a
,
int
n
)
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
drivers/hwmon/tmp421.c
View file @
587a1f16
...
@@ -157,7 +157,7 @@ static ssize_t show_fault(struct device *dev,
...
@@ -157,7 +157,7 @@ static ssize_t show_fault(struct device *dev,
return
sprintf
(
buf
,
"0
\n
"
);
return
sprintf
(
buf
,
"0
\n
"
);
}
}
static
mode_t
tmp421_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
a
,
static
u
mode_t
tmp421_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
a
,
int
n
)
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
drivers/infiniband/ulp/iser/iscsi_iser.c
View file @
587a1f16
...
@@ -638,7 +638,7 @@ iscsi_iser_ep_disconnect(struct iscsi_endpoint *ep)
...
@@ -638,7 +638,7 @@ iscsi_iser_ep_disconnect(struct iscsi_endpoint *ep)
iser_conn_terminate
(
ib_conn
);
iser_conn_terminate
(
ib_conn
);
}
}
static
mode_t
iser_attr_is_visible
(
int
param_type
,
int
param
)
static
u
mode_t
iser_attr_is_visible
(
int
param_type
,
int
param
)
{
{
switch
(
param_type
)
{
switch
(
param_type
)
{
case
ISCSI_HOST_PARAM
:
case
ISCSI_HOST_PARAM
:
...
...
drivers/input/touchscreen/ad7877.c
View file @
587a1f16
...
@@ -612,10 +612,10 @@ static struct attribute *ad7877_attributes[] = {
...
@@ -612,10 +612,10 @@ static struct attribute *ad7877_attributes[] = {
NULL
NULL
};
};
static
mode_t
ad7877_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
ad7877_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
struct
attribute
*
attr
,
int
n
)
{
{
mode_t
mode
=
attr
->
mode
;
u
mode_t
mode
=
attr
->
mode
;
if
(
attr
==
&
dev_attr_aux3
.
attr
)
{
if
(
attr
==
&
dev_attr_aux3
.
attr
)
{
if
(
gpio3
)
if
(
gpio3
)
...
...
drivers/input/touchscreen/tsc2005.c
View file @
587a1f16
...
@@ -450,13 +450,13 @@ static struct attribute *tsc2005_attrs[] = {
...
@@ -450,13 +450,13 @@ static struct attribute *tsc2005_attrs[] = {
NULL
NULL
};
};
static
mode_t
tsc2005_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
tsc2005_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
struct
attribute
*
attr
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
spi_device
*
spi
=
to_spi_device
(
dev
);
struct
spi_device
*
spi
=
to_spi_device
(
dev
);
struct
tsc2005
*
ts
=
spi_get_drvdata
(
spi
);
struct
tsc2005
*
ts
=
spi_get_drvdata
(
spi
);
mode_t
mode
=
attr
->
mode
;
u
mode_t
mode
=
attr
->
mode
;
if
(
attr
==
&
dev_attr_selftest
.
attr
)
{
if
(
attr
==
&
dev_attr_selftest
.
attr
)
{
if
(
!
ts
->
set_reset
)
if
(
!
ts
->
set_reset
)
...
...
drivers/pci/pci-label.c
View file @
587a1f16
...
@@ -89,7 +89,7 @@ find_smbios_instance_string(struct pci_dev *pdev, char *buf,
...
@@ -89,7 +89,7 @@ find_smbios_instance_string(struct pci_dev *pdev, char *buf,
return
0
;
return
0
;
}
}
static
mode_t
static
u
mode_t
smbios_instance_string_exist
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
smbios_instance_string_exist
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
int
n
)
{
{
...
@@ -275,7 +275,7 @@ device_has_dsm(struct device *dev)
...
@@ -275,7 +275,7 @@ device_has_dsm(struct device *dev)
return
FALSE
;
return
FALSE
;
}
}
static
mode_t
static
u
mode_t
acpi_index_string_exist
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
acpi_index_string_exist
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
{
{
struct
device
*
dev
;
struct
device
*
dev
;
...
...
drivers/platform/x86/asus-laptop.c
View file @
587a1f16
...
@@ -1477,7 +1477,7 @@ static struct attribute *asus_attributes[] = {
...
@@ -1477,7 +1477,7 @@ static struct attribute *asus_attributes[] = {
NULL
NULL
};
};
static
mode_t
asus_sysfs_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
asus_sysfs_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
struct
attribute
*
attr
,
int
idx
)
int
idx
)
{
{
...
...
drivers/platform/x86/asus-wmi.c
View file @
587a1f16
...
@@ -992,7 +992,7 @@ static struct attribute *hwmon_attributes[] = {
...
@@ -992,7 +992,7 @@ static struct attribute *hwmon_attributes[] = {
NULL
NULL
};
};
static
mode_t
asus_hwmon_sysfs_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
asus_hwmon_sysfs_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
idx
)
struct
attribute
*
attr
,
int
idx
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
@@ -1357,7 +1357,7 @@ static struct attribute *platform_attributes[] = {
...
@@ -1357,7 +1357,7 @@ static struct attribute *platform_attributes[] = {
NULL
NULL
};
};
static
mode_t
asus_sysfs_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
asus_sysfs_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
idx
)
struct
attribute
*
attr
,
int
idx
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
drivers/platform/x86/ideapad-laptop.c
View file @
587a1f16
...
@@ -368,7 +368,7 @@ static struct attribute *ideapad_attributes[] = {
...
@@ -368,7 +368,7 @@ static struct attribute *ideapad_attributes[] = {
NULL
NULL
};
};
static
mode_t
ideapad_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
ideapad_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
struct
attribute
*
attr
,
int
idx
)
int
idx
)
{
{
...
...
drivers/power/power_supply_sysfs.c
View file @
587a1f16
...
@@ -176,13 +176,13 @@ static struct device_attribute power_supply_attrs[] = {
...
@@ -176,13 +176,13 @@ static struct device_attribute power_supply_attrs[] = {
static
struct
attribute
*
static
struct
attribute
*
__power_supply_attrs
[
ARRAY_SIZE
(
power_supply_attrs
)
+
1
];
__power_supply_attrs
[
ARRAY_SIZE
(
power_supply_attrs
)
+
1
];
static
mode_t
power_supply_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
power_supply_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
struct
attribute
*
attr
,
int
attrno
)
int
attrno
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
power_supply
*
psy
=
dev_get_drvdata
(
dev
);
struct
power_supply
*
psy
=
dev_get_drvdata
(
dev
);
mode_t
mode
=
S_IRUSR
|
S_IRGRP
|
S_IROTH
;
u
mode_t
mode
=
S_IRUSR
|
S_IRGRP
|
S_IROTH
;
int
i
;
int
i
;
if
(
attrno
==
POWER_SUPPLY_PROP_TYPE
)
if
(
attrno
==
POWER_SUPPLY_PROP_TYPE
)
...
...
drivers/scsi/be2iscsi/be_iscsi.c
View file @
587a1f16
...
@@ -733,7 +733,7 @@ void beiscsi_ep_disconnect(struct iscsi_endpoint *ep)
...
@@ -733,7 +733,7 @@ void beiscsi_ep_disconnect(struct iscsi_endpoint *ep)
iscsi_destroy_endpoint
(
beiscsi_ep
->
openiscsi_ep
);
iscsi_destroy_endpoint
(
beiscsi_ep
->
openiscsi_ep
);
}
}
mode_t
be2iscsi_attr_is_visible
(
int
param_type
,
int
param
)
u
mode_t
be2iscsi_attr_is_visible
(
int
param_type
,
int
param
)
{
{
switch
(
param_type
)
{
switch
(
param_type
)
{
case
ISCSI_HOST_PARAM
:
case
ISCSI_HOST_PARAM
:
...
...
drivers/scsi/be2iscsi/be_iscsi.h
View file @
587a1f16
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#define BE2_IPV4 0x1
#define BE2_IPV4 0x1
#define BE2_IPV6 0x10
#define BE2_IPV6 0x10
mode_t
be2iscsi_attr_is_visible
(
int
param_type
,
int
param
);
u
mode_t
be2iscsi_attr_is_visible
(
int
param_type
,
int
param
);
void
beiscsi_offload_connection
(
struct
beiscsi_conn
*
beiscsi_conn
,
void
beiscsi_offload_connection
(
struct
beiscsi_conn
*
beiscsi_conn
,
struct
beiscsi_offload_params
*
params
);
struct
beiscsi_offload_params
*
params
);
...
...
drivers/scsi/be2iscsi/be_main.c
View file @
587a1f16
...
@@ -325,9 +325,9 @@ static ssize_t beiscsi_show_boot_eth_info(void *data, int type, char *buf)
...
@@ -325,9 +325,9 @@ static ssize_t beiscsi_show_boot_eth_info(void *data, int type, char *buf)
}
}
static
mode_t
beiscsi_tgt_get_attr_visibility
(
void
*
data
,
int
type
)
static
u
mode_t
beiscsi_tgt_get_attr_visibility
(
void
*
data
,
int
type
)
{
{
in
t
rc
;
umode_
t
rc
;
switch
(
type
)
{
switch
(
type
)
{
case
ISCSI_BOOT_TGT_NAME
:
case
ISCSI_BOOT_TGT_NAME
:
...
@@ -348,9 +348,9 @@ static mode_t beiscsi_tgt_get_attr_visibility(void *data, int type)
...
@@ -348,9 +348,9 @@ static mode_t beiscsi_tgt_get_attr_visibility(void *data, int type)
return
rc
;
return
rc
;
}
}
static
mode_t
beiscsi_ini_get_attr_visibility
(
void
*
data
,
int
type
)
static
u
mode_t
beiscsi_ini_get_attr_visibility
(
void
*
data
,
int
type
)
{
{
in
t
rc
;
umode_
t
rc
;
switch
(
type
)
{
switch
(
type
)
{
case
ISCSI_BOOT_INI_INITIATOR_NAME
:
case
ISCSI_BOOT_INI_INITIATOR_NAME
:
...
@@ -364,9 +364,9 @@ static mode_t beiscsi_ini_get_attr_visibility(void *data, int type)
...
@@ -364,9 +364,9 @@ static mode_t beiscsi_ini_get_attr_visibility(void *data, int type)
}
}
static
mode_t
beiscsi_eth_get_attr_visibility
(
void
*
data
,
int
type
)
static
u
mode_t
beiscsi_eth_get_attr_visibility
(
void
*
data
,
int
type
)
{
{
in
t
rc
;
umode_
t
rc
;
switch
(
type
)
{
switch
(
type
)
{
case
ISCSI_BOOT_ETH_FLAGS
:
case
ISCSI_BOOT_ETH_FLAGS
:
...
...
drivers/scsi/bnx2i/bnx2i_iscsi.c
View file @
587a1f16
...
@@ -2177,7 +2177,7 @@ static int bnx2i_nl_set_path(struct Scsi_Host *shost, struct iscsi_path *params)
...
@@ -2177,7 +2177,7 @@ static int bnx2i_nl_set_path(struct Scsi_Host *shost, struct iscsi_path *params)
return
0
;
return
0
;
}
}
static
mode_t
bnx2i_attr_is_visible
(
int
param_type
,
int
param
)
static
u
mode_t
bnx2i_attr_is_visible
(
int
param_type
,
int
param
)
{
{
switch
(
param_type
)
{
switch
(
param_type
)
{
case
ISCSI_HOST_PARAM
:
case
ISCSI_HOST_PARAM
:
...
...
drivers/scsi/cxgbi/libcxgbi.c
View file @
587a1f16
...
@@ -2569,7 +2569,7 @@ void cxgbi_iscsi_cleanup(struct iscsi_transport *itp,
...
@@ -2569,7 +2569,7 @@ void cxgbi_iscsi_cleanup(struct iscsi_transport *itp,
}
}
EXPORT_SYMBOL_GPL
(
cxgbi_iscsi_cleanup
);
EXPORT_SYMBOL_GPL
(
cxgbi_iscsi_cleanup
);
mode_t
cxgbi_attr_is_visible
(
int
param_type
,
int
param
)
u
mode_t
cxgbi_attr_is_visible
(
int
param_type
,
int
param
)
{
{
switch
(
param_type
)
{
switch
(
param_type
)
{
case
ISCSI_HOST_PARAM
:
case
ISCSI_HOST_PARAM
:
...
...
drivers/scsi/cxgbi/libcxgbi.h
View file @
587a1f16
...
@@ -709,7 +709,7 @@ int cxgbi_conn_xmit_pdu(struct iscsi_task *);
...
@@ -709,7 +709,7 @@ int cxgbi_conn_xmit_pdu(struct iscsi_task *);
void
cxgbi_cleanup_task
(
struct
iscsi_task
*
task
);
void
cxgbi_cleanup_task
(
struct
iscsi_task
*
task
);
mode_t
cxgbi_attr_is_visible
(
int
param_type
,
int
param
);
u
mode_t
cxgbi_attr_is_visible
(
int
param_type
,
int
param
);
void
cxgbi_get_conn_stats
(
struct
iscsi_cls_conn
*
,
struct
iscsi_stats
*
);
void
cxgbi_get_conn_stats
(
struct
iscsi_cls_conn
*
,
struct
iscsi_stats
*
);
int
cxgbi_set_conn_param
(
struct
iscsi_cls_conn
*
,
int
cxgbi_set_conn_param
(
struct
iscsi_cls_conn
*
,
enum
iscsi_param
,
char
*
,
int
);
enum
iscsi_param
,
char
*
,
int
);
...
...
drivers/scsi/iscsi_boot_sysfs.c
View file @
587a1f16
...
@@ -112,7 +112,7 @@ static struct attribute *target_attrs[] = {
...
@@ -112,7 +112,7 @@ static struct attribute *target_attrs[] = {
NULL
NULL
};
};
static
mode_t
iscsi_boot_tgt_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_boot_tgt_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
iscsi_boot_kobj
*
boot_kobj
=
struct
iscsi_boot_kobj
*
boot_kobj
=
...
@@ -193,7 +193,7 @@ static struct attribute *ethernet_attrs[] = {
...
@@ -193,7 +193,7 @@ static struct attribute *ethernet_attrs[] = {
NULL
NULL
};
};
static
mode_t
iscsi_boot_eth_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_boot_eth_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
iscsi_boot_kobj
*
boot_kobj
=
struct
iscsi_boot_kobj
*
boot_kobj
=
...
@@ -265,7 +265,7 @@ static struct attribute *initiator_attrs[] = {
...
@@ -265,7 +265,7 @@ static struct attribute *initiator_attrs[] = {
NULL
NULL
};
};
static
mode_t
iscsi_boot_ini_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_boot_ini_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
iscsi_boot_kobj
*
boot_kobj
=
struct
iscsi_boot_kobj
*
boot_kobj
=
...
@@ -306,7 +306,7 @@ iscsi_boot_create_kobj(struct iscsi_boot_kset *boot_kset,
...
@@ -306,7 +306,7 @@ iscsi_boot_create_kobj(struct iscsi_boot_kset *boot_kset,
struct
attribute_group
*
attr_group
,
struct
attribute_group
*
attr_group
,
const
char
*
name
,
int
index
,
void
*
data
,
const
char
*
name
,
int
index
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
))
void
(
*
release
)
(
void
*
data
))
{
{
struct
iscsi_boot_kobj
*
boot_kobj
;
struct
iscsi_boot_kobj
*
boot_kobj
;
...
@@ -369,7 +369,7 @@ struct iscsi_boot_kobj *
...
@@ -369,7 +369,7 @@ struct iscsi_boot_kobj *
iscsi_boot_create_target
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
iscsi_boot_create_target
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
void
*
data
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
))
void
(
*
release
)
(
void
*
data
))
{
{
return
iscsi_boot_create_kobj
(
boot_kset
,
&
iscsi_boot_target_attr_group
,
return
iscsi_boot_create_kobj
(
boot_kset
,
&
iscsi_boot_target_attr_group
,
...
@@ -394,7 +394,7 @@ struct iscsi_boot_kobj *
...
@@ -394,7 +394,7 @@ struct iscsi_boot_kobj *
iscsi_boot_create_initiator
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
iscsi_boot_create_initiator
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
void
*
data
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
))
void
(
*
release
)
(
void
*
data
))
{
{
return
iscsi_boot_create_kobj
(
boot_kset
,
return
iscsi_boot_create_kobj
(
boot_kset
,
...
@@ -420,7 +420,7 @@ struct iscsi_boot_kobj *
...
@@ -420,7 +420,7 @@ struct iscsi_boot_kobj *
iscsi_boot_create_ethernet
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
iscsi_boot_create_ethernet
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
void
*
data
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
))
void
(
*
release
)
(
void
*
data
))
{
{
return
iscsi_boot_create_kobj
(
boot_kset
,
return
iscsi_boot_create_kobj
(
boot_kset
,
...
...
drivers/scsi/iscsi_tcp.c
View file @
587a1f16
...
@@ -873,7 +873,7 @@ static void iscsi_sw_tcp_session_destroy(struct iscsi_cls_session *cls_session)
...
@@ -873,7 +873,7 @@ static void iscsi_sw_tcp_session_destroy(struct iscsi_cls_session *cls_session)
iscsi_host_free
(
shost
);
iscsi_host_free
(
shost
);
}
}
static
mode_t
iscsi_sw_tcp_attr_is_visible
(
int
param_type
,
int
param
)
static
u
mode_t
iscsi_sw_tcp_attr_is_visible
(
int
param_type
,
int
param
)
{
{
switch
(
param_type
)
{
switch
(
param_type
)
{
case
ISCSI_HOST_PARAM
:
case
ISCSI_HOST_PARAM
:
...
...
drivers/scsi/qla4xxx/ql4_os.c
View file @
587a1f16
...
@@ -128,7 +128,7 @@ static int qla4xxx_eh_host_reset(struct scsi_cmnd *cmd);
...
@@ -128,7 +128,7 @@ static int qla4xxx_eh_host_reset(struct scsi_cmnd *cmd);
static
int
qla4xxx_slave_alloc
(
struct
scsi_device
*
device
);
static
int
qla4xxx_slave_alloc
(
struct
scsi_device
*
device
);
static
int
qla4xxx_slave_configure
(
struct
scsi_device
*
device
);
static
int
qla4xxx_slave_configure
(
struct
scsi_device
*
device
);
static
void
qla4xxx_slave_destroy
(
struct
scsi_device
*
sdev
);
static
void
qla4xxx_slave_destroy
(
struct
scsi_device
*
sdev
);
static
mode_t
ql4_attr_is_visible
(
int
param_type
,
int
param
);
static
u
mode_t
ql4_attr_is_visible
(
int
param_type
,
int
param
);
static
int
qla4xxx_host_reset
(
struct
Scsi_Host
*
shost
,
int
reset_type
);
static
int
qla4xxx_host_reset
(
struct
Scsi_Host
*
shost
,
int
reset_type
);
static
struct
qla4_8xxx_legacy_intr_set
legacy_intr
[]
=
static
struct
qla4_8xxx_legacy_intr_set
legacy_intr
[]
=
...
@@ -197,7 +197,7 @@ static struct iscsi_transport qla4xxx_iscsi_transport = {
...
@@ -197,7 +197,7 @@ static struct iscsi_transport qla4xxx_iscsi_transport = {
static
struct
scsi_transport_template
*
qla4xxx_scsi_transport
;
static
struct
scsi_transport_template
*
qla4xxx_scsi_transport
;
static
mode_t
ql4_attr_is_visible
(
int
param_type
,
int
param
)
static
u
mode_t
ql4_attr_is_visible
(
int
param_type
,
int
param
)
{
{
switch
(
param_type
)
{
switch
(
param_type
)
{
case
ISCSI_HOST_PARAM
:
case
ISCSI_HOST_PARAM
:
...
@@ -3039,7 +3039,7 @@ static ssize_t qla4xxx_show_boot_eth_info(void *data, int type, char *buf)
...
@@ -3039,7 +3039,7 @@ static ssize_t qla4xxx_show_boot_eth_info(void *data, int type, char *buf)
return
rc
;
return
rc
;
}
}
static
mode_t
qla4xxx_eth_get_attr_visibility
(
void
*
data
,
int
type
)
static
u
mode_t
qla4xxx_eth_get_attr_visibility
(
void
*
data
,
int
type
)
{
{
int
rc
;
int
rc
;
...
@@ -3073,7 +3073,7 @@ static ssize_t qla4xxx_show_boot_ini_info(void *data, int type, char *buf)
...
@@ -3073,7 +3073,7 @@ static ssize_t qla4xxx_show_boot_ini_info(void *data, int type, char *buf)
return
rc
;
return
rc
;
}
}
static
mode_t
qla4xxx_ini_get_attr_visibility
(
void
*
data
,
int
type
)
static
u
mode_t
qla4xxx_ini_get_attr_visibility
(
void
*
data
,
int
type
)
{
{
int
rc
;
int
rc
;
...
@@ -3160,7 +3160,7 @@ static ssize_t qla4xxx_show_boot_tgt_sec_info(void *data, int type, char *buf)
...
@@ -3160,7 +3160,7 @@ static ssize_t qla4xxx_show_boot_tgt_sec_info(void *data, int type, char *buf)
return
qla4xxx_show_boot_tgt_info
(
boot_sess
,
type
,
buf
);
return
qla4xxx_show_boot_tgt_info
(
boot_sess
,
type
,
buf
);
}
}
static
mode_t
qla4xxx_tgt_get_attr_visibility
(
void
*
data
,
int
type
)
static
u
mode_t
qla4xxx_tgt_get_attr_visibility
(
void
*
data
,
int
type
)
{
{
int
rc
;
int
rc
;
...
...
drivers/scsi/scsi_transport_iscsi.c
View file @
587a1f16
...
@@ -328,7 +328,7 @@ iscsi_iface_net_attr(iface, vlan_enabled, ISCSI_NET_PARAM_VLAN_ENABLED);
...
@@ -328,7 +328,7 @@ iscsi_iface_net_attr(iface, vlan_enabled, ISCSI_NET_PARAM_VLAN_ENABLED);
iscsi_iface_net_attr
(
iface
,
mtu
,
ISCSI_NET_PARAM_MTU
);
iscsi_iface_net_attr
(
iface
,
mtu
,
ISCSI_NET_PARAM_MTU
);
iscsi_iface_net_attr
(
iface
,
port
,
ISCSI_NET_PARAM_PORT
);
iscsi_iface_net_attr
(
iface
,
port
,
ISCSI_NET_PARAM_PORT
);
static
mode_t
iscsi_iface_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_iface_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
@@ -2199,7 +2199,7 @@ static struct attribute *iscsi_conn_attrs[] = {
...
@@ -2199,7 +2199,7 @@ static struct attribute *iscsi_conn_attrs[] = {
NULL
,
NULL
,
};
};
static
mode_t
iscsi_conn_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_conn_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
@@ -2370,7 +2370,7 @@ static struct attribute *iscsi_session_attrs[] = {
...
@@ -2370,7 +2370,7 @@ static struct attribute *iscsi_session_attrs[] = {
NULL
,
NULL
,
};
};
static
mode_t
iscsi_session_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_session_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
@@ -2468,7 +2468,7 @@ static struct attribute *iscsi_host_attrs[] = {
...
@@ -2468,7 +2468,7 @@ static struct attribute *iscsi_host_attrs[] = {
NULL
,
NULL
,
};
};
static
mode_t
iscsi_host_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
iscsi_host_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
drivers/scsi/scsi_transport_spi.c
View file @
587a1f16
...
@@ -1434,7 +1434,7 @@ static int spi_host_configure(struct transport_container *tc,
...
@@ -1434,7 +1434,7 @@ static int spi_host_configure(struct transport_container *tc,
(si->f->show_##name ? S_IRUGO : 0) | \
(si->f->show_##name ? S_IRUGO : 0) | \
(si->f->set_##name ? S_IWUSR : 0)
(si->f->set_##name ? S_IWUSR : 0)
static
mode_t
target_attribute_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
target_attribute_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
i
)
struct
attribute
*
attr
,
int
i
)
{
{
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
cdev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
drivers/staging/iio/adc/ad7192.c
View file @
587a1f16
...
@@ -838,14 +838,14 @@ static struct attribute *ad7192_attributes[] = {
...
@@ -838,14 +838,14 @@ static struct attribute *ad7192_attributes[] = {
NULL
NULL
};
};
static
mode_t
ad7192_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
ad7192_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
struct
attribute
*
attr
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
ad7192_state
*
st
=
iio_priv
(
indio_dev
);
struct
ad7192_state
*
st
=
iio_priv
(
indio_dev
);
mode_t
mode
=
attr
->
mode
;
u
mode_t
mode
=
attr
->
mode
;
if
((
st
->
devid
!=
ID_AD7195
)
&&
if
((
st
->
devid
!=
ID_AD7195
)
&&
(
attr
==
&
iio_dev_attr_ac_excitation_en
.
dev_attr
.
attr
))
(
attr
==
&
iio_dev_attr_ac_excitation_en
.
dev_attr
.
attr
))
...
...
drivers/staging/iio/adc/ad7606_core.c
View file @
587a1f16
...
@@ -205,14 +205,14 @@ static struct attribute *ad7606_attributes[] = {
...
@@ -205,14 +205,14 @@ static struct attribute *ad7606_attributes[] = {
NULL
,
NULL
,
};
};
static
mode_t
ad7606_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
ad7606_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
struct
attribute
*
attr
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
ad7606_state
*
st
=
iio_priv
(
indio_dev
);
struct
ad7606_state
*
st
=
iio_priv
(
indio_dev
);
mode_t
mode
=
attr
->
mode
;
u
mode_t
mode
=
attr
->
mode
;
if
(
!
(
gpio_is_valid
(
st
->
pdata
->
gpio_os0
)
&&
if
(
!
(
gpio_is_valid
(
st
->
pdata
->
gpio_os0
)
&&
gpio_is_valid
(
st
->
pdata
->
gpio_os1
)
&&
gpio_is_valid
(
st
->
pdata
->
gpio_os1
)
&&
...
...
drivers/staging/iio/dac/ad5446.c
View file @
587a1f16
...
@@ -197,14 +197,14 @@ static struct attribute *ad5446_attributes[] = {
...
@@ -197,14 +197,14 @@ static struct attribute *ad5446_attributes[] = {
NULL
,
NULL
,
};
};
static
mode_t
ad5446_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
ad5446_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
struct
attribute
*
attr
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
ad5446_state
*
st
=
iio_priv
(
indio_dev
);
struct
ad5446_state
*
st
=
iio_priv
(
indio_dev
);
mode_t
mode
=
attr
->
mode
;
u
mode_t
mode
=
attr
->
mode
;
if
(
!
st
->
chip_info
->
store_pwr_down
&&
if
(
!
st
->
chip_info
->
store_pwr_down
&&
(
attr
==
&
iio_dev_attr_out_voltage0_powerdown
.
dev_attr
.
attr
||
(
attr
==
&
iio_dev_attr_out_voltage0_powerdown
.
dev_attr
.
attr
||
...
...
drivers/staging/iio/dds/ad9834.c
View file @
587a1f16
...
@@ -281,14 +281,14 @@ static struct attribute *ad9834_attributes[] = {
...
@@ -281,14 +281,14 @@ static struct attribute *ad9834_attributes[] = {
NULL
,
NULL
,
};
};
static
mode_t
ad9834_attr_is_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
ad9834_attr_is_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
int
n
)
struct
attribute
*
attr
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
iio_dev
*
indio_dev
=
dev_get_drvdata
(
dev
);
struct
ad9834_state
*
st
=
iio_priv
(
indio_dev
);
struct
ad9834_state
*
st
=
iio_priv
(
indio_dev
);
mode_t
mode
=
attr
->
mode
;
u
mode_t
mode
=
attr
->
mode
;
if
(((
st
->
devid
==
ID_AD9833
)
||
(
st
->
devid
==
ID_AD9837
))
&&
if
(((
st
->
devid
==
ID_AD9833
)
||
(
st
->
devid
==
ID_AD9837
))
&&
((
attr
==
&
iio_dev_attr_dds0_out1_enable
.
dev_attr
.
attr
)
||
((
attr
==
&
iio_dev_attr_dds0_out1_enable
.
dev_attr
.
attr
)
||
...
...
drivers/usb/core/sysfs.c
View file @
587a1f16
...
@@ -642,7 +642,7 @@ static struct attribute *dev_string_attrs[] = {
...
@@ -642,7 +642,7 @@ static struct attribute *dev_string_attrs[] = {
NULL
NULL
};
};
static
mode_t
dev_string_attrs_are_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
dev_string_attrs_are_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
a
,
int
n
)
struct
attribute
*
a
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
@@ -877,7 +877,7 @@ static struct attribute *intf_assoc_attrs[] = {
...
@@ -877,7 +877,7 @@ static struct attribute *intf_assoc_attrs[] = {
NULL
,
NULL
,
};
};
static
mode_t
intf_assoc_attrs_are_visible
(
struct
kobject
*
kobj
,
static
u
mode_t
intf_assoc_attrs_are_visible
(
struct
kobject
*
kobj
,
struct
attribute
*
a
,
int
n
)
struct
attribute
*
a
,
int
n
)
{
{
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
struct
device
*
dev
=
container_of
(
kobj
,
struct
device
,
kobj
);
...
...
fs/sysfs/group.c
View file @
587a1f16
...
@@ -33,7 +33,7 @@ static int create_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
...
@@ -33,7 +33,7 @@ static int create_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
int
error
=
0
,
i
;
int
error
=
0
,
i
;
for
(
i
=
0
,
attr
=
grp
->
attrs
;
*
attr
&&
!
error
;
i
++
,
attr
++
)
{
for
(
i
=
0
,
attr
=
grp
->
attrs
;
*
attr
&&
!
error
;
i
++
,
attr
++
)
{
mode_t
mode
=
0
;
u
mode_t
mode
=
0
;
/* in update mode, we're changing the permissions or
/* in update mode, we're changing the permissions or
* visibility. Do this by first removing then
* visibility. Do this by first removing then
...
...
include/linux/iscsi_boot_sysfs.h
View file @
587a1f16
...
@@ -91,7 +91,7 @@ struct iscsi_boot_kobj {
...
@@ -91,7 +91,7 @@ struct iscsi_boot_kobj {
* The enum of the type. This can be any value of the above
* The enum of the type. This can be any value of the above
* properties.
* properties.
*/
*/
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
);
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
);
/*
/*
* Driver specific release function.
* Driver specific release function.
...
@@ -110,20 +110,20 @@ struct iscsi_boot_kobj *
...
@@ -110,20 +110,20 @@ struct iscsi_boot_kobj *
iscsi_boot_create_initiator
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
iscsi_boot_create_initiator
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
void
*
data
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
));
void
(
*
release
)
(
void
*
data
));
struct
iscsi_boot_kobj
*
struct
iscsi_boot_kobj
*
iscsi_boot_create_ethernet
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
iscsi_boot_create_ethernet
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
void
*
data
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
));
void
(
*
release
)
(
void
*
data
));
struct
iscsi_boot_kobj
*
struct
iscsi_boot_kobj
*
iscsi_boot_create_target
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
iscsi_boot_create_target
(
struct
iscsi_boot_kset
*
boot_kset
,
int
index
,
void
*
data
,
void
*
data
,
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
ssize_t
(
*
show
)
(
void
*
data
,
int
type
,
char
*
buf
),
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
u
mode_t
(
*
is_visible
)
(
void
*
data
,
int
type
),
void
(
*
release
)
(
void
*
data
));
void
(
*
release
)
(
void
*
data
));
struct
iscsi_boot_kset
*
iscsi_boot_create_kset
(
const
char
*
set_name
);
struct
iscsi_boot_kset
*
iscsi_boot_create_kset
(
const
char
*
set_name
);
...
...
include/linux/sysfs.h
View file @
587a1f16
...
@@ -55,7 +55,7 @@ do { \
...
@@ -55,7 +55,7 @@ do { \
struct
attribute_group
{
struct
attribute_group
{
const
char
*
name
;
const
char
*
name
;
mode_t
(
*
is_visible
)(
struct
kobject
*
,
u
mode_t
(
*
is_visible
)(
struct
kobject
*
,
struct
attribute
*
,
int
);
struct
attribute
*
,
int
);
struct
attribute
**
attrs
;
struct
attribute
**
attrs
;
};
};
...
...
include/scsi/scsi_transport_iscsi.h
View file @
587a1f16
...
@@ -142,7 +142,7 @@ struct iscsi_transport {
...
@@ -142,7 +142,7 @@ struct iscsi_transport {
int
(
*
get_iface_param
)
(
struct
iscsi_iface
*
iface
,
int
(
*
get_iface_param
)
(
struct
iscsi_iface
*
iface
,
enum
iscsi_param_type
param_type
,
enum
iscsi_param_type
param_type
,
int
param
,
char
*
buf
);
int
param
,
char
*
buf
);
mode_t
(
*
attr_is_visible
)(
int
param_type
,
int
param
);
u
mode_t
(
*
attr_is_visible
)(
int
param_type
,
int
param
);
int
(
*
bsg_request
)(
struct
bsg_job
*
job
);
int
(
*
bsg_request
)(
struct
bsg_job
*
job
);
};
};
...
...
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