diff options
Diffstat (limited to 'sys/ofed/include/linux/sysfs.h')
-rw-r--r-- | sys/ofed/include/linux/sysfs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ofed/include/linux/sysfs.h b/sys/ofed/include/linux/sysfs.h index c60a2b9..cb1f7b2 100644 --- a/sys/ofed/include/linux/sysfs.h +++ b/sys/ofed/include/linux/sysfs.h @@ -105,6 +105,10 @@ sysctl_handle_attr(SYSCTL_HANDLER_ARGS) /* Trim trailing newline. */ buf[len] = '\0'; } + + /* Trim trailing newline. */ + len--; + ((char*)buf)[len] = '\0'; } /* Leave one trailing byte to append a newline. */ @@ -185,4 +189,6 @@ sysfs_remove_dir(struct kobject *kobj) sysctl_remove_oid(kobj->oidp, 1, 1); } +#define sysfs_attr_init(attr) do {} while(0) + #endif /* _LINUX_SYSFS_H_ */ |