lkml.org 
[lkml]   [2007]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What's this __dummy in asm-cris/bitops.h?
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


\
 
 \ /
  Last update: 2007-12-20 10:59    [W:0.035 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site