@@ -6185,7 +6185,7 @@ const struct attribute_group *lpfc_vport_groups[] = {
6185
6185
**/
6186
6186
static ssize_t
6187
6187
sysfs_ctlreg_write (struct file * filp , struct kobject * kobj ,
6188
- struct bin_attribute * bin_attr ,
6188
+ const struct bin_attribute * bin_attr ,
6189
6189
char * buf , loff_t off , size_t count )
6190
6190
{
6191
6191
size_t buf_off ;
@@ -6244,7 +6244,7 @@ sysfs_ctlreg_write(struct file *filp, struct kobject *kobj,
6244
6244
**/
6245
6245
static ssize_t
6246
6246
sysfs_ctlreg_read (struct file * filp , struct kobject * kobj ,
6247
- struct bin_attribute * bin_attr ,
6247
+ const struct bin_attribute * bin_attr ,
6248
6248
char * buf , loff_t off , size_t count )
6249
6249
{
6250
6250
size_t buf_off ;
@@ -6280,14 +6280,14 @@ sysfs_ctlreg_read(struct file *filp, struct kobject *kobj,
6280
6280
return count ;
6281
6281
}
6282
6282
6283
- static struct bin_attribute sysfs_ctlreg_attr = {
6283
+ static const struct bin_attribute sysfs_ctlreg_attr = {
6284
6284
.attr = {
6285
6285
.name = "ctlreg" ,
6286
6286
.mode = S_IRUSR | S_IWUSR ,
6287
6287
},
6288
6288
.size = 256 ,
6289
- .read = sysfs_ctlreg_read ,
6290
- .write = sysfs_ctlreg_write ,
6289
+ .read_new = sysfs_ctlreg_read ,
6290
+ .write_new = sysfs_ctlreg_write ,
6291
6291
};
6292
6292
6293
6293
/**
@@ -6308,7 +6308,7 @@ static struct bin_attribute sysfs_ctlreg_attr = {
6308
6308
**/
6309
6309
static ssize_t
6310
6310
sysfs_mbox_write (struct file * filp , struct kobject * kobj ,
6311
- struct bin_attribute * bin_attr ,
6311
+ const struct bin_attribute * bin_attr ,
6312
6312
char * buf , loff_t off , size_t count )
6313
6313
{
6314
6314
return - EPERM ;
@@ -6332,20 +6332,20 @@ sysfs_mbox_write(struct file *filp, struct kobject *kobj,
6332
6332
**/
6333
6333
static ssize_t
6334
6334
sysfs_mbox_read (struct file * filp , struct kobject * kobj ,
6335
- struct bin_attribute * bin_attr ,
6335
+ const struct bin_attribute * bin_attr ,
6336
6336
char * buf , loff_t off , size_t count )
6337
6337
{
6338
6338
return - EPERM ;
6339
6339
}
6340
6340
6341
- static struct bin_attribute sysfs_mbox_attr = {
6341
+ static const struct bin_attribute sysfs_mbox_attr = {
6342
6342
.attr = {
6343
6343
.name = "mbox" ,
6344
6344
.mode = S_IRUSR | S_IWUSR ,
6345
6345
},
6346
6346
.size = MAILBOX_SYSFS_MAX ,
6347
- .read = sysfs_mbox_read ,
6348
- .write = sysfs_mbox_write ,
6347
+ .read_new = sysfs_mbox_read ,
6348
+ .write_new = sysfs_mbox_write ,
6349
6349
};
6350
6350
6351
6351
/**
0 commit comments