From: kernel test robot <lkp@intel.com>
To: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 7 May 2025 13:44:29 +0800 [thread overview]
Message-ID: <202505071305.kAjxIWyg-lkp@intel.com> (raw)
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
reply other threads:[~2025-05-07 5:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202505071305.kAjxIWyg-lkp@intel.com \
--to=lkp@intel.com \
--cc=jirislaby@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox