s390/sclp: add const to bin_attribute structure
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 2 Aug 2017 16:07:22 +0000 (21:37 +0530)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 3 Aug 2017 11:16:29 +0000 (13:16 +0200)
Declare bin_attribute structure as const as it is only passed as an
argument to the function sysfs_create_bin_file. This argument is of
type const, so declare the structure as const.

Cross compiled for s390 architecture.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp_config.c

index 1406fb688a26d643263f308bf85b414266067ea4..7003d52c219184bc65f4a6a099cc86e8f6cdaed1 100644 (file)
@@ -135,7 +135,7 @@ static ssize_t sysfs_ofb_data_write(struct file *filp, struct kobject *kobj,
        return rc ?: count;
 }
 
-static struct bin_attribute ofb_bin_attr = {
+static const struct bin_attribute ofb_bin_attr = {
        .attr = {
                .name = "event_data",
                .mode = S_IWUSR,