LKML Archive on
help / color / mirror / Atom feed
From: Andrew Morton <>
To: Michael Buesch <>
Subject: Re: [PATCH 2.6.6] bootmem.c cleanup
Date: Fri, 14 May 2004 13:33:53 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Michael Buesch <> 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.

  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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [PATCH 2.6.6] bootmem.c cleanup' \

* 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).