summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <khlebnikov@openvz.org>2011-03-23 00:34:45 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 01:44:15 +0100
commitd03e1617f089c0bcbc22b9d4739e04a0b43b14fa (patch)
tree4bfaa35d6311bb5d8621282c68dd6991d2df6c32 /include
parentcheckpatch: warn about memset with swapped arguments (diff)
downloadlinux-d03e1617f089c0bcbc22b9d4739e04a0b43b14fa.tar.xz
linux-d03e1617f089c0bcbc22b9d4739e04a0b43b14fa.zip
crc32: add missed brackets in macro
Add brackets around typecasted argument in crc32() macro. Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/crc32.h2
1 files changed, 1 insertions, 1 deletions
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: