--- zzzz-none-000/linux-4.1.38/block/partition-generic.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/block/partition-generic.c 2020-11-25 10:06:48.000000000 +0000 @@ -64,6 +64,16 @@ EXPORT_SYMBOL(__bdevname); +#if defined(CONFIG_BCM_KF_EMMC) +static ssize_t part_volname_show(struct device *dev, + struct device_attribute *attr, char *buf) +{ + struct hd_struct *p = dev_to_part(dev); + + return sprintf(buf, "%s\n", &(p->info->volname[0])); +} + +#endif /* CONFIG_BCM_KF_EMMC */ static ssize_t part_partition_show(struct device *dev, struct device_attribute *attr, char *buf) { @@ -167,6 +177,9 @@ } #endif +#if defined(CONFIG_BCM_KF_EMMC) +static DEVICE_ATTR(volname, S_IRUGO, part_volname_show, NULL); +#endif /* CONFIG_BCM_KF_EMMC */ static DEVICE_ATTR(partition, S_IRUGO, part_partition_show, NULL); static DEVICE_ATTR(start, S_IRUGO, part_start_show, NULL); static DEVICE_ATTR(size, S_IRUGO, part_size_show, NULL); @@ -182,6 +195,9 @@ #endif static struct attribute *part_attrs[] = { +#if defined(CONFIG_BCM_KF_EMMC) + &dev_attr_volname.attr, +#endif /* CONFIG_BCM_KF_EMMC */ &dev_attr_partition.attr, &dev_attr_start.attr, &dev_attr_size.attr,