diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-18 22:31:21 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-18 22:31:21 -0700 |
| commit | 884b77d793568a57c130c46c076c9a11ea164e3c (patch) | |
| tree | c4aefe5ec0baa94d793b4036eb663e4d65f3c65e /sysfs-prevent-warning-when-only-using-binary-attributes.patch | |
| parent | bc85fd35b9d8113f093577cb129cb95c8c554562 (diff) | |
| download | patches-884b77d793568a57c130c46c076c9a11ea164e3c.tar.gz | |
remove patches now upstream
Diffstat (limited to 'sysfs-prevent-warning-when-only-using-binary-attributes.patch')
| -rw-r--r-- | sysfs-prevent-warning-when-only-using-binary-attributes.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sysfs-prevent-warning-when-only-using-binary-attributes.patch b/sysfs-prevent-warning-when-only-using-binary-attributes.patch deleted file mode 100644 index 8c0774eca2aa93..00000000000000 --- a/sysfs-prevent-warning-when-only-using-binary-attributes.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 5a4066011878134c1ab9412bc147c28c30f0fa4b Mon Sep 17 00:00:00 2001 -From: Oliver Schinagl <oliver@schinagl.nl> -Date: Thu, 11 Jul 2013 13:40:20 +0200 -Subject: sysfs: prevent warning when only using binary attributes - -When only using bin_attrs instead of attrs the kernel prints a warning -and refuses to create the sysfs entry. This fixes that. - -Signed-off-by: Oliver Schinagl <oliver@schinagl.nl> -Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> - ---- - fs/sysfs/group.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/fs/sysfs/group.c -+++ b/fs/sysfs/group.c -@@ -93,8 +93,8 @@ static int internal_create_group(struct - /* Updates may happen before the object has been instantiated */ - if (unlikely(update && !kobj->sd)) - return -EINVAL; -- if (!grp->attrs) { -- WARN(1, "sysfs: attrs not set by subsystem for group: %s/%s\n", -+ if (!grp->attrs && !grp->bin_attrs) { -+ WARN(1, "sysfs: (bin_)attrs not set by subsystem for group: %s/%s\n", - kobj->name, grp->name ? "" : grp->name); - return -EINVAL; - } |
