* [PATCH] -mm: constify libcrc32c table
@ 2006-05-23 18:54 Andreas Mohr
0 siblings, 0 replies; only message in thread
From: Andreas Mohr @ 2006-05-23 18:54 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Clay Haapala
Hello all,
constify a medium-large CRC code table.
Signed-off-by: Andreas Mohr <andi@lisas.de>
diff -urN linux-2.6.17-rc4-mm3.orig/lib/libcrc32c.c linux-2.6.17-rc4-mm3.my/lib/libcrc32c.c
--- linux-2.6.17-rc4-mm3.orig/lib/libcrc32c.c 2006-05-23 17:46:35.000000000 +0200
+++ linux-2.6.17-rc4-mm3/lib/libcrc32c.c 2006-05-22 20:17:16.000000000 +0200
@@ -88,7 +88,7 @@
* reflect output bytes = true
*/
-static u32 crc32c_table[256] = {
+static const u32 crc32c_table[256] = {
0x00000000L, 0xF26B8303L, 0xE13B70F7L, 0x1350F3F4L,
0xC79A971FL, 0x35F1141CL, 0x26A1E7E8L, 0xD4CA64EBL,
0x8AD958CFL, 0x78B2DBCCL, 0x6BE22838L, 0x9989AB3BL,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-23 18:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-23 18:54 [PATCH] -mm: constify libcrc32c table Andreas Mohr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).