All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/hwmon/pmbus/tda38740.c:58:42: error: invalid application of 'sizeof' to an incomplete type 'struct tda38740_data'
@ 2026-09-11  4:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-11  4:46 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: llvm@lists.linux.dev
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:   14 hours ago
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20260911/202609111238.o3pozuou-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260911/202609111238.o3pozuou-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/202609111238.o3pozuou-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/hwmon/pmbus/tda38740.c:58:42: error: invalid application of 'sizeof' to an incomplete type 'struct tda38740_data'
      58 |         data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
         |                                                 ^~~~~~~
   drivers/hwmon/pmbus/tda38740.c:56:9: note: forward declaration of 'struct tda38740_data'
      56 |         struct tda38740_data *data;
         |                ^
>> drivers/hwmon/pmbus/tda38740.c:62:14: error: incomplete definition of type 'struct tda38740_data'
      62 |         memcpy(&data->info, &tda38740_info, sizeof(tda38740_info));
         |                 ~~~~^
   include/linux/fortify-string.h:641:17: note: expanded from macro 'memcpy'
     641 |                 __struct_size(p), __struct_size(q),                     \
         |                               ^
   include/linux/compiler_types.h:525:56: note: expanded from macro '__struct_size'
     525 | #define __struct_size(p)        __builtin_dynamic_object_size(p, 0)
         |                                                               ^
   include/linux/fortify-string.h:578:27: note: expanded from macro '__fortify_memcpy_chk'
     578 |         const size_t __p_size = (p_size);                               \
         |                                  ^~~~~~
   drivers/hwmon/pmbus/tda38740.c:56:9: note: forward declaration of 'struct tda38740_data'
      56 |         struct tda38740_data *data;
         |                ^
>> drivers/hwmon/pmbus/tda38740.c:62:14: error: incomplete definition of type 'struct tda38740_data'
      62 |         memcpy(&data->info, &tda38740_info, sizeof(tda38740_info));
         |                 ~~~~^
   include/linux/fortify-string.h:642:17: note: expanded from macro 'memcpy'
     642 |                 __member_size(p), __member_size(q),                     \
         |                               ^
   include/linux/compiler_types.h:526:56: note: expanded from macro '__member_size'
     526 | #define __member_size(p)        __builtin_dynamic_object_size(p, 1)
         |                                                               ^
   include/linux/fortify-string.h:580:33: note: expanded from macro '__fortify_memcpy_chk'
     580 |         const size_t __p_size_field = (p_size_field);                   \
         |                                        ^~~~~~~~~~~~
   drivers/hwmon/pmbus/tda38740.c:56:9: note: forward declaration of 'struct tda38740_data'
      56 |         struct tda38740_data *data;
         |                ^
>> drivers/hwmon/pmbus/tda38740.c:62:14: error: incomplete definition of type 'struct tda38740_data'
      62 |         memcpy(&data->info, &tda38740_info, sizeof(tda38740_info));
         |                 ~~~~^
   include/linux/fortify-string.h:640:47: note: expanded from macro 'memcpy'
     640 | #define memcpy(p, q, s)  __fortify_memcpy_chk(p, q, s,                  \
         |                                               ^
   include/linux/fortify-string.h:595:20: note: expanded from macro '__fortify_memcpy_chk'
     595 |         __underlying_##op(p, q, __copy_size);                           \
         |                           ^
   drivers/hwmon/pmbus/tda38740.c:56:9: note: forward declaration of 'struct tda38740_data'
      56 |         struct tda38740_data *data;
         |                ^
   drivers/hwmon/pmbus/tda38740.c:64:37: error: incomplete definition of type 'struct tda38740_data'
      64 |         return pmbus_do_probe(client, &data->info);
         |                                        ~~~~^
   drivers/hwmon/pmbus/tda38740.c:56:9: note: forward declaration of 'struct tda38740_data'
      56 |         struct tda38740_data *data;
         |                ^
   5 errors generated.


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  4:46 UTC | newest]

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