All of lore.kernel.org
 help / color / mirror / Atom feed
* + bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.patch added to -mm tree
@ 2014-02-06 20:38 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2014-02-06 20:38 UTC (permalink / raw)
  To: mm-commits, neilb, kmo, geert, akpm

Subject: + bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.patch added to -mm tree
To: akpm@linux-foundation.org,geert@linux-m68k.org,kmo@daterainc.com,neilb@suse.de
From: akpm@linux-foundation.org
Date: Thu, 06 Feb 2014 12:38:30 -0800


The patch titled
     Subject: bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix
has been added to the -mm tree.  Its filename is
     bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.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: Andrew Morton <akpm@linux-foundation.org>
Subject: bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix

fix sparse warning, make `ret' size_t

Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kent Overstreet <kmo@daterainc.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/md/bcache/btree.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/md/bcache/btree.c~bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix drivers/md/bcache/btree.c
--- a/drivers/md/bcache/btree.c~bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix
+++ a/drivers/md/bcache/btree.c
@@ -1805,7 +1805,7 @@ static bool btree_insert_key(struct btre
 
 static size_t insert_u64s_remaining(struct btree *b)
 {
-	ssize_t ret = bch_btree_keys_u64s_remaining(&b->keys);
+	size_t ret = bch_btree_keys_u64s_remaining(&b->keys);
 
 	/*
 	 * Might land in the middle of an existing extent and have to split it
@@ -1813,7 +1813,7 @@ static size_t insert_u64s_remaining(stru
 	if (b->keys.ops->is_extents)
 		ret -= KEY_MAX_U64S;
 
-	return max(ret, 0);
+	return max_t(size_t, ret, 0);
 }
 
 static bool bch_btree_insert_keys(struct btree *b, struct btree_op *op,
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

arch-alpha-kernel-systblss-remove-debug-check.patch
i-need-old-gcc.patch
mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon.patch
numa-mem-hotplug-initialize-numa_kernel_nodes-in-numa_clear_kernel_node_hotplug.patch
bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.patch
xen-properly-account-for-_page_numa-during-xen-pte-translations-fix.patch
ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly-fix.patch
input-route-kbd-leds-through-the-generic-leds-layer.patch
mm.patch
mm-hugetlb-improve-page-fault-scalability-fix.patch
mm-vmstat-fix-up-zone-state-accounting-fix.patch
kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix.patch
kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-checkpatch-fixes.patch
linux-next.patch
debugging-keep-track-of-page-owners.patch
journal_add_journal_head-debug.patch
kernel-forkc-export-kernel_thread-to-modules.patch
mutex-subsystem-synchro-test-module.patch
slab-leaks3-default-y.patch
put_bh-debug.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-06 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 20:38 + bcache-drop-l-suffix-when-comparing-ssize_t-with-0-fix.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.