Re: [PATCH 1/1] ring-buffer: buffer record on/off switch

From
Andy Whitcroft <hidden>
Date
2008-11-12 14:11:29
Also in
lkml
Reply to
Ingo Molnar, 2008-11-11
On Tue, Nov 11, 2008 at 10:08:31PM +0100, Ingo Molnar wrote:
* Steven Rostedt [off-list ref] wrote:
quoted
On Tue, 11 Nov 2008, Andrew Morton wrote:
quoted
On Tue, 11 Nov 2008 15:06:02 -0500
Steven Rostedt [off-list ref] wrote:
quoted
+static struct file_operations rb_simple_fops = {
should be const...

Probably it isn't worth fixing.  Someone(tm) should do period sweeps -
10% of our file_operationses aren't const.
Thanks, I never really thought about it.

I'll add to my todo list to send out a patch that cleans all of this 
up. I think I'm guilty at doing this in more than one place.
Perhaps checkpatch.pl could remind us about it? a new file_operations 
struct definition should be const in 99.9% of the cases.
Added to my TODO list.

-apw
Thread (9 messages) 9 messages, 5 authors, last reply 2008-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help