@@ -3366,7 +3366,7 @@ static void ipr_worker_thread(struct work_struct *work)
3366
3366
* number of bytes printed to buffer
3367
3367
**/
3368
3368
static ssize_t ipr_read_trace (struct file * filp , struct kobject * kobj ,
3369
- struct bin_attribute * bin_attr ,
3369
+ const struct bin_attribute * bin_attr ,
3370
3370
char * buf , loff_t off , size_t count )
3371
3371
{
3372
3372
struct device * dev = kobj_to_dev (kobj );
@@ -3383,13 +3383,13 @@ static ssize_t ipr_read_trace(struct file *filp, struct kobject *kobj,
3383
3383
return ret ;
3384
3384
}
3385
3385
3386
- static struct bin_attribute ipr_trace_attr = {
3386
+ static const struct bin_attribute ipr_trace_attr = {
3387
3387
.attr = {
3388
3388
.name = "trace" ,
3389
3389
.mode = S_IRUGO ,
3390
3390
},
3391
3391
.size = 0 ,
3392
- .read = ipr_read_trace ,
3392
+ .read_new = ipr_read_trace ,
3393
3393
};
3394
3394
#endif
3395
3395
@@ -4087,7 +4087,7 @@ static struct device_attribute ipr_ioa_fw_type_attr = {
4087
4087
};
4088
4088
4089
4089
static ssize_t ipr_read_async_err_log (struct file * filep , struct kobject * kobj ,
4090
- struct bin_attribute * bin_attr , char * buf ,
4090
+ const struct bin_attribute * bin_attr , char * buf ,
4091
4091
loff_t off , size_t count )
4092
4092
{
4093
4093
struct device * cdev = kobj_to_dev (kobj );
@@ -4111,7 +4111,7 @@ static ssize_t ipr_read_async_err_log(struct file *filep, struct kobject *kobj,
4111
4111
}
4112
4112
4113
4113
static ssize_t ipr_next_async_err_log (struct file * filep , struct kobject * kobj ,
4114
- struct bin_attribute * bin_attr , char * buf ,
4114
+ const struct bin_attribute * bin_attr , char * buf ,
4115
4115
loff_t off , size_t count )
4116
4116
{
4117
4117
struct device * cdev = kobj_to_dev (kobj );
@@ -4134,14 +4134,14 @@ static ssize_t ipr_next_async_err_log(struct file *filep, struct kobject *kobj,
4134
4134
return count ;
4135
4135
}
4136
4136
4137
- static struct bin_attribute ipr_ioa_async_err_log = {
4137
+ static const struct bin_attribute ipr_ioa_async_err_log = {
4138
4138
.attr = {
4139
4139
.name = "async_err_log" ,
4140
4140
.mode = S_IRUGO | S_IWUSR ,
4141
4141
},
4142
4142
.size = 0 ,
4143
- .read = ipr_read_async_err_log ,
4144
- .write = ipr_next_async_err_log
4143
+ .read_new = ipr_read_async_err_log ,
4144
+ .write_new = ipr_next_async_err_log
4145
4145
};
4146
4146
4147
4147
static struct attribute * ipr_ioa_attrs [] = {
@@ -4172,7 +4172,7 @@ ATTRIBUTE_GROUPS(ipr_ioa);
4172
4172
* number of bytes printed to buffer
4173
4173
**/
4174
4174
static ssize_t ipr_read_dump (struct file * filp , struct kobject * kobj ,
4175
- struct bin_attribute * bin_attr ,
4175
+ const struct bin_attribute * bin_attr ,
4176
4176
char * buf , loff_t off , size_t count )
4177
4177
{
4178
4178
struct device * cdev = kobj_to_dev (kobj );
@@ -4361,7 +4361,7 @@ static int ipr_free_dump(struct ipr_ioa_cfg *ioa_cfg)
4361
4361
* number of bytes printed to buffer
4362
4362
**/
4363
4363
static ssize_t ipr_write_dump (struct file * filp , struct kobject * kobj ,
4364
- struct bin_attribute * bin_attr ,
4364
+ const struct bin_attribute * bin_attr ,
4365
4365
char * buf , loff_t off , size_t count )
4366
4366
{
4367
4367
struct device * cdev = kobj_to_dev (kobj );
@@ -4385,14 +4385,14 @@ static ssize_t ipr_write_dump(struct file *filp, struct kobject *kobj,
4385
4385
return count ;
4386
4386
}
4387
4387
4388
- static struct bin_attribute ipr_dump_attr = {
4388
+ static const struct bin_attribute ipr_dump_attr = {
4389
4389
.attr = {
4390
4390
.name = "dump" ,
4391
4391
.mode = S_IRUSR | S_IWUSR ,
4392
4392
},
4393
4393
.size = 0 ,
4394
- .read = ipr_read_dump ,
4395
- .write = ipr_write_dump
4394
+ .read_new = ipr_read_dump ,
4395
+ .write_new = ipr_write_dump
4396
4396
};
4397
4397
#else
4398
4398
static int ipr_free_dump (struct ipr_ioa_cfg * ioa_cfg ) { return 0 ; };
0 commit comments