linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 19/141] drivers/md/bcache/btree.c:1816:16: sparse: incompatible types in comparison expression (different type sizes)
@ 2014-02-06  3:54 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-02-06  3:54 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linux Memory Management List, Andrew Morton, Johannes Weiner, kbuild-all

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   9b06d5ead85e27b8c1e2f8c514b73ebf7de8acd4
commit: e478d30d1922fa14c062d0c26e051e1f2a8a892e [19/141] drivers/md/bcache/btree.c: drop L-suffix when comparing ssize_t with 0
reproduce: make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/md/bcache/btree.c:1816:16: sparse: incompatible types in comparison expression (different type sizes)
   In file included from arch/x86/include/asm/percpu.h:44:0,
                    from arch/x86/include/asm/preempt.h:5,
                    from include/linux/preempt.h:18,
                    from include/linux/spinlock.h:50,
                    from include/linux/wait.h:8,
                    from include/linux/fs.h:6,
                    from include/linux/highmem.h:4,
                    from include/linux/bio.h:23,
                    from drivers/md/bcache/bcache.h:181,
                    from drivers/md/bcache/btree.c:23:
   drivers/md/bcache/btree.c: In function 'insert_u64s_remaining':
   include/linux/kernel.h:718:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
     (void) (&_max1 == &_max2);  \
                    ^
   drivers/md/bcache/btree.c:1816:9: note: in expansion of macro 'max'
     return max(ret, 0);
            ^

vim +1816 drivers/md/bcache/btree.c

  1800						      status);
  1801			return true;
  1802		} else
  1803			return false;
  1804	}
  1805	
  1806	static size_t insert_u64s_remaining(struct btree *b)
  1807	{
  1808		ssize_t ret = bch_btree_keys_u64s_remaining(&b->keys);
  1809	
  1810		/*
  1811		 * Might land in the middle of an existing extent and have to split it
  1812		 */
  1813		if (b->keys.ops->is_extents)
  1814			ret -= KEY_MAX_U64S;
  1815	
> 1816		return max(ret, 0);
  1817	}
  1818	
  1819	static bool bch_btree_insert_keys(struct btree *b, struct btree_op *op,
  1820					  struct keylist *insert_keys,
  1821					  struct bkey *replace_key)
  1822	{
  1823		bool ret = false;
  1824		int oldsize = bch_count_data(&b->keys);

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06  3:54 [mmotm:master 19/141] drivers/md/bcache/btree.c:1816:16: sparse: incompatible types in comparison expression (different type sizes) kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox