diff options
author | George Spelvin <linux@horizon.com> | 2014-06-23 09:11:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-25 19:04:00 -0400 |
commit | d8f1c4778e957273c3b5b6e045d8d3af38484ca8 (patch) | |
tree | 734ab1bfada593301e315a18b01ad39e68a9730e /include/linux/crc32.h | |
parent | 4fa8e03b22df9b34f87906fa29de788bfa628bff (diff) |
lib: crc32: Add some additional __pure annotations
In case they help the compiler.
Signed-off-by: George Spelvin <linux@horizon.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/crc32.h')
-rw-r--r-- | include/linux/crc32.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/crc32.h b/include/linux/crc32.h index edf34e876e40..9e8a032c1788 100644 --- a/include/linux/crc32.h +++ b/include/linux/crc32.h | |||
@@ -8,8 +8,8 @@ | |||
8 | #include <linux/types.h> | 8 | #include <linux/types.h> |
9 | #include <linux/bitrev.h> | 9 | #include <linux/bitrev.h> |
10 | 10 | ||
11 | extern u32 crc32_le(u32 crc, unsigned char const *p, size_t len); | 11 | u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len); |
12 | extern u32 crc32_be(u32 crc, unsigned char const *p, size_t len); | 12 | u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len); |
13 | 13 | ||
14 | /** | 14 | /** |
15 | * crc32_le_combine - Combine two crc32 check values into one. For two | 15 | * crc32_le_combine - Combine two crc32 check values into one. For two |
@@ -36,7 +36,7 @@ static inline u32 crc32_le_combine(u32 crc1, u32 crc2, size_t len2) | |||
36 | return crc32_le_shift(crc1, len2) ^ crc2; | 36 | return crc32_le_shift(crc1, len2) ^ crc2; |
37 | } | 37 | } |
38 | 38 | ||
39 | extern u32 __crc32c_le(u32 crc, unsigned char const *p, size_t len); | 39 | u32 __pure __crc32c_le(u32 crc, unsigned char const *p, size_t len); |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * __crc32c_le_combine - Combine two crc32c check values into one. For two | 42 | * __crc32c_le_combine - Combine two crc32c check values into one. For two |