]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
stating: ccree: remove double definition of MSB64
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 7 May 2017 13:36:01 +0000 (16:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:42:00 +0000 (07:42 +0200)
The MSB64 is defined in two include file. One copy
is sufficient.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/cc_lli_defs.h

index 8c978b14a1f1b7fcbdb8e607e8c5771251ec5a67..d9758e643fa9fad996a0e834317302560c515e79 100644 (file)
@@ -28,8 +28,6 @@
 
 #define CC_MAX_MLLI_ENTRY_SIZE 0x10000
 
-#define MSB64(_addr) (sizeof(_addr) == 4 ? 0 : ((_addr) >> 32) & U16_MAX)
-
 #define LLI_SET_ADDR(lli_p, addr) \
                BITFIELD_SET(((u32 *)(lli_p))[LLI_WORD0_OFFSET], LLI_LADDR_BIT_OFFSET, LLI_LADDR_BIT_SIZE, (addr & U32_MAX)); \
                BITFIELD_SET(((u32 *)(lli_p))[LLI_WORD1_OFFSET], LLI_HADDR_BIT_OFFSET, LLI_HADDR_BIT_SIZE, MSB64(addr));