aboutsummaryrefslogtreecommitdiffstats
path: root/f2.patch
diff options
Diffstat (limited to 'f2.patch')
-rw-r--r--f2.patch127
1 files changed, 122 insertions, 5 deletions
diff --git a/f2.patch b/f2.patch
index e403b42486b5f1..1df7c8d67ff1a0 100644
--- a/f2.patch
+++ b/f2.patch
@@ -1,10 +1,53 @@
---
- drivers/block/rbd.c | 14 +++++++++-----
- drivers/pci/pci-driver.c | 2 +-
- drivers/pci/pci-sysfs.c | 16 +++++++++++++---
- drivers/pci/pci.h | 2 +-
- 4 files changed, 24 insertions(+), 10 deletions(-)
+ arch/powerpc/kernel/ibmebus.c | 12 +++++++-----
+ drivers/block/rbd.c | 14 +++++++++-----
+ drivers/pci/pci-driver.c | 2 +-
+ drivers/pci/pci-sysfs.c | 16 +++++++++++++---
+ drivers/pci/pci.h | 2 +-
+ drivers/rapidio/rio-driver.c | 2 +-
+ drivers/rapidio/rio-sysfs.c | 16 +++++++++++++---
+ drivers/rapidio/rio.h | 2 +-
+ drivers/scsi/fcoe/fcoe_sysfs.c | 14 +++++++++-----
+ 9 files changed, 55 insertions(+), 25 deletions(-)
+--- a/arch/powerpc/kernel/ibmebus.c
++++ b/arch/powerpc/kernel/ibmebus.c
+@@ -292,6 +292,7 @@ out:
+ return rc;
+ return count;
+ }
++static BUS_ATTR(remove, S_IWUSR, NULL, ibmebus_store_remove);
+
+ static ssize_t ibmebus_store_remove(struct bus_type *bus,
+ const char *buf, size_t count)
+@@ -317,13 +318,14 @@ static ssize_t ibmebus_store_remove(stru
+ return -ENODEV;
+ }
+ }
+-
++static BUS_ATTR(remove, S_IWUSR, NULL, ibmebus_store_remove);
+
+ static struct bus_attribute ibmebus_bus_attrs[] = {
+- __ATTR(probe, S_IWUSR, NULL, ibmebus_store_probe),
+- __ATTR(remove, S_IWUSR, NULL, ibmebus_store_remove),
+- __ATTR_NULL
++ &bus_attr_probe.attr,
++ &bus_attr_probe.remove,
++ NULL,
+ };
++ATTRIBUTE_GROUPS(ibmbus_bus);
+
+ static int ibmebus_bus_bus_match(struct device *dev, struct device_driver *drv)
+ {
+@@ -713,7 +715,7 @@ static struct dev_pm_ops ibmebus_bus_dev
+ struct bus_type ibmebus_bus_type = {
+ .name = "ibmebus",
+ .uevent = of_device_uevent_modalias,
+- .bus_attrs = ibmebus_bus_attrs,
++ .bus_groups = ibmbus_bus_groups,
+ .match = ibmebus_bus_bus_match,
+ .probe = ibmebus_bus_device_probe,
+ .remove = ibmebus_bus_device_remove,
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -397,15 +397,19 @@ static ssize_t rbd_remove(struct bus_typ
@@ -80,3 +123,77 @@
/**
+--- a/drivers/rapidio/rio-driver.c
++++ b/drivers/rapidio/rio-driver.c
+@@ -224,7 +224,7 @@ struct bus_type rio_bus_type = {
+ .name = "rapidio",
+ .match = rio_match_bus,
+ .dev_attrs = rio_dev_attrs,
+- .bus_attrs = rio_bus_attrs,
++ .bus_groups = rio_bus_groups,
+ .probe = rio_device_probe,
+ .remove = rio_device_remove,
+ .uevent = rio_uevent,
+--- a/drivers/rapidio/rio-sysfs.c
++++ b/drivers/rapidio/rio-sysfs.c
+@@ -316,8 +316,18 @@ exit:
+
+ return rc;
+ }
++static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store);
+
+-struct bus_attribute rio_bus_attrs[] = {
+- __ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store),
+- __ATTR_NULL
++static struct bus_attribute rio_bus_attrs[] = {
++ &bus_attr_scan.attr,
++ NULL,
++};
++
++static const struct attribute_group rio_bus_group = {
++ .attrs = rio_bus_attrs,
++};
++
++const struct attribute_group *rio_bus_groups[] = {
++ &rio_bus_group,
++ NULL,
+ };
+--- a/drivers/rapidio/rio.h
++++ b/drivers/rapidio/rio.h
+@@ -49,7 +49,7 @@ extern int rio_mport_scan(int mport_id);
+
+ /* Structures internal to the RIO core code */
+ extern struct device_attribute rio_dev_attrs[];
+-extern struct bus_attribute rio_bus_attrs[];
++extern const struct attribute_group *rio_bus_groups[];
+
+ #define RIO_GET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x00ff0000) >> 16))
+ #define RIO_SET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x000000ff) << 16))
+--- a/drivers/scsi/fcoe/fcoe_sysfs.c
++++ b/drivers/scsi/fcoe/fcoe_sysfs.c
+@@ -553,16 +553,20 @@ struct device_type fcoe_fcf_device_type
+ .release = fcoe_fcf_device_release,
+ };
+
+-struct bus_attribute fcoe_bus_attr_group[] = {
+- __ATTR(ctlr_create, S_IWUSR, NULL, fcoe_ctlr_create_store),
+- __ATTR(ctlr_destroy, S_IWUSR, NULL, fcoe_ctlr_destroy_store),
+- __ATTR_NULL
++static BUS_ATTR(ctlr_create, S_IWUSR, NULL, fcoe_ctlr_create_store);
++static BUS_ATTR(ctlr_destroy, S_IWUSR, NULL, fcoe_ctlr_destroy_store);
++
++static struct attribute *fcoe_bus_attrs[] = {
++ &bus_attr_ctlr_create.attr,
++ &bus_attr_ctrl_destroy.attr,
++ NULL,
+ };
++ATTRIBUTE_GROUPS(fcoe_bus);
+
+ struct bus_type fcoe_bus_type = {
+ .name = "fcoe",
+ .match = &fcoe_bus_match,
+- .bus_attrs = fcoe_bus_attr_group,
++ .bus_groups = fcoe_bus_groups,
+ };
+
+ /**