Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cris: remove unused __dummy, CONST_ADDR and ADDR from bitops.h

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>

authored by

Jesper Nilsson and committed by
Linus Torvalds
747646a4 6d9f4c5c

-7
-7
include/asm-cris/bitops.h
··· 24 24 #include <linux/compiler.h> 25 25 26 26 /* 27 - * Some hacks to defeat gcc over-optimizations.. 28 - */ 29 - struct __dummy { unsigned long a[100]; }; 30 - #define ADDR (*(struct __dummy *) addr) 31 - #define CONST_ADDR (*(const struct __dummy *) addr) 32 - 33 - /* 34 27 * set_bit - Atomically set a bit in memory 35 28 * @nr: the bit to set 36 29 * @addr: the address to start counting from