From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/hwmon/pmbus/tda38740.c:58:49: error: invalid application of 'sizeof' to incomplete type 'struct tda38740_data'
Date: Fri, 11 Sep 2026 11:39:08 +0800 [thread overview]
Message-ID: <202609111110.KRe8lrPe-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Colin-Huang/dt-bindings-hwmon-pmbus-Add-Infineon-tda38740-and-tda38725/20260910-203550, commit: 624603abe6d524d514b8131b2532f3515e6b7b2e"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Colin Huang <u8813345@gmail.com>
CC: 0day robot <lkp@intel.com>
tree: https://github.com/intel-lab-lkp/linux/commits/Colin-Huang/dt-bindings-hwmon-pmbus-Add-Infineon-tda38740-and-tda38725/20260910-203550
head: 624603abe6d524d514b8131b2532f3515e6b7b2e
commit: 624603abe6d524d514b8131b2532f3515e6b7b2e hwmon: (pmbus/tda38740) Add driver for Infineon TDA38740/TDA38725
date: 13 hours ago
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20260911/202609111110.KRe8lrPe-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260911/202609111110.KRe8lrPe-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/r/202609111110.KRe8lrPe-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/hwmon/pmbus/tda38740.c: In function 'tda38740_probe':
>> drivers/hwmon/pmbus/tda38740.c:58:49: error: invalid application of 'sizeof' to incomplete type 'struct tda38740_data'
58 | data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
| ^
>> drivers/hwmon/pmbus/tda38740.c:62:21: error: invalid use of undefined type 'struct tda38740_data'
62 | memcpy(&data->info, &tda38740_info, sizeof(tda38740_info));
| ^~
drivers/hwmon/pmbus/tda38740.c:64:44: error: invalid use of undefined type 'struct tda38740_data'
64 | return pmbus_do_probe(client, &data->info);
| ^~
vim +58 drivers/hwmon/pmbus/tda38740.c
624603abe6d524d Colin Huang 2026-09-10 53
624603abe6d524d Colin Huang 2026-09-10 54 static int tda38740_probe(struct i2c_client *client)
624603abe6d524d Colin Huang 2026-09-10 55 {
624603abe6d524d Colin Huang 2026-09-10 56 struct tda38740_data *data;
624603abe6d524d Colin Huang 2026-09-10 57
624603abe6d524d Colin Huang 2026-09-10 @58 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
624603abe6d524d Colin Huang 2026-09-10 59 if (!data)
624603abe6d524d Colin Huang 2026-09-10 60 return -ENOMEM;
624603abe6d524d Colin Huang 2026-09-10 61
624603abe6d524d Colin Huang 2026-09-10 @62 memcpy(&data->info, &tda38740_info, sizeof(tda38740_info));
624603abe6d524d Colin Huang 2026-09-10 63
624603abe6d524d Colin Huang 2026-09-10 64 return pmbus_do_probe(client, &data->info);
624603abe6d524d Colin Huang 2026-09-10 65 }
624603abe6d524d Colin Huang 2026-09-10 66
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-11 3:40 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=202609111110.KRe8lrPe-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@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