Merge commit '81fd23e2b3ccf71c807e671444e8accaba98ca53' of https://git.pengutronix...
[linux-2.6-microblaze.git] / drivers / base / node.c
index 9db2974..4a4ae86 100644 (file)
@@ -233,7 +233,7 @@ static ssize_t name##_show(struct device *dev,                              \
        return sysfs_emit(buf, fmt "\n",                                \
                          to_cache_info(dev)->cache_attrs.name);        \
 }                                                                      \
-DEVICE_ATTR_RO(name);
+static DEVICE_ATTR_RO(name);
 
 CACHE_ATTR(size, "%llu")
 CACHE_ATTR(line_size, "%u")
@@ -1038,7 +1038,7 @@ static struct attribute *node_state_attrs[] = {
        NULL
 };
 
-static struct attribute_group memory_root_attr_group = {
+static const struct attribute_group memory_root_attr_group = {
        .attrs = node_state_attrs,
 };