public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* checkpatch warning of struct indentation
@ 2009-01-12 17:57 Steven Rostedt
  2009-01-12 18:09 ` Frédéric Weisbecker
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Steven Rostedt @ 2009-01-12 17:57 UTC (permalink / raw)
  To: Andy Whitcroft; +Cc: LKML, Ingo Molnar, Andrew Morton


Hi,

I'm now seeing the following warnings from checkpatch:

#325: FILE: kernel/trace/trace_stat.c:21:
+	void 			*stat;

ERROR: "foo 	*bar" should be "foo *bar"
#334: FILE: kernel/trace/trace_stat.c:27:
+	struct tracer_stat 	*ts;

ERROR: "foo		*bar" should be "foo	*bar"
#337: FILE: kernel/trace/trace_stat.c:30:
+	struct dentry		*file;

This is for:

struct tracer_stat_session {
        struct list_head        session_list;
        struct tracer_stat      *ts;
        struct list_head        stat_list;
        struct mutex            stat_mutex;
        struct dentry           *file;
};

Which looks a hell of a lot better than:

struct tracer_stat_session {
        struct list_head session_list;
        struct tracer_stat *ts;
        struct list_head stat_list;
        struct mutex stat_mutex;
        struct dentry *file;
};

We probably do not want to warn on such things.

-- Steve


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-01-13 15:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 17:57 checkpatch warning of struct indentation Steven Rostedt
2009-01-12 18:09 ` Frédéric Weisbecker
2009-01-12 18:35   ` Steven Rostedt
2009-01-12 19:34     ` Frederic Weisbecker
2009-01-13 14:45     ` Johannes Weiner
2009-01-13 14:54       ` Steven Rostedt
2009-01-13 15:23         ` Johannes Weiner
2009-01-12 18:20 ` Ingo Molnar
2009-01-12 18:51 ` Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox