Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jirislaby:devel 7/87] drivers/misc/ti_fpc202.c:287:20: error: call to undeclared function 'of_node_to_fwnode'; ISO C99 and later do not support implicit function declarations
@ 2025-05-07  5:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-07  5:44 UTC (permalink / raw)
  To: Jiri Slaby (SUSE); +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head:   6c308d0b04c8c17ab39fcf6d4ed9a9033efc363f
commit: 53bb244074f4a81f664c6c88ec64284e80bb279f [7/87] irqdomain: Drop of_node_to_fwnode()
config: arm-randconfig-003-20250424 (https://download.01.org/0day-ci/archive/20250507/202505071305.kAjxIWyg-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071305.kAjxIWyg-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505071305.kAjxIWyg-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/misc/ti_fpc202.c:287:20: error: call to undeclared function 'of_node_to_fwnode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     287 |         desc.bus_handle = of_node_to_fwnode(i2c_handle);
         |                           ^
   drivers/misc/ti_fpc202.c:287:20: note: did you mean 'of_node_to_nid'?
   include/linux/of.h:935:19: note: 'of_node_to_nid' declared here
     935 | static inline int of_node_to_nid(struct device_node *device)
         |                   ^
>> drivers/misc/ti_fpc202.c:287:18: error: incompatible integer to pointer conversion assigning to 'struct fwnode_handle *' from 'int' [-Wint-conversion]
     287 |         desc.bus_handle = of_node_to_fwnode(i2c_handle);
         |                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +/of_node_to_fwnode +287 drivers/misc/ti_fpc202.c

1e5c9b1efa1c37 Romain Gantois 2025-03-06  277  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  278  static int fpc202_probe_port(struct fpc202_priv *priv, struct device_node *i2c_handle, int port_id)
1e5c9b1efa1c37 Romain Gantois 2025-03-06  279  {
1e5c9b1efa1c37 Romain Gantois 2025-03-06  280  	u16 aliases[FPC202_ALIASES_PER_PORT] = { };
1e5c9b1efa1c37 Romain Gantois 2025-03-06  281  	struct device *dev = &priv->client->dev;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  282  	struct i2c_atr_adap_desc desc = { };
1e5c9b1efa1c37 Romain Gantois 2025-03-06  283  	int ret = 0;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  284  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  285  	desc.chan_id = port_id;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  286  	desc.parent = dev;
1e5c9b1efa1c37 Romain Gantois 2025-03-06 @287  	desc.bus_handle = of_node_to_fwnode(i2c_handle);
1e5c9b1efa1c37 Romain Gantois 2025-03-06  288  	desc.num_aliases = FPC202_ALIASES_PER_PORT;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  289  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  290  	fpc202_fill_alias_table(priv->client, aliases, port_id);
1e5c9b1efa1c37 Romain Gantois 2025-03-06  291  	desc.aliases = aliases;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  292  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  293  	ret = i2c_atr_add_adapter(priv->atr, &desc);
1e5c9b1efa1c37 Romain Gantois 2025-03-06  294  	if (ret)
1e5c9b1efa1c37 Romain Gantois 2025-03-06  295  		return ret;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  296  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  297  	set_bit(port_id, priv->probed_ports);
1e5c9b1efa1c37 Romain Gantois 2025-03-06  298  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  299  	ret = fpc202_write_dev_addr(priv, port_id, 0, FPC202_REG_DEV_INVALID);
1e5c9b1efa1c37 Romain Gantois 2025-03-06  300  	if (ret)
1e5c9b1efa1c37 Romain Gantois 2025-03-06  301  		return ret;
1e5c9b1efa1c37 Romain Gantois 2025-03-06  302  
1e5c9b1efa1c37 Romain Gantois 2025-03-06  303  	return fpc202_write_dev_addr(priv, port_id, 1, FPC202_REG_DEV_INVALID);
1e5c9b1efa1c37 Romain Gantois 2025-03-06  304  }
1e5c9b1efa1c37 Romain Gantois 2025-03-06  305  

:::::: The code at line 287 was first introduced by commit
:::::: 1e5c9b1efa1c37ef3fc5c67b1c6e7025ec7b2330 misc: add FPC202 dual port controller driver

:::::: TO: Romain Gantois <romain.gantois@bootlin.com>
:::::: CC: Wolfram Sang <wsa+renesas@sang-engineering.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-07  5:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07  5:44 [jirislaby:devel 7/87] drivers/misc/ti_fpc202.c:287:20: error: call to undeclared function 'of_node_to_fwnode'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox