From: Nick.Holloway@pyrites.org.uk (Nick Holloway)
To: linux-kernel@vger.kernel.org
Subject: Re: Newbie ask for help: cramfs port to isofs
Date: 20 Feb 2001 09:54:43 -0000 [thread overview]
Message-ID: <96tet3$3fn$1@alfie.demon.co.uk> (raw)
In-Reply-To: <877l2lyk3j.fsf@debian.org> <200102200935.KAA29865@sunrise.pg.gda.pl>
ankry@pg.gda.pl (Andrzej Krzysztofowicz) writes:
> "zhaoway wrote:"
> > - int len;
> > - int map;
> > + int len = 0;
>
> This will be the most probably rejected.
> Zero initializers are intentionally removed from the code to decrease
> the kernel image size.
A little knowledge is a dangerous thing.
The zero initializers can be removed from _static_ variables (those not
within function scope), where the initialization to zero is guarenteed.
In the case above, the variable being initialized is an automatic variable
(allocated on the stack), and so needs to be initialized.
--
`O O' | Nick.Holloway@pyrites.org.uk
// ^ \\ | http://www.pyrites.org.uk/
next prev parent reply other threads:[~2001-02-20 9:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-20 6:03 Newbie ask for help: cramfs port to isofs zhaoway
2001-02-20 9:35 ` Andrzej Krzysztofowicz
2001-02-20 9:54 ` Nick Holloway [this message]
2001-02-20 12:30 ` Alan Cox
2001-02-22 20:46 ` Pavel Machek
2001-02-21 3:48 ` H. Peter Anvin
2001-02-22 20:51 ` Pavel Machek
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='96tet3$3fn$1@alfie.demon.co.uk' \
--to=nick.holloway@pyrites.org.uk \
--cc=linux-kernel@vger.kernel.org \
/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