The patch titled
update gregkh-driver-block-device
has been added to the -mm tree. Its filename is
update-gregkh-driver-block-device.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: update gregkh-driver-block-device
From: Kay Sievers <[EMAIL PROTECTED]>
this fixes the block patch to work with the fault-injection. It broke with
the last manual merge and resync. It contains all of Andrew's fixes without
changing the attribute name, and adds a line of comment to the "device"-link
creation.
Signed-off-by: Kay Sievers <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
block/genhd.c | 2 +-
drivers/base/core.c | 1 +
fs/partitions/check.c | 10 ++++++----
3 files changed, 8 insertions(+), 5 deletions(-)
diff -puN block/genhd.c~update-gregkh-driver-block-device block/genhd.c
--- a/block/genhd.c~update-gregkh-driver-block-device
+++ a/block/genhd.c
@@ -471,7 +471,7 @@ static DEVICE_ATTR(size, S_IRUGO, disk_s
static DEVICE_ATTR(capability, S_IRUGO, disk_capability_show, NULL);
static DEVICE_ATTR(stat, S_IRUGO, disk_stat_show, NULL);
#ifdef CONFIG_FAIL_MAKE_REQUEST
-static device_attribute dev_attr_fail =
+static struct device_attribute dev_attr_fail =
__ATTR(make-it-fail, S_IRUGO|S_IWUSR, disk_fail_show, disk_fail_store);
#endif
diff -puN drivers/base/core.c~update-gregkh-driver-block-device
drivers/base/core.c
--- a/drivers/base/core.c~update-gregkh-driver-block-device
+++ a/drivers/base/core.c
@@ -713,6 +713,7 @@ int device_add(struct device *dev)
if (dev->kobj.parent != &dev->class->subsys.kobj)
sysfs_create_link(&dev->class->subsys.kobj,
&dev->kobj, dev->bus_id);
+ /* only bus-device parents get a "device"-link */
if (parent && parent->bus) {
sysfs_create_link(&dev->kobj, &dev->parent->kobj,
"device");
diff -puN fs/partitions/check.c~update-gregkh-driver-block-device
fs/partitions/check.c
--- a/fs/partitions/check.c~update-gregkh-driver-block-device
+++ a/fs/partitions/check.c
@@ -250,8 +250,8 @@ static DEVICE_ATTR(start, S_IRUGO, part_
static DEVICE_ATTR(size, S_IRUGO, part_size_show, NULL);
static DEVICE_ATTR(stat, S_IRUGO, part_stat_show, NULL);
#ifdef CONFIG_FAIL_MAKE_REQUEST
-static struct part_attribute dev_attr_fail =
- __ATTR(make-it-fail, S_IRUGO|S_IWUSR, part_fail_store, part_fail_read);
+static struct device_attribute dev_attr_fail =
+ __ATTR(make-it-fail, S_IRUGO|S_IWUSR, part_fail_show, part_fail_store);
#endif
static struct attribute *part_attrs[] = {
@@ -259,9 +259,9 @@ static struct attribute *part_attrs[] =
&dev_attr_size.attr,
&dev_attr_stat.attr,
#ifdef CONFIG_FAIL_MAKE_REQUEST
- &dev_attr_fail,
+ &dev_attr_fail.attr,
#endif
- NULL,
+ NULL
};
static struct attribute_group part_attr_group = {
@@ -370,6 +370,7 @@ void add_partition(struct gendisk *disk,
kobject_uevent(&p->dev.kobj, KOBJ_ADD);
}
+#ifndef CONFIG_SYSFS_DEPRECATED
static int disk_sysfs_symlinks(struct gendisk *disk)
{
int err = 0;
@@ -381,6 +382,7 @@ static int disk_sysfs_symlinks(struct ge
put_device(target);
return err;
}
+#endif
/* Not exported, helper to add_disk(). */
void register_disk(struct gendisk *disk)
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
update-gregkh-driver-block-device.patch
fix-gregkh-driver-block-device.patch
more-fix-gregkh-driver-block-device.patch
more-more-fix-gregkh-driver-block-device.patch
git-ieee1394.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html