static ssize_t
 qedf_sysfs_read_grcdump(struct file *filep, struct kobject *kobj,
-                       struct bin_attribute *ba, char *buf, loff_t off,
+                       const struct bin_attribute *ba, char *buf, loff_t off,
                        size_t count)
 {
        ssize_t ret = 0;
 
 static ssize_t
 qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj,
-                       struct bin_attribute *ba, char *buf, loff_t off,
+                       const struct bin_attribute *ba, char *buf, loff_t off,
                        size_t count)
 {
        struct fc_lport *lport = NULL;
        return count;
 }
 
-static struct bin_attribute sysfs_grcdump_attr = {
+static const struct bin_attribute sysfs_grcdump_attr = {
        .attr = {
                .name = "grcdump",
                .mode = S_IRUSR | S_IWUSR,
        },
        .size = 0,
-       .read = qedf_sysfs_read_grcdump,
-       .write = qedf_sysfs_write_grcdump,
+       .read_new = qedf_sysfs_read_grcdump,
+       .write_new = qedf_sysfs_write_grcdump,
 };
 
 static struct sysfs_bin_attrs bin_file_entries[] = {