Re: [PATCH 2/7] CAN: Add PF_CAN core module

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Urs Thuermann
Date: Thursday, November 15, 2007 - 4:36 am

Stephen Hemminger <shemminger@linux-foundation.org> writes:


No additional parenthesis is needed here.  ?: is the lowest precedence
operator above assignment and ,.  Also, DBG_VAR is no variable name.
It's a macro that expands to a variable name like can_debug, raw_debug
or bcm_debug.


These variables are not exported with EXPORT_SYMBOL, so there should
be no name conflict.  They cannot be made static because they are used
in af_can.c and proc.c.  Nevertheless we can prefix them with can_ if
you still think it's necessary.



Why?  For this simple function a page buffer is enough space and the
seq_file API would require more effort.  IMHO, seq_files offer
advantages if the proc file shows some sequence of data generated in
an iteration through some loop (see below).



I haven't looked into writable proc files yet.  Will do so.



This is were I would prefer sequence files.  However, the seq file
interface doesn't allow me to pass additional info like the `data'
argument.  This means I would have to write separate functions
instead.


These typedef were considered OK in previous discussions on the list.


Fixed.


Hm, isn't it common to use braces for single statements if they span
more than one line?

Thanks for your review.

urs
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Wed Nov 14, 5:13 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Stephen Hemminger, (Wed Nov 14, 2:38 pm)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Oliver Hartkopp, (Thu Nov 15, 12:40 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Joe Perches, (Thu Nov 15, 1:04 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Thu Nov 15, 4:36 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Thu Nov 15, 4:51 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, David Miller, (Thu Nov 15, 5:05 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Sam Ravnborg, (Thu Nov 15, 8:09 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Sam Ravnborg, (Thu Nov 15, 8:11 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Fri Nov 16, 7:33 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, David Miller, (Fri Nov 16, 4:42 pm)