@@ -104,7 +104,7 @@ void qedf_capture_grc_dump(struct qedf_ctx *qedf)
104
104
105
105
static ssize_t
106
106
qedf_sysfs_read_grcdump (struct file * filep , struct kobject * kobj ,
107
- struct bin_attribute * ba , char * buf , loff_t off ,
107
+ const struct bin_attribute * ba , char * buf , loff_t off ,
108
108
size_t count )
109
109
{
110
110
ssize_t ret = 0 ;
@@ -124,7 +124,7 @@ qedf_sysfs_read_grcdump(struct file *filep, struct kobject *kobj,
124
124
125
125
static ssize_t
126
126
qedf_sysfs_write_grcdump (struct file * filep , struct kobject * kobj ,
127
- struct bin_attribute * ba , char * buf , loff_t off ,
127
+ const struct bin_attribute * ba , char * buf , loff_t off ,
128
128
size_t count )
129
129
{
130
130
struct fc_lport * lport = NULL ;
@@ -160,14 +160,14 @@ qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj,
160
160
return count ;
161
161
}
162
162
163
- static struct bin_attribute sysfs_grcdump_attr = {
163
+ static const struct bin_attribute sysfs_grcdump_attr = {
164
164
.attr = {
165
165
.name = "grcdump" ,
166
166
.mode = S_IRUSR | S_IWUSR ,
167
167
},
168
168
.size = 0 ,
169
- .read = qedf_sysfs_read_grcdump ,
170
- .write = qedf_sysfs_write_grcdump ,
169
+ .read_new = qedf_sysfs_read_grcdump ,
170
+ .write_new = qedf_sysfs_write_grcdump ,
171
171
};
172
172
173
173
static struct sysfs_bin_attrs bin_file_entries [] = {
0 commit comments