Re: [rtmutex-tester] WARNING: at drivers/base/core.c:569device_create_file()

From: Greg Kroah-Hartman
Date: Fri Mar 29 2013 - 12:34:32 EST


On Fri, Mar 29, 2013 at 10:17:04AM +0800, Fengguang Wu wrote:
> Hi Kay,
>
> I got the below warning and the first "bad" commit is
>
> commit 8f46baaa7ec6cd0851794020b31958e64679dd26
> Author: Felipe Balbi <balbi@xxxxxx>
> Date: Wed Feb 20 10:31:42 2013 +0200
>
> base: core: WARN() about bogus permissions on device attributes
>
> Whenever a struct device_attribute is registered
> with mismatched permissions - read permission without
> a show routine or write permission without store
> routine - we will issue a big warning so we catch
> those early enough.
>
> Signed-off-by: Felipe Balbi <balbi@xxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

That's just a "warning" patch, I'll fix this up properly
(kernel/rtmutex-tester.c has 0600 as the mode for a read-only attribute
as well as a write-only attribute.)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/