[merged] kfifo-fix-inaccurate-comment.patch removed from -mm tree

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

 



The patch titled
     Subject: lib/kfifo.c: fix inaccurate comment
has been removed from the -mm tree.  Its filename was
     kfifo-fix-inaccurate-comment.patch

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

------------------------------------------------------
From: Martin Kelly <mkelly@xxxxxxxx>
Subject: lib/kfifo.c: fix inaccurate comment

The comment in __kfifo_alloc says we round down, but we actually round
up, so correct it.

Link: http://lkml.kernel.org/r/20180326181823.5536-1-mkelly@xxxxxxxx
Signed-off-by: Martin Kelly <mkelly@xxxxxxxx>
Cc: Stefani Seibold <stefani@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/kfifo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/kfifo.c~kfifo-fix-inaccurate-comment lib/kfifo.c
--- a/lib/kfifo.c~kfifo-fix-inaccurate-comment
+++ a/lib/kfifo.c
@@ -39,7 +39,7 @@ int __kfifo_alloc(struct __kfifo *fifo,
 		size_t esize, gfp_t gfp_mask)
 {
 	/*
-	 * round down to the next power of 2, since our 'let the indices
+	 * round up to the next power of 2, since our 'let the indices
 	 * wrap' technique works only in this case.
 	 */
 	size = roundup_pow_of_two(size);
_

Patches currently in -mm which might be from mkelly@xxxxxxxx are


--
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 Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux