- lzo1x-fix-lzo1x_worst_compress.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     LZO1X: fix lzo1x_worst_compress
has been removed from the -mm tree.  Its filename was
     lzo1x-fix-lzo1x_worst_compress.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: LZO1X: fix lzo1x_worst_compress
From: "Nitin Gupta" <nitingupta910@xxxxxxxxx>

This is a correction for a macro which gives worst case compressed data
size by LZO1X.

This patch was provided by the LZO author (Markus Oberhumer).

Signed-off-by: Nitin Gupta <nitingupta910@xxxxxxxxx>
Cc: "Markus F.X.J. Oberhumer" <markus@xxxxxxxxxxxxx>
Cc: "Richard Purdie" <rpurdie@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/lzo.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/lzo.h~lzo1x-fix-lzo1x_worst_compress include/linux/lzo.h
--- a/include/linux/lzo.h~lzo1x-fix-lzo1x_worst_compress
+++ a/include/linux/lzo.h
@@ -17,7 +17,7 @@
 #define LZO1X_MEM_COMPRESS	(16384 * sizeof(unsigned char *))
 #define LZO1X_1_MEM_COMPRESS	LZO1X_MEM_COMPRESS
 
-#define lzo1x_worst_compress(x) (x + (x / 64) + 16 + 3)
+#define lzo1x_worst_compress(x) ((x) + ((x) / 16) + 64 + 3)
 
 /* This requires 'workmem' of size LZO1X_1_MEM_COMPRESS */
 int lzo1x_1_compress(const unsigned char *src, size_t src_len,
_

Patches currently in -mm which might be from nitingupta910@xxxxxxxxx are

origin.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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux