lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071220095656.GF10888@axis.com>
Date:	Thu, 20 Dec 2007 10:56:56 +0100
From:	Jesper Nilsson <jesper.nilsson@...s.com>
To:	Clemens Koller <clemens.koller@...gramm.de>
Cc:	LKML List <linux-kernel@...r.kernel.org>, jesper.nilsson@...s.com
Subject: Re: 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@...s.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