Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108584013
D43023.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
D43023.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h
--- a/sys/compat/linuxkpi/common/include/linux/sysfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h
@@ -54,7 +54,10 @@
.attr = { .name = __stringify(_name), .mode = _mode }, \
.show = _show, .store = _store, \
}
-#define __ATTR_RO(_name) __ATTR(_name, 0444, _name##_show, NULL)
+#define __ATTR_RO(_name) { \
+ .attr = { .name = __stringify(_name), .mode = 0444 }, \
+ .show = _name##_show, \
+}
#define __ATTR_WO(_name) __ATTR(_name, 0200, NULL, _name##_store)
#define __ATTR_RW(_name) __ATTR(_name, 0644, _name##_show, _name##_store)
#define __ATTR_NULL { .attr = { .name = NULL } }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 3:28 PM (5 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16200018
Default Alt Text
D43023.diff (732 B)
Attached To
Mode
D43023: linuxkpi: Fix `__ATTR_RO()` in <linux/sysfs.h>
Attached
Detach File
Event Timeline
Log In to Comment