Re: [PATCH v5 3/4] i2c: i801: add support of Host Notify

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

 



Hi Benjamin,

[auto build test WARNING on input/next]
[also build test WARNING on v4.5 next-20160315]
[cannot apply to wsa/i2c/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Benjamin-Tissoires/i2c-smbus-add-support-for-HOST-NOTIFY/20160315-230340
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: x86_64-randconfig-x006-201611 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/i2c/busses/i2c-i801.c: In function 'i801_host_notify_isr':
>> drivers/i2c/busses/i2c-i801.c:533:31: warning: passing argument 1 of 'i2c_handle_smbus_host_notify' from incompatible pointer type [-Wincompatible-pointer-types]
     i2c_handle_smbus_host_notify(priv->host_notify, addr, data);
                                  ^
   In file included from drivers/i2c/busses/i2c-i801.c:90:0:
   include/linux/i2c-smbus.h:87:19: note: expected 'struct i2c_adapter *' but argument is of type 'struct smbus_host_notify *'
    static inline int i2c_handle_smbus_host_notify(struct i2c_adapter *adapter,
                      ^

vim +/i2c_handle_smbus_host_notify +533 drivers/i2c/busses/i2c-i801.c

   517			/* Write next byte, except for IRQ after last byte */
   518			outb_p(priv->data[++priv->count], SMBBLKDAT(priv));
   519		}
   520	
   521		/* Clear BYTE_DONE to continue with next byte */
   522		outb_p(SMBHSTSTS_BYTE_DONE, SMBHSTSTS(priv));
   523	}
   524	
   525	static irqreturn_t i801_host_notify_isr(struct i801_priv *priv)
   526	{
   527		unsigned short addr;
   528		unsigned int data;
   529	
   530		addr = inb_p(SMBNTFDADD(priv)) >> 1;
   531		data = inw_p(SMBNTFDDAT(priv));
   532	
 > 533		i2c_handle_smbus_host_notify(priv->host_notify, addr, data);
   534	
   535		/* clear Host Notify bit and return */
   536		outb_p(SMBSLVSTS_HST_NTFY_STS, SMBSLVSTS(priv));
   537		return IRQ_HANDLED;
   538	}
   539	
   540	/*
   541	 * There are three kinds of interrupts:

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux