Skip to content

Commit

Permalink
cris: remove unused __dummy, CONST_ADDR and ADDR from bitops.h
Browse files Browse the repository at this point in the history
This is very old code, it hasn't changed since 2001 and it is not used
anywhere.  Noticed by Clemens Koller.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jesper Nilsson authored and Linus Torvalds committed Feb 5, 2008
1 parent 6d9f4c5 commit 747646a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/asm-cris/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
#include <asm/atomic.h>
#include <linux/compiler.h>

/*
* 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)

/*
* set_bit - Atomically set a bit in memory
* @nr: the bit to set
Expand Down

0 comments on commit 747646a

Please sign in to comment.