From: Konstantin Khlebnikov Date: Tue, 22 Mar 2011 23:34:45 +0000 (-0700) Subject: crc32: add missed brackets in macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d03e1617f089c0bcbc22b9d4739e04a0b43b14fa;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git crc32: add missed brackets in macro Add brackets around typecasted argument in crc32() macro. Signed-off-by: Konstantin Khlebnikov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/crc32.h b/include/linux/crc32.h index e20dd1f9b40a..391a259b2cc9 100644 --- a/include/linux/crc32.h +++ b/include/linux/crc32.h @@ -11,7 +11,7 @@ extern u32 crc32_le(u32 crc, unsigned char const *p, size_t len); extern u32 crc32_be(u32 crc, unsigned char const *p, size_t len); -#define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)data, length) +#define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)(data), length) /* * Helpers for hash table generation of ethernet nics: