Re: [PATCH 03/10] i2c-mux: move the slave side adapter management to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter,

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.4-rc8 next-20160104]
[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/Peter-Rosin/i2c-mux-cleanup-and-locking-update/20160104-231355
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux i2c/for-next
config: x86_64-randconfig-i0-201601 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/media/dvb-frontends/m88ds3103.c: In function 'm88ds3103_probe':
   drivers/media/dvb-frontends/m88ds3103.c:1470:41: warning: passing argument 1 
of 'i2c_add_mux_adapter' from incompatible pointer type 
[-Wincompatible-pointer-types]
 dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/m88ds3103_priv.h:24:0,
from drivers/media/dvb-frontends/m88ds3103.c:17:
   include/linux/i2c-mux.h:58:5: note: expected 'struct i2c_mux_core *' but 
argument is of type 'struct i2c_adapter *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/m88ds3103.c:1471:13: warning: passing argument 3 
of 'i2c_add_mux_adapter' makes integer from pointer without a cast 
[-Wint-conversion]
dev, 0, 0, 0, m88ds3103_select,
^
   In file included from drivers/media/dvb-frontends/m88ds3103_priv.h:24:0,
from drivers/media/dvb-frontends/m88ds3103.c:17:
   include/linux/i2c-mux.h:58:5: note: expected 'u32 {aka unsigned int}' but 
argument is of type 'struct m88ds3103_dev *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/m88ds3103.c:1470:21: error: too many arguments 
to function 'i2c_add_mux_adapter'
 dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/m88ds3103_priv.h:24:0,
from drivers/media/dvb-frontends/m88ds3103.c:17:
   include/linux/i2c-mux.h:58:5: note: declared here
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
>> drivers/media/dvb-frontends/m88ds3103.c:1470:19: warning: assignment makes 
>> pointer from integer without a cast [-Wint-conversion]
 dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, >dev,
  ^
   drivers/media/dvb-frontends/m88ds3103.c: In function 'm88ds3103_remove':
>> drivers/media/dvb-frontends/m88ds3103.c:1505:2: error: implicit declaration 
>> of function 'i2c_del_mux_adapter' [-Werror=implicit-function-declaration]
 i2c_del_mux_adapter(dev->i2c_adapter);
 ^
   cc1: some warnings being treated as errors
--
   drivers/media/dvb-frontends/rtl2830.c: In function 'rtl2830_probe':
   drivers/media/dvb-frontends/rtl2830.c:868:37: warning: passing argument 1 of 
'i2c_add_mux_adapter' from incompatible pointer type 
[-Wincompatible-pointer-types]
 dev->adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/rtl2830_priv.h:24:0,
from drivers/media/dvb-frontends/rtl2830.c:18:
   include/linux/i2c-mux.h:58:5: note: expected 'struct i2c_mux_core *' but 
argument is of type 'struct i2c_adapter *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/rtl2830.c:869:4: warning: passing argument 3 of 
'i2c_add_mux_adapter' makes integer from pointer without a cast 
[-Wint-conversion]
   client, 0, 0, 0, rtl2830_select, NULL);
   ^
   In file included from drivers/media/dvb-frontends/rtl2830_priv.h:24:0,
from drivers/media/dvb-frontends/rtl2830.c:18:
   include/linux/i2c-mux.h:58:5: note: expected 'u32 {aka unsigned int}' but 
argument is of type 'struct i2c_client *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/rtl2830.c:868:17: error: too many arguments to 
function 'i2c_add_mux_adapter'
 dev->adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/rtl2830_priv.h:24:0,
