mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: nfs@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: include/linux/nfs/nfsfh.h declares a symbol
Date: Mon, 13 Oct 2003 11:21:38 +0200	[thread overview]
Message-ID: <20031013092138.GA16056@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <16266.11661.91185.167555@notabene.cse.unsw.edu.au>

On Mon, 13 October 2003 14:43:57 +1000, Neil Brown wrote:
> On Wednesday October 1, joern@wohnheim.fh-wedel.de wrote:
> > Neil, the function SVCFH_fmt uses a static variable to sprintf into.
> > Looks like this variable is declared locally for every .c file
> > including nfsfh.h, which is quite a few.
> > 
> > You could remove the static, but that would increase the stack usage,
> > which might be a problem too.  The buffer could be reduced to 64
> > chars, to reduce that problem.  kmalloc()ing it seems a bit expensive,
> > but might be an option, too.
> 
> Thanks.  I think it is best to simply make SVCFH_fmt a real function
> instead of inline, as below.
> 
> NeilBrown
> 
> =======================================
> Move SVCFH_fmt from being 'inline' to being 'extern'.
> 
> This way, the "static char buf" is defined only once instead
> of once per file.

Patch looks good.  Thanks!

Jörn

-- 
To recognize individual spam features you have to try to get into the
mind of the spammer, and frankly I want to spend as little time inside
the minds of spammers as possible.
-- Paul Graham

      reply	other threads:[~2003-10-13  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-01 12:18 Jörn Engel
2003-10-13  4:43 ` Neil Brown
2003-10-13  9:21   ` Jörn Engel [this message]

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=20031013092138.GA16056@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    --cc=nfs@lists.sourceforge.net \
    /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®