All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/configfs-const 32/34] samples/configfs/configfs_sample.c:378:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **'
@ 2026-11-07 13:32 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-11-07 13:32 UTC (permalink / raw)
  To: Thomas Weißschuh ; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/configfs-const
head:   0e68ea5975531faee86ef390018b5d08916b17db
commit: 4762ca57ffcb5fe7b2fddd96882daba9fe3ce303 [32/34] const ct_attrs
config: x86_64-buildonly-randconfig-1001-20261107 (https://download.01.org/0day-ci/archive/20261107/202611072155.KSMUrRTI-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261107/202611072155.KSMUrRTI-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/202611072155.KSMUrRTI-lkp@intel.com/

All errors (new ones prefixed by >>):

   samples/configfs/configfs_sample.c:343:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     343 |         &symlink_child_attr_nlinks,
         |         ^
>> samples/configfs/configfs_sample.c:378:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **' [-Wincompatible-pointer-types]
     378 |         .ct_attrs       = symlink_child_attrs,
         |                           ^~~~~~~~~~~~~~~~~~~
   samples/configfs/configfs_sample.c:378:27: note: (near initialization for 'symlink_child_type.<anonymous>.ct_attrs')
   samples/configfs/configfs_sample.c:411:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     411 |         &symlink_children_attr_description,
         |         ^
   samples/configfs/configfs_sample.c:421:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **' [-Wincompatible-pointer-types]
     421 |         .ct_attrs       = symlink_children_attrs,
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   samples/configfs/configfs_sample.c:421:27: note: (near initialization for 'symlink_children_type.<anonymous>.ct_attrs')


vim +378 samples/configfs/configfs_sample.c

0a51cf54232ecdf Breno Leitao 2026-08-26  341  
0a51cf54232ecdf Breno Leitao 2026-08-26  342  static struct configfs_attribute *symlink_child_attrs[] = {
0a51cf54232ecdf Breno Leitao 2026-08-26 @343  	&symlink_child_attr_nlinks,
0a51cf54232ecdf Breno Leitao 2026-08-26  344  	NULL,
0a51cf54232ecdf Breno Leitao 2026-08-26  345  };
0a51cf54232ecdf Breno Leitao 2026-08-26  346  
0a51cf54232ecdf Breno Leitao 2026-08-26  347  /*
0a51cf54232ecdf Breno Leitao 2026-08-26  348   * The VFS holds the source item's directory locked across symlink(2) and
0a51cf54232ecdf Breno Leitao 2026-08-26  349   * unlink(2), so ->nlinks needs no lock of its own.
0a51cf54232ecdf Breno Leitao 2026-08-26  350   */
0a51cf54232ecdf Breno Leitao 2026-08-26  351  static int symlink_child_allow_link(struct config_item *src,
0a51cf54232ecdf Breno Leitao 2026-08-26  352  		struct config_item *target)
0a51cf54232ecdf Breno Leitao 2026-08-26  353  {
0a51cf54232ecdf Breno Leitao 2026-08-26  354  	to_symlink_child(src)->nlinks++;
0a51cf54232ecdf Breno Leitao 2026-08-26  355  
0a51cf54232ecdf Breno Leitao 2026-08-26  356  	return 0;
0a51cf54232ecdf Breno Leitao 2026-08-26  357  }
0a51cf54232ecdf Breno Leitao 2026-08-26  358  
0a51cf54232ecdf Breno Leitao 2026-08-26  359  static void symlink_child_drop_link(struct config_item *src,
0a51cf54232ecdf Breno Leitao 2026-08-26  360  		struct config_item *target)
0a51cf54232ecdf Breno Leitao 2026-08-26  361  {
0a51cf54232ecdf Breno Leitao 2026-08-26  362  	to_symlink_child(src)->nlinks--;
0a51cf54232ecdf Breno Leitao 2026-08-26  363  }
0a51cf54232ecdf Breno Leitao 2026-08-26  364  
0a51cf54232ecdf Breno Leitao 2026-08-26  365  static void symlink_child_release(struct config_item *item)
0a51cf54232ecdf Breno Leitao 2026-08-26  366  {
0a51cf54232ecdf Breno Leitao 2026-08-26  367  	kfree(to_symlink_child(item));
0a51cf54232ecdf Breno Leitao 2026-08-26  368  }
0a51cf54232ecdf Breno Leitao 2026-08-26  369  
0a51cf54232ecdf Breno Leitao 2026-08-26  370  static const struct configfs_item_operations symlink_child_item_ops = {
0a51cf54232ecdf Breno Leitao 2026-08-26  371  	.release	= symlink_child_release,
0a51cf54232ecdf Breno Leitao 2026-08-26  372  	.allow_link	= symlink_child_allow_link,
0a51cf54232ecdf Breno Leitao 2026-08-26  373  	.drop_link	= symlink_child_drop_link,
0a51cf54232ecdf Breno Leitao 2026-08-26  374  };
0a51cf54232ecdf Breno Leitao 2026-08-26  375  
0a51cf54232ecdf Breno Leitao 2026-08-26  376  static const struct config_item_type symlink_child_type = {
0a51cf54232ecdf Breno Leitao 2026-08-26  377  	.ct_item_ops	= &symlink_child_item_ops,
0a51cf54232ecdf Breno Leitao 2026-08-26 @378  	.ct_attrs	= symlink_child_attrs,
0a51cf54232ecdf Breno Leitao 2026-08-26  379  	.ct_owner	= THIS_MODULE,
0a51cf54232ecdf Breno Leitao 2026-08-26  380  };
0a51cf54232ecdf Breno Leitao 2026-08-26  381  

:::::: The code at line 378 was first introduced by commit
:::::: 0a51cf54232ecdfb8172ad7943e04e67e401538a samples/configfs: add a subsystem that accepts symlinks

:::::: TO: Breno Leitao <leitao@debian.org>
:::::: CC: Breno Leitao <leitao@debian.org>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [thomas-weissschuh:b4/configfs-const 32/34] samples/configfs/configfs_sample.c:378:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **'
@ 2026-11-07 20:49 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-11-07 20:49 UTC (permalink / raw)
  To: Thomas Weißschuh ; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/configfs-const
head:   0e68ea5975531faee86ef390018b5d08916b17db
commit: 4762ca57ffcb5fe7b2fddd96882daba9fe3ce303 [32/34] const ct_attrs
config: x86_64-randconfig-2103-20261107 (https://download.01.org/0day-ci/archive/20261107/202611072127.5ZXFcMim-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261107/202611072127.5ZXFcMim-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/202611072127.5ZXFcMim-lkp@intel.com/

All errors (new ones prefixed by >>):

   samples/configfs/configfs_sample.c:343:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     343 |         &symlink_child_attr_nlinks,
         |         ^
>> samples/configfs/configfs_sample.c:378:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **' [-Wincompatible-pointer-types]
     378 |         .ct_attrs       = symlink_child_attrs,
         |                           ^~~~~~~~~~~~~~~~~~~
   samples/configfs/configfs_sample.c:378:27: note: (near initialization for 'symlink_child_type.<anonymous>.ct_attrs')
   samples/configfs/configfs_sample.c:411:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     411 |         &symlink_children_attr_description,
         |         ^
   samples/configfs/configfs_sample.c:421:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **' [-Wincompatible-pointer-types]
     421 |         .ct_attrs       = symlink_children_attrs,
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   samples/configfs/configfs_sample.c:421:27: note: (near initialization for 'symlink_children_type.<anonymous>.ct_attrs')


vim +378 samples/configfs/configfs_sample.c

0a51cf54232ecdf Breno Leitao 2026-08-26  375  
0a51cf54232ecdf Breno Leitao 2026-08-26  376  static const struct config_item_type symlink_child_type = {
0a51cf54232ecdf Breno Leitao 2026-08-26  377  	.ct_item_ops	= &symlink_child_item_ops,
0a51cf54232ecdf Breno Leitao 2026-08-26 @378  	.ct_attrs	= symlink_child_attrs,
0a51cf54232ecdf Breno Leitao 2026-08-26  379  	.ct_owner	= THIS_MODULE,
0a51cf54232ecdf Breno Leitao 2026-08-26  380  };
0a51cf54232ecdf Breno Leitao 2026-08-26  381  

:::::: The code at line 378 was first introduced by commit
:::::: 0a51cf54232ecdfb8172ad7943e04e67e401538a samples/configfs: add a subsystem that accepts symlinks

:::::: TO: Breno Leitao <leitao@debian.org>
:::::: CC: Breno Leitao <leitao@debian.org>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-07 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-07 20:49 [thomas-weissschuh:b4/configfs-const 32/34] samples/configfs/configfs_sample.c:378:27: error: initialization of 'const struct configfs_attribute * const*' from incompatible pointer type 'struct configfs_attribute **' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-11-07 13:32 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.