lkml.org 
[lkml]   [2008]   [Jun]   [23]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDavid Brownell <>
SubjectRe: [patch 2.6.26-rc7] <linux/bcd.h> space reduction
DateMon, 23 Jun 2008 00:15:49 -0700
On Sunday 22 June 2008, Adrian Bunk wrote:
> On Sun, Jun 22, 2008 at 07:54:36PM -0700, David Brownell wrote:
> > This updates <linux/bcd.h> to define the key routines as static
> > constant functions, which the macros will then call.
> > 
> > 	... Typical per-driver savings top 200 bytes. ...
> 
> The patch breaks the compilation:

Needs to #include <linux/types.h> then; "u8" isn't always known.
Or maybe just spell it out "unsigned char".


>	...
> 
> Additionally, I'd suggest to make them out-of-line functions 
> instead of shipping multiple copies in different object files.

That was one of the options.  I thought I'd start with something
simpler, and see what folk thought.

Where would that be ... lib/bcd.c, always linked?  And if it goes
that way I'd prefer bcd2bin() and bin2bcd(), not these names.  A
small impetus to have LESS SOURCE CODE SHOUTING AT ME.

- Dave


\
 
 \ /
  Last update: 2008-06-23 09:19    [from the cache]
©2003-2008