0 day kernel build service
 help / color / mirror / Atom feed
* drivers/hwmon/pmbus/tda38740.c:58:49: error: invalid application of 'sizeof' to incomplete type 'struct tda38740_data'
@ 2026-09-11  3:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-11  3:39 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: 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

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

only message in thread, other threads:[~2026-09-11  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11  3:39 drivers/hwmon/pmbus/tda38740.c:58:49: error: invalid application of 'sizeof' to incomplete type 'struct tda38740_data' 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