aboutsummaryrefslogtreecommitdiffstats
path: root/c01.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-22 17:08:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-22 17:08:18 +0100
commite7d7dc0e0e7ab68f1845e11b7574d83ac8015e0e (patch)
tree72d317ef93f50aa80af2f67c9d109e7ff59413ff /c01.patch
parent08ba5e5e533732546b64764231406dd6151342c1 (diff)
downloadpatches-e7d7dc0e0e7ab68f1845e11b7574d83ac8015e0e.tar.gz
lots of patches and fixes added and made
Diffstat (limited to 'c01.patch')
-rw-r--r--c01.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/c01.patch b/c01.patch
new file mode 100644
index 00000000000000..c1f9119d7218ed
--- /dev/null
+++ b/c01.patch
@@ -0,0 +1,31 @@
+---
+ drivers/base/devcoredump.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+--- a/drivers/base/devcoredump.c
++++ b/drivers/base/devcoredump.c
+@@ -160,18 +160,20 @@ static ssize_t disabled_store(struct cla
+
+ return count;
+ }
++static CLASS_ATTR_RW(disabled);
+
+-static struct class_attribute devcd_class_attrs[] = {
+- __ATTR_RW(disabled),
+- __ATTR_NULL
++static struct attribute *devcd_class_attrs[] = {
++ &class_attr_disabled.attr,
++ NULL,
+ };
++ATTRIBUTE_GROUPS(devcd_class);
+
+ static struct class devcd_class = {
+ .name = "devcoredump",
+ .owner = THIS_MODULE,
+ .dev_release = devcd_dev_release,
+ .dev_groups = devcd_dev_groups,
+- .class_attrs = devcd_class_attrs,
++ .class_groups = devcd_class_groups,
+ };
+
+ static ssize_t devcd_readv(char *buffer, loff_t offset, size_t count,