All of lore.kernel.org
 help / color / mirror / Atom feed
* [t-kristo-pm:usi-5.16-rfc-v2-bpf 28/30] drivers/i2c/i2c-core-of.c:82:24: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast
@ 2021-11-26 17:10 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-26 17:10 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: kbuild-all, linux-kernel, Tero Kristo, Furquan Shaikh,
	Justin TerAvest, Guenter Roeck

tree:   https://github.com/t-kristo/linux-pm usi-5.16-rfc-v2-bpf
head:   241207b4769fca049dfcc4dbde0bda92e4f67027
commit: f668c459b7bfe36f2317924a5511622cd737e346 [28/30] CHROMIUM: i2c: Add device property for probing
config: arc-buildonly-randconfig-r001-20211125 (https://download.01.org/0day-ci/archive/20211127/202111270150.0WP6EN8x-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/t-kristo/linux-pm/commit/f668c459b7bfe36f2317924a5511622cd737e346
        git remote add t-kristo-pm https://github.com/t-kristo/linux-pm
        git fetch --no-tags t-kristo-pm usi-5.16-rfc-v2-bpf
        git checkout f668c459b7bfe36f2317924a5511622cd737e346
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/i2c/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/i2c/i2c-core-of.c: In function 'of_i2c_register_device':
   drivers/i2c/i2c-core-of.c:82:26: error: implicit declaration of function 'i2c_new_probed_device'; did you mean 'i2c_new_scanned_device'? [-Werror=implicit-function-declaration]
      82 |                 client = i2c_new_probed_device(adap, &info, addrs, NULL);
         |                          ^~~~~~~~~~~~~~~~~~~~~
         |                          i2c_new_scanned_device
>> drivers/i2c/i2c-core-of.c:82:24: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      82 |                 client = i2c_new_probed_device(adap, &info, addrs, NULL);
         |                        ^
   cc1: some warnings being treated as errors


vim +82 drivers/i2c/i2c-core-of.c

    64	
    65	static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
    66							 struct device_node *node)
    67	{
    68		struct i2c_client *client;
    69		struct i2c_board_info info;
    70		int ret;
    71	
    72		dev_dbg(&adap->dev, "of_i2c: register %pOF\n", node);
    73	
    74		ret = of_i2c_get_board_info(&adap->dev, node, &info);
    75		if (ret)
    76			return ERR_PTR(ret);
    77	
    78		/* Allow device property to enable probing before init */
    79		if (of_get_property(node, "linux,probed", NULL)) {
    80			unsigned short addrs[] = { info.addr, I2C_CLIENT_END };
    81	
  > 82			client = i2c_new_probed_device(adap, &info, addrs, NULL);
    83		} else {
    84			client = i2c_new_client_device(adap, &info);
    85		}
    86	
    87		if (IS_ERR(client))
    88			dev_err(&adap->dev, "of_i2c: Failure registering %pOF\n", node);
    89	
    90		return client;
    91	}
    92	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [t-kristo-pm:usi-5.16-rfc-v2-bpf 28/30] drivers/i2c/i2c-core-of.c:82:24: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast
@ 2021-11-26 17:10 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-26 17:10 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3123 bytes --]

tree:   https://github.com/t-kristo/linux-pm usi-5.16-rfc-v2-bpf
head:   241207b4769fca049dfcc4dbde0bda92e4f67027
commit: f668c459b7bfe36f2317924a5511622cd737e346 [28/30] CHROMIUM: i2c: Add device property for probing
config: arc-buildonly-randconfig-r001-20211125 (https://download.01.org/0day-ci/archive/20211127/202111270150.0WP6EN8x-lkp(a)intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/t-kristo/linux-pm/commit/f668c459b7bfe36f2317924a5511622cd737e346
        git remote add t-kristo-pm https://github.com/t-kristo/linux-pm
        git fetch --no-tags t-kristo-pm usi-5.16-rfc-v2-bpf
        git checkout f668c459b7bfe36f2317924a5511622cd737e346
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/i2c/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/i2c/i2c-core-of.c: In function 'of_i2c_register_device':
   drivers/i2c/i2c-core-of.c:82:26: error: implicit declaration of function 'i2c_new_probed_device'; did you mean 'i2c_new_scanned_device'? [-Werror=implicit-function-declaration]
      82 |                 client = i2c_new_probed_device(adap, &info, addrs, NULL);
         |                          ^~~~~~~~~~~~~~~~~~~~~
         |                          i2c_new_scanned_device
>> drivers/i2c/i2c-core-of.c:82:24: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      82 |                 client = i2c_new_probed_device(adap, &info, addrs, NULL);
         |                        ^
   cc1: some warnings being treated as errors


vim +82 drivers/i2c/i2c-core-of.c

    64	
    65	static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
    66							 struct device_node *node)
    67	{
    68		struct i2c_client *client;
    69		struct i2c_board_info info;
    70		int ret;
    71	
    72		dev_dbg(&adap->dev, "of_i2c: register %pOF\n", node);
    73	
    74		ret = of_i2c_get_board_info(&adap->dev, node, &info);
    75		if (ret)
    76			return ERR_PTR(ret);
    77	
    78		/* Allow device property to enable probing before init */
    79		if (of_get_property(node, "linux,probed", NULL)) {
    80			unsigned short addrs[] = { info.addr, I2C_CLIENT_END };
    81	
  > 82			client = i2c_new_probed_device(adap, &info, addrs, NULL);
    83		} else {
    84			client = i2c_new_client_device(adap, &info);
    85		}
    86	
    87		if (IS_ERR(client))
    88			dev_err(&adap->dev, "of_i2c: Failure registering %pOF\n", node);
    89	
    90		return client;
    91	}
    92	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-26 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 17:10 [t-kristo-pm:usi-5.16-rfc-v2-bpf 28/30] drivers/i2c/i2c-core-of.c:82:24: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast kernel test robot
2021-11-26 17:10 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.