summaryrefslogtreecommitdiff
blob: b6cf1f74138fa719c819dd148f3b54f72f103ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- a/drivers/block/genhd.c	2005-10-25 04:22:32 -07:00
+++ b/drivers/block/genhd.c	2005-10-25 04:22:32 -07:00
@@ -322,12 +322,6 @@
 /*
  * kobject & sysfs bindings for block devices
  */
-
-struct disk_attribute {
-	struct attribute attr;
-	ssize_t (*show)(struct gendisk *, char *);
-};
-
 static ssize_t disk_attr_show(struct kobject *kobj, struct attribute *attr,
 			      char *page)
 {
--- a/include/linux/genhd.h	2005-10-25 04:22:32 -07:00
+++ b/include/linux/genhd.h	2005-10-25 04:22:32 -07:00
@@ -110,6 +110,12 @@
 #endif
 };
 
+/* Structure for sysfs attributes on block devices */
+struct disk_attribute {
+	struct attribute attr;
+	ssize_t (*show)(struct gendisk *, char *);
+};
+
 /* 
  * Macros to operate on percpu disk statistics:
  * Since writes to disk_stats are serialised through the queue_lock,
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/14 11:57:48-08:00 greg@kroah.com 
#   [PATCH] Block: move struct disk_attribute to genhd.h
#   
#   This allows other block devices to add attributes to their sysfs
#   entries.
#   
#   Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
# 
# drivers/block/aoe/aoeblk.c
#   2005/01/14 11:21:23-08:00 greg@kroah.com +1 -8
#   Block: move struct disk_attribute to genhd.h
# 
# drivers/block/genhd.c
#   2005/01/14 11:21:23-08:00 greg@kroah.com +0 -6
#   Block: move struct disk_attribute to genhd.h
# 
# include/linux/genhd.h
#   2005/01/14 11:21:23-08:00 greg@kroah.com +6 -0
#   Block: move struct disk_attribute to genhd.h
#