From: Jesper Nilsson <jesper.nilsson@axis.com>
To: Clemens Koller <clemens.koller@anagramm.de>
Cc: LKML List <linux-kernel@vger.kernel.org>, jesper.nilsson@axis.com
Subject: Re: What's this __dummy in asm-cris/bitops.h?
Date: Thu, 20 Dec 2007 10:56:56 +0100 [thread overview]
Message-ID: <20071220095656.GF10888@axis.com> (raw)
In-Reply-To: <47697761.1090702@anagramm.de>
On Wed, Dec 19, 2007 at 08:56:17PM +0100, Clemens Koller wrote:
> Hello,
>
> while looking for some assembly out of order / optimization stuff
> for something else, I found some strange code in
> .../linux/include/asm-cris/bitops.h:22
>
> /*
> * Some hacks to defeat gcc over-optimizations..
> */
> struct __dummy { unsigned long a[100]; };
> #define ADDR (*(struct __dummy *) addr)
> #define CONST_ADDR (*(const struct __dummy *) addr)
>
> CONST_ADDR is never used in the kernel.
> Maybe some -cris people could have a look.
Hmm... This is very old code, it hasn't changed since 2001 and
it is not used anywhere.
I'll send a patch to remove it, thanks for noticing!
> Thanks,
> Clemens Koller
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@axis.com
prev parent reply other threads:[~2007-12-20 9:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 19:56 What's this __dummy in asm-cris/bitops.h? Clemens Koller
2007-12-20 9:56 ` Jesper Nilsson [this message]
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=20071220095656.GF10888@axis.com \
--to=jesper.nilsson@axis.com \
--cc=clemens.koller@anagramm.de \
--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 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.