LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Michael Buesch <mbuesch@freenet.de>
Cc: akpm@digeo.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.6] bootmem.c cleanup
Date: Fri, 14 May 2004 13:33:53 -0700 [thread overview]
Message-ID: <20040514133353.236acf3a.akpm@osdl.org> (raw)
In-Reply-To: <200405142205.27214.mbuesch@freenet.de>
Michael Buesch <mbuesch@freenet.de> wrote:
>
> - if (!test_and_clear_bit(i, bdata->node_bootmem_map))
> - BUG();
> + BUG_ON(!test_and_clear_bit(i, bdata->node_bootmem_map));
Please don't put expressions whihc actually change state inside BUG_ON().
Someone may decide to make BUG_ON() a no-op to save space.
I'm not aware of anyone actually trying that, but it's a good objective.
next prev parent reply other threads:[~2004-05-14 20:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-14 20:05 Michael Buesch
2004-05-14 20:33 ` Andrew Morton [this message]
2004-05-14 20:43 ` Michael Buesch
2004-05-17 0:43 ` H. Peter Anvin
2004-05-18 19:50 ` Matt Mackall
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=20040514133353.236acf3a.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbuesch@freenet.de \
--subject='Re: [PATCH 2.6.6] bootmem.c cleanup' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).