[mmotm:master 141/230] drivers/i2c/busses/i2c-omap.c:486:19: warning: comparison of distinct pointer types lacks a cast

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

 



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@xxxxxx>
:::::: CC: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

---
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@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]