summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/runtime-map.c
diff options
context:
space:
mode:
authorSumit Semwal <sumit.semwal@linaro.org>2017-12-18 15:09:38 +0530
committerSumit Semwal <sumit.semwal@linaro.org>2017-12-18 15:09:38 +0530
commit4d4899cc6c5f3572bdca0486a123f42d19261603 (patch)
treed4b9187ce1830eba4d5782168af1989b84943777 /drivers/firmware/efi/runtime-map.c
parent8466c55d9fbc79c97cfe36a376f10d4805868399 (diff)
parent4231b6a98fceb1589f13e886c26130d2fd4e3901 (diff)
Merge remote-tracking branch 'stable/linux-4.4.y' into lts-4.4.y-hikey4.4.106-hikey
Diffstat (limited to 'drivers/firmware/efi/runtime-map.c')
-rw-r--r--drivers/firmware/efi/runtime-map.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/firmware/efi/runtime-map.c b/drivers/firmware/efi/runtime-map.c
index 5c55227a34c8..2400b3e1d840 100644
--- a/drivers/firmware/efi/runtime-map.c
+++ b/drivers/firmware/efi/runtime-map.c
@@ -67,11 +67,11 @@ static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr,
return map_attr->show(entry, buf);
}
-static struct map_attribute map_type_attr = __ATTR_RO(type);
-static struct map_attribute map_phys_addr_attr = __ATTR_RO(phys_addr);
-static struct map_attribute map_virt_addr_attr = __ATTR_RO(virt_addr);
-static struct map_attribute map_num_pages_attr = __ATTR_RO(num_pages);
-static struct map_attribute map_attribute_attr = __ATTR_RO(attribute);
+static struct map_attribute map_type_attr = __ATTR_RO_MODE(type, 0400);
+static struct map_attribute map_phys_addr_attr = __ATTR_RO_MODE(phys_addr, 0400);
+static struct map_attribute map_virt_addr_attr = __ATTR_RO_MODE(virt_addr, 0400);
+static struct map_attribute map_num_pages_attr = __ATTR_RO_MODE(num_pages, 0400);
+static struct map_attribute map_attribute_attr = __ATTR_RO_MODE(attribute, 0400);
/*
* These are default attributes that are added for every memmap entry.