From 3388db77127d8a665869b9d3da491df121935210 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Wed, 20 Mar 2013 11:58:25 -0400 Subject: [PATCH] --- yaml --- r: 362825 b: refs/heads/master c: 8184004ed7a0bc9538f5e825615c29fc52466bab h: refs/heads/master i: 362823: 0ea70bd09a6b77259a23f694f7a82ceaf9db148b v: v3 --- [refs] | 2 +- trunk/kernel/rtmutex-tester.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index b97fb63c421f..44b86ba2618d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bfaf4af8abf92b883c04d137a0c18245cc9d51a2 +refs/heads/master: 8184004ed7a0bc9538f5e825615c29fc52466bab diff --git a/trunk/kernel/rtmutex-tester.c b/trunk/kernel/rtmutex-tester.c index 7890b10084a7..1d96dd0d93c1 100644 --- a/trunk/kernel/rtmutex-tester.c +++ b/trunk/kernel/rtmutex-tester.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "rtmutex.h" @@ -366,8 +367,8 @@ static ssize_t sysfs_test_status(struct device *dev, struct device_attribute *at return curr - buf; } -static DEVICE_ATTR(status, 0600, sysfs_test_status, NULL); -static DEVICE_ATTR(command, 0600, NULL, sysfs_test_command); +static DEVICE_ATTR(status, S_IRUSR, sysfs_test_status, NULL); +static DEVICE_ATTR(command, S_IWUSR, NULL, sysfs_test_command); static struct bus_type rttest_subsys = { .name = "rttest",