The patch titled lzo: add some missing casts has been removed from the -mm tree. Its filename was lzo-add-some-missing-casts.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: lzo: add some missing casts From: Richard Purdie <richard@xxxxxxxxxxxxxx> Add some casts to the LZO compression algorithm after they were removed during cleanup and shouldn't have been. Signed-off-by: Richard Purdie <rpurdie@xxxxxxxxxxxxxx> Cc: Edward Shishkin <edward@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/lzo/lzo1x_compress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN lib/lzo/lzo1x_compress.c~lzo-add-some-missing-casts lib/lzo/lzo1x_compress.c --- a/lib/lzo/lzo1x_compress.c~lzo-add-some-missing-casts +++ a/lib/lzo/lzo1x_compress.c @@ -32,13 +32,13 @@ _lzo1x_1_do_compress(const unsigned char ip += 4; for (;;) { - dindex = ((0x21 * DX3(ip, 5, 5, 6)) >> 5) & D_MASK; + dindex = ((size_t)(0x21 * DX3(ip, 5, 5, 6)) >> 5) & D_MASK; m_pos = dict[dindex]; if (m_pos < in) goto literal; - if (ip == m_pos || (ip - m_pos) > M4_MAX_OFFSET) + if (ip == m_pos || ((size_t)(ip - m_pos) > M4_MAX_OFFSET)) goto literal; m_off = ip - m_pos; @@ -51,7 +51,7 @@ _lzo1x_1_do_compress(const unsigned char if (m_pos < in) goto literal; - if (ip == m_pos || (ip - m_pos) > M4_MAX_OFFSET) + if (ip == m_pos || ((size_t)(ip - m_pos) > M4_MAX_OFFSET)) goto literal; m_off = ip - m_pos; _ Patches currently in -mm which might be from richard@xxxxxxxxxxxxxx are origin.patch git-mtd.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html