switch ->is_visible() to returning umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -112,7 +112,7 @@ static struct attribute *target_attrs[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static mode_t iscsi_boot_tgt_attr_is_visible(struct kobject *kobj,
|
||||
static umode_t iscsi_boot_tgt_attr_is_visible(struct kobject *kobj,
|
||||
struct attribute *attr, int i)
|
||||
{
|
||||
struct iscsi_boot_kobj *boot_kobj =
|
||||
@@ -193,7 +193,7 @@ static struct attribute *ethernet_attrs[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static mode_t iscsi_boot_eth_attr_is_visible(struct kobject *kobj,
|
||||
static umode_t iscsi_boot_eth_attr_is_visible(struct kobject *kobj,
|
||||
struct attribute *attr, int i)
|
||||
{
|
||||
struct iscsi_boot_kobj *boot_kobj =
|
||||
@@ -265,7 +265,7 @@ static struct attribute *initiator_attrs[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static mode_t iscsi_boot_ini_attr_is_visible(struct kobject *kobj,
|
||||
static umode_t iscsi_boot_ini_attr_is_visible(struct kobject *kobj,
|
||||
struct attribute *attr, int i)
|
||||
{
|
||||
struct iscsi_boot_kobj *boot_kobj =
|
||||
@@ -306,7 +306,7 @@ iscsi_boot_create_kobj(struct iscsi_boot_kset *boot_kset,
|
||||
struct attribute_group *attr_group,
|
||||
const char *name, int index, void *data,
|
||||
ssize_t (*show) (void *data, int type, char *buf),
|
||||
mode_t (*is_visible) (void *data, int type),
|
||||
umode_t (*is_visible) (void *data, int type),
|
||||
void (*release) (void *data))
|
||||
{
|
||||
struct iscsi_boot_kobj *boot_kobj;
|
||||
@@ -369,7 +369,7 @@ struct iscsi_boot_kobj *
|
||||
iscsi_boot_create_target(struct iscsi_boot_kset *boot_kset, int index,
|
||||
void *data,
|
||||
ssize_t (*show) (void *data, int type, char *buf),
|
||||
mode_t (*is_visible) (void *data, int type),
|
||||
umode_t (*is_visible) (void *data, int type),
|
||||
void (*release) (void *data))
|
||||
{
|
||||
return iscsi_boot_create_kobj(boot_kset, &iscsi_boot_target_attr_group,
|
||||
@@ -394,7 +394,7 @@ struct iscsi_boot_kobj *
|
||||
iscsi_boot_create_initiator(struct iscsi_boot_kset *boot_kset, int index,
|
||||
void *data,
|
||||
ssize_t (*show) (void *data, int type, char *buf),
|
||||
mode_t (*is_visible) (void *data, int type),
|
||||
umode_t (*is_visible) (void *data, int type),
|
||||
void (*release) (void *data))
|
||||
{
|
||||
return iscsi_boot_create_kobj(boot_kset,
|
||||
@@ -420,7 +420,7 @@ struct iscsi_boot_kobj *
|
||||
iscsi_boot_create_ethernet(struct iscsi_boot_kset *boot_kset, int index,
|
||||
void *data,
|
||||
ssize_t (*show) (void *data, int type, char *buf),
|
||||
mode_t (*is_visible) (void *data, int type),
|
||||
umode_t (*is_visible) (void *data, int type),
|
||||
void (*release) (void *data))
|
||||
{
|
||||
return iscsi_boot_create_kobj(boot_kset,
|
||||
|
Reference in New Issue
Block a user