public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Werner Almesberger <werner@almesberger.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] make buffer head argument of buffer_##name "const"
Date: Tue, 26 Oct 2004 00:23:42 -0700	[thread overview]
Message-ID: <20041026002342.5fb15ab3.akpm@osdl.org> (raw)
In-Reply-To: <20041026033241.B7983@almesberger.net>

Werner Almesberger <werner@almesberger.net> wrote:
>
> --- linux-2.6.9/include/linux/buffer_head.h.orig	Tue Oct 26 02:57:54 2004
>  +++ linux-2.6.9/include/linux/buffer_head.h	Tue Oct 26 02:21:04 2004
>  @@ -76,7 +76,7 @@
>   {									\
>   	clear_bit(BH_##bit, &(bh)->b_state);				\
>   }									\
>  -static inline int buffer_##name(struct buffer_head *bh)			\
>  +static inline int buffer_##name(const struct buffer_head *bh)		\
>   {									\
>   	return test_bit(BH_##bit, &(bh)->b_state);			\
>   }

OK, but why?  Does it generate better code or something?

  reply	other threads:[~2004-10-26  7:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26  6:32 [PATCH] make buffer head argument of buffer_##name "const" Werner Almesberger
2004-10-26  7:23 ` Andrew Morton [this message]
2004-10-26  7:38   ` Werner Almesberger

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=20041026002342.5fb15ab3.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=werner@almesberger.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