From: Adrian Bunk <bunk@kernel.org>
To: David Brownell <david-b@pacbell.net>
Cc: lkml <linux-kernel@vger.kernel.org>, rtc-linux@googlegroups.com
Subject: Re: [patch 2.6.26-rc7] <linux/bcd.h> space reduction
Date: Wed, 25 Jun 2008 00:54:01 +0300 [thread overview]
Message-ID: <20080624215400.GA18252@cs181140183.pp.htv.fi> (raw)
In-Reply-To: <200806230015.49973.david-b@pacbell.net>
On Mon, Jun 23, 2008 at 12:15:49AM -0700, David Brownell wrote:
> 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?
Sounds good.
> 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.
Sounds good, but start with SHOUTING COMPATIBILITY #DEFINES FOR THE
EXISTING USERS and either clean them up later or let me do the cleanup.
> - Dave
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2008-06-24 21:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 2:54 David Brownell
2008-06-23 6:50 ` Adrian Bunk
2008-06-23 7:15 ` David Brownell
2008-06-24 21:54 ` Adrian Bunk [this message]
2008-06-30 0:41 ` David Brownell
2008-06-30 18:20 ` Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080624215400.GA18252@cs181140183.pp.htv.fi \
--to=bunk@kernel.org \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®