+ kfifo-fix-inaccurate-comment.patch added to -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 added to the -mm tree.  Its filename is
     kfifo-fix-inaccurate-comment.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/kfifo-fix-inaccurate-comment.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/kfifo-fix-inaccurate-comment.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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

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

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

  Powered by Linux