From: Matthew Wilcox <willy@debian.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: torvalds@osdl.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] const struct file_operations *
Date: Tue, 24 Jun 2003 15:14:28 +0100 [thread overview]
Message-ID: <20030624141428.GD451@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <1056463558.29264.499.camel@passion.cambridge.redhat.com>
On Tue, Jun 24, 2003 at 03:05:58PM +0100, David Woodhouse wrote:
> For configurations with kernel .rodata in ROM instead of RAM, it's
> actually slightly advantageous to have these structures marked as const
> too -- but that can be done later and isn't mandatory.
And indeed may not be advantageous. ROM accesses are typically slower
than RAM accesses (or were, back when I cared about these kinds of
things). Doing this kind of thing is good though -- the more ways we
can get compilers to bitch about badly written code, the better.
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
next prev parent reply other threads:[~2003-06-24 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-24 14:05 [PATCH] const struct file_operations * David Woodhouse
2003-06-24 14:14 ` Matthew Wilcox [this message]
2003-06-24 14:16 ` David Woodhouse
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=20030624141428.GD451@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=dwmw2@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.