* + lib-crc32c-fix-unused-variables-warnings.patch added to -mm tree
@ 2012-07-25 21:07 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2012-07-25 21:07 UTC (permalink / raw)
To: mm-commits; +Cc: trbecker, djwong, rpearson
The patch titled
Subject: lib/crc32.c: fix unused variables warnings
has been added to the -mm tree. Its filename is
lib-crc32c-fix-unused-variables-warnings.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Thiago Rafael Becker <trbecker@trbecker.org>
Subject: lib/crc32.c: fix unused variables warnings
Variables t4, t5, t6 and t7 are only used when CRC_LE_BITS != 32. Fix the
following compilation warnings:
lib/crc32.c: In function 'crc32_body':
lib/crc32.c:77:55: warning: unused variable 't7'
lib/crc32.c:77:41: warning: unused variable 't6'
lib/crc32.c:77:27: warning: unused variable 't5'
lib/crc32.c:77:13: warning: unused variable 't4'
Signed-off-by: Thiago Rafael Becker <trbecker@trbecker.org>
Cc: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: Bob Pearson <rpearson@systemfabricworks.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/crc32.c | 2 ++
1 file changed, 2 insertions(+)
diff -puN lib/crc32.c~lib-crc32c-fix-unused-variables-warnings lib/crc32.c
--- a/lib/crc32.c~lib-crc32c-fix-unused-variables-warnings
+++ a/lib/crc32.c
@@ -74,7 +74,9 @@ crc32_body(u32 crc, unsigned char const
size_t i;
# endif
const u32 *t0=tab[0], *t1=tab[1], *t2=tab[2], *t3=tab[3];
+# if CRC_LE_BITS != 32
const u32 *t4 = tab[4], *t5 = tab[5], *t6 = tab[6], *t7 = tab[7];
+# endif
u32 q;
/* Align it */
_
Subject: Subject: lib/crc32.c: fix unused variables warnings
Patches currently in -mm which might be from trbecker@trbecker.org are
lib-crc32c-fix-unused-variables-warnings.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-25 21:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 21:07 + lib-crc32c-fix-unused-variables-warnings.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.