* [mmotm:master 141/230] drivers/i2c/busses/i2c-omap.c:486:19: warning: comparison of distinct pointer types lacks a cast
@ 2014-06-20 2:45 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-06-20 2:45 UTC (permalink / raw)
To: Michal Nazarewicz
Cc: Linux Memory Management List, Andrew Morton, Hagen Paul Pfeifer,
Johannes Weiner, kbuild-all
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: df25ba7db0775d87018e2cd92f26b9b087093840
commit: 99c369839f847d2cc4b8e759a9c57c925592efa2 [141/230] include/linux/kernel.h: rewrite min3, max3 and clamp using min and max
config: make ARCH=arm omap2plus_defconfig
All warnings:
drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_resize_fifo':
>> drivers/i2c/busses/i2c-omap.c:486:19: warning: comparison of distinct pointer types lacks a cast [enabled by default]
vim +486 drivers/i2c/busses/i2c-omap.c
010d442c4a Komal Shah 2006-08-13 470 }
010d442c4a Komal Shah 2006-08-13 471
dd74548dde Felipe Balbi 2012-09-12 472 static void omap_i2c_resize_fifo(struct omap_i2c_dev *dev, u8 size, bool is_rx)
dd74548dde Felipe Balbi 2012-09-12 473 {
dd74548dde Felipe Balbi 2012-09-12 474 u16 buf;
dd74548dde Felipe Balbi 2012-09-12 475
dd74548dde Felipe Balbi 2012-09-12 476 if (dev->flags & OMAP_I2C_FLAG_NO_FIFO)
dd74548dde Felipe Balbi 2012-09-12 477 return;
dd74548dde Felipe Balbi 2012-09-12 478
dd74548dde Felipe Balbi 2012-09-12 479 /*
dd74548dde Felipe Balbi 2012-09-12 480 * Set up notification threshold based on message size. We're doing
dd74548dde Felipe Balbi 2012-09-12 481 * this to try and avoid draining feature as much as possible. Whenever
dd74548dde Felipe Balbi 2012-09-12 482 * we have big messages to transfer (bigger than our total fifo size)
dd74548dde Felipe Balbi 2012-09-12 483 * then we might use draining feature to transfer the remaining bytes.
dd74548dde Felipe Balbi 2012-09-12 484 */
dd74548dde Felipe Balbi 2012-09-12 485
dd74548dde Felipe Balbi 2012-09-12 @486 dev->threshold = clamp(size, (u8) 1, dev->fifo_size);
dd74548dde Felipe Balbi 2012-09-12 487
dd74548dde Felipe Balbi 2012-09-12 488 buf = omap_i2c_read_reg(dev, OMAP_I2C_BUF_REG);
dd74548dde Felipe Balbi 2012-09-12 489
dd74548dde Felipe Balbi 2012-09-12 490 if (is_rx) {
dd74548dde Felipe Balbi 2012-09-12 491 /* Clear RX Threshold */
dd74548dde Felipe Balbi 2012-09-12 492 buf &= ~(0x3f << 8);
dd74548dde Felipe Balbi 2012-09-12 493 buf |= ((dev->threshold - 1) << 8) | OMAP_I2C_BUF_RXFIF_CLR;
dd74548dde Felipe Balbi 2012-09-12 494 } else {
:::::: The code at line 486 was first introduced by commit
:::::: dd74548ddece4b9d68e5528287a272fa552c81d0 i2c: omap: resize fifos before each message
:::::: TO: Felipe Balbi <balbi@ti.com>
:::::: CC: Wolfram Sang <w.sang@pengutronix.de>
---
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-06-20 2:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 2:45 [mmotm:master 141/230] drivers/i2c/busses/i2c-omap.c:486:19: warning: comparison of distinct pointer types lacks a cast 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