Re: [PATCH 0/2]: Add sparc64 ftrace support.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <sam@...>, <acme@...>, <srostedt@...>, <linux-kernel@...>, <pq@...>, <proski@...>, <sandmann@...>, <rostedt@...>, <a.p.zijlstra@...>
Date: Wednesday, May 14, 2008 - 3:18 am

* David Miller <davem@davemloft.net> wrote:


yeah, same here:

  --------------------------------->
  static void
  ftrace_record_ip(unsigned long ip)
  {
          struct dyn_ftrace *node;
          unsigned long flags;
          unsigned long key;
          int resched;
          int atomic;
          int cpu;
  [...]
  <--------------------------------

for me the primary motivation isnt even merge conflicts in this case 
(getting conflicts on this level is rare), but readability and making it 
smooth to move the eye off the variable declarations.

IMO good code is obvious even without having to read the types, so the 
less visually intrusive the variable declarations section is, the 
better.

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2]: Add sparc64 ftrace support., David Miller, (Wed May 14, 1:06 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Steven Rostedt, (Wed May 14, 9:09 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Ingo Molnar, (Wed May 14, 2:30 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Sam Ravnborg, (Wed May 14, 2:51 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Ingo Molnar, (Wed May 14, 3:01 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., David Miller, (Wed May 14, 3:11 am)
[PATCH] ftrace: add have dynamic ftrace config for archs, Steven Rostedt, (Sat May 17, 12:01 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Ingo Molnar, (Wed May 14, 3:18 am)