from drivers/media/dvb-frontends/rtl2830.c:18:
   include/linux/i2c-mux.h:58:5: note: declared here
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
>> drivers/media/dvb-frontends/rtl2830.c:868:15: warning: assignment makes 
>> pointer from integer without a cast [-Wint-conversion]
 dev->adapter = i2c_add_mux_adapter(client->adapter, >dev,
  ^
   drivers/media/dvb-frontends/rtl2830.c: In function 'rtl2830_remove':
>> drivers/media/dvb-frontends/rtl2830.c:903:2: error: implicit declaration of 
>> function 'i2c_del_mux_adapter' [-Werror=implicit-function-declaration]
 

Re: [PATCH 03/10] i2c-mux: move the slave side adapter management to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter,

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.4-rc8 next-20160104]
[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/Peter-Rosin/i2c-mux-cleanup-and-locking-update/20160104-231355
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux i2c/for-next
config: x86_64-randconfig-i0-201601 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/media/dvb-frontends/m88ds3103.c: In function 'm88ds3103_probe':
   drivers/media/dvb-frontends/m88ds3103.c:1470:41: warning: passing argument 1 
of 'i2c_add_mux_adapter' from incompatible pointer type 
[-Wincompatible-pointer-types]
 dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/m88ds3103_priv.h:24:0,
from drivers/media/dvb-frontends/m88ds3103.c:17:
   include/linux/i2c-mux.h:58:5: note: expected 'struct i2c_mux_core *' but 
argument is of type 'struct i2c_adapter *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/m88ds3103.c:1471:13: warning: passing argument 3 
of 'i2c_add_mux_adapter' makes integer from pointer without a cast 
[-Wint-conversion]
dev, 0, 0, 0, m88ds3103_select,
^
   In file included from drivers/media/dvb-frontends/m88ds3103_priv.h:24:0,
from drivers/media/dvb-frontends/m88ds3103.c:17:
   include/linux/i2c-mux.h:58:5: note: expected 'u32 {aka unsigned int}' but 
argument is of type 'struct m88ds3103_dev *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/m88ds3103.c:1470:21: error: too many arguments 
to function 'i2c_add_mux_adapter'
 dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/m88ds3103_priv.h:24:0,
from drivers/media/dvb-frontends/m88ds3103.c:17:
   include/linux/i2c-mux.h:58:5: note: declared here
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
>> drivers/media/dvb-frontends/m88ds3103.c:1470:19: warning: assignment makes 
>> pointer from integer without a cast [-Wint-conversion]
 dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, >dev,
  ^
   drivers/media/dvb-frontends/m88ds3103.c: In function 'm88ds3103_remove':
>> drivers/media/dvb-frontends/m88ds3103.c:1505:2: error: implicit declaration 
>> of function 'i2c_del_mux_adapter' [-Werror=implicit-function-declaration]
 i2c_del_mux_adapter(dev->i2c_adapter);
 ^
   cc1: some warnings being treated as errors
--
   drivers/media/dvb-frontends/rtl2830.c: In function 'rtl2830_probe':
   drivers/media/dvb-frontends/rtl2830.c:868:37: warning: passing argument 1 of 
'i2c_add_mux_adapter' from incompatible pointer type 
[-Wincompatible-pointer-types]
 dev->adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/rtl2830_priv.h:24:0,
from drivers/media/dvb-frontends/rtl2830.c:18:
   include/linux/i2c-mux.h:58:5: note: expected 'struct i2c_mux_core *' but 
argument is of type 'struct i2c_adapter *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/rtl2830.c:869:4: warning: passing argument 3 of 
'i2c_add_mux_adapter' makes integer from pointer without a cast 
[-Wint-conversion]
   client, 0, 0, 0, rtl2830_select, NULL);
   ^
   In file included from drivers/media/dvb-frontends/rtl2830_priv.h:24:0,
from drivers/media/dvb-frontends/rtl2830.c:18:
   include/linux/i2c-mux.h:58:5: note: expected 'u32 {aka unsigned int}' but 
argument is of type 'struct i2c_client *'
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
   drivers/media/dvb-frontends/rtl2830.c:868:17: error: too many arguments to 
function 'i2c_add_mux_adapter'
 dev->adapter = i2c_add_mux_adapter(client->adapter, >dev,
^
   In file included from drivers/media/dvb-frontends/rtl2830_priv.h:24:0,
from drivers/media/dvb-frontends/rtl2830.c:18:
   include/linux/i2c-mux.h:58:5: note: declared here
int i2c_add_mux_adapter(struct i2c_mux_core *muxc,
^
>> drivers/media/dvb-frontends/rtl2830.c:868:15: warning: assignment makes 
>> pointer from integer without a cast [-Wint-conversion]
 dev->adapter = i2c_add_mux_adapter(client->adapter, >dev,
  ^
   drivers/media/dvb-frontends/rtl2830.c: In function 'rtl2830_remove':
>> drivers/media/dvb-frontends/rtl2830.c:903:2: error: implicit declaration of 
>> function 'i2c_del_mux_adapter' [-Werror=implicit-function-declaration]