Poptávka
Dobré ráno, Dovolil jsem si Vás kontaktovat, protože mám zájem ověřit možnost navázání spolupráce. Podporujeme firmy při získávání nových obchodních zákazníků. Můžeme si promluvit a poskytnout podrobnosti? V případě zájmu Vás bude kontaktovat náš anglicky mluvící zástupce. Pozdravy Lukas Varga ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[driver-core:debugfs_cleanup 6/7] drivers/platform/x86/amd/hsmp.c:474:9: error: call to undeclared function 'devm_device_add_groups'; ISO C99 and later do not support implicit function declarations
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup head: a260586a7ea6421f743308ef55f7ee80ef3488ac commit: a596671292945febec43acb2254628ce36afdafd [6/7] driver core: remove devm_device_add_groups() config: x86_64-buildonly-randconfig-006-20231120 (https://download.01.org/0day-ci/archive/20231120/202311201751.ehnobaow-...@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231120/202311201751.ehnobaow-...@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 | Closes: https://lore.kernel.org/oe-kbuild-all/202311201751.ehnobaow-...@intel.com/ All errors (new ones prefixed by >>): >> drivers/platform/x86/amd/hsmp.c:474:9: error: call to undeclared function >> 'devm_device_add_groups'; ISO C99 and later do not support implicit function >> declarations [-Wimplicit-function-declaration] return devm_device_add_groups(plat_dev.dev, hsmp_attr_grps); ^ drivers/platform/x86/amd/hsmp.c:474:9: note: did you mean 'devm_device_add_group'? include/linux/device.h:1205:18: note: 'devm_device_add_group' declared here int __must_check devm_device_add_group(struct device *dev, ^ 1 error generated. vim +/devm_device_add_groups +474 drivers/platform/x86/amd/hsmp.c 5150542b8ec5fb Suma Hegde 2023-10-10 432 5150542b8ec5fb Suma Hegde 2023-10-10 433 static int hsmp_create_sysfs_interface(void) 5150542b8ec5fb Suma Hegde 2023-10-10 434 { 5150542b8ec5fb Suma Hegde 2023-10-10 435 const struct attribute_group **hsmp_attr_grps; 5150542b8ec5fb Suma Hegde 2023-10-10 436 struct bin_attribute **hsmp_bin_attrs; 5150542b8ec5fb Suma Hegde 2023-10-10 437 struct attribute_group *attr_grp; 5150542b8ec5fb Suma Hegde 2023-10-10 438 int ret; 5150542b8ec5fb Suma Hegde 2023-10-10 439 u16 i; 5150542b8ec5fb Suma Hegde 2023-10-10 440 5150542b8ec5fb Suma Hegde 2023-10-10 441 /* String formatting is currently limited to u8 sockets */ 5150542b8ec5fb Suma Hegde 2023-10-10 442 if (WARN_ON(plat_dev.num_sockets > U8_MAX)) 5150542b8ec5fb Suma Hegde 2023-10-10 443 return -ERANGE; 5150542b8ec5fb Suma Hegde 2023-10-10 444 5150542b8ec5fb Suma Hegde 2023-10-10 445 hsmp_attr_grps = devm_kzalloc(plat_dev.dev, sizeof(struct attribute_group *) * 5150542b8ec5fb Suma Hegde 2023-10-10 446 (plat_dev.num_sockets + 1), GFP_KERNEL); 5150542b8ec5fb Suma Hegde 2023-10-10 447 if (!hsmp_attr_grps) 5150542b8ec5fb Suma Hegde 2023-10-10 448 return -ENOMEM; 5150542b8ec5fb Suma Hegde 2023-10-10 449 5150542b8ec5fb Suma Hegde 2023-10-10 450 /* Create a sysfs directory for each socket */ 5150542b8ec5fb Suma Hegde 2023-10-10 451 for (i = 0; i < plat_dev.num_sockets; i++) { 5150542b8ec5fb Suma Hegde 2023-10-10 452 attr_grp = devm_kzalloc(plat_dev.dev, sizeof(struct attribute_group), GFP_KERNEL); 5150542b8ec5fb Suma Hegde 2023-10-10 453 if (!attr_grp) 5150542b8ec5fb Suma Hegde 2023-10-10 454 return -ENOMEM; 5150542b8ec5fb Suma Hegde 2023-10-10 455 5150542b8ec5fb Suma Hegde 2023-10-10 456 snprintf(plat_dev.sock[i].name, HSMP_ATTR_GRP_NAME_SIZE, "socket%u", (u8)i); 5150542b8ec5fb Suma Hegde 2023-10-10 457 attr_grp->name = plat_dev.sock[i].name; 5150542b8ec5fb Suma Hegde 2023-10-10 458 5150542b8ec5fb Suma Hegde 2023-10-10 459 /* Null terminated list of attributes */ 5150542b8ec5fb Suma Hegde 2023-10-10 460 hsmp_bin_attrs = devm_kzalloc(plat_dev.dev, sizeof(struct bin_attribute *) * 5150542b8ec5fb Suma Hegde 2023-10-10 461 (NUM_HSMP_ATTRS + 1), GFP_KERNEL); 5150542b8ec5fb Suma Hegde 2023-10-10 462 if (!hsmp_bin_attrs) 5150542b8ec5fb Suma Hegde 2023-10-10 463 return -ENOMEM; 5150542b8ec5fb Suma Hegde 2023-10-10 464 5150542b8ec5fb Suma Hegde 2023-10-10 465 attr_grp->bin_attrs = hsmp_bin_attrs; 5150542b8ec5fb Suma Hegde 2023-10-10 466 attr_grp->is_bin_visible= hsmp_is_sock_attr_visible; 5150542b8ec5fb Suma Hegde 2023-10-10 467 hsmp_attr_grps[i] = attr_grp; 5150542b8ec5fb Suma Hegde 2023-10-10 468 5150542b8ec5fb Suma Hegde 2023-10-10 469 /* Now create the leaf nodes */ 5150542b8ec5fb Suma Hegde 2023-10-10 470 ret = hsmp_init_metric_tbl_bin_attr(hsmp_bin_attrs, i); 5150542b8ec5fb Suma Hegde 2023-10-10 471 if (
[driver-core:debugfs_cleanup] BUILD REGRESSION a260586a7ea6421f743308ef55f7ee80ef3488ac
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup branch HEAD: a260586a7ea6421f743308ef55f7ee80ef3488ac sysfs: do not create empty directories if no attributes are present Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202311050113.qcp9dss3-...@intel.com https://lore.kernel.org/oe-kbuild-all/202311201751.ehnobaow-...@intel.com Error/Warning: (recently discovered and may have been fixed) drivers/platform/x86/amd/hsmp.c:474:16: error: implicit declaration of function 'devm_device_add_groups'; did you mean 'devm_device_add_group'? [-Werror=implicit-function-declaration] drivers/platform/x86/amd/hsmp.c:474:9: error: call to undeclared function 'devm_device_add_groups'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Error/Warning ids grouped by kconfigs: gcc_recent_errors |-- i386-randconfig-141-20231121 | |-- drivers-net-ethernet-intel-igb-igb_ethtool.c-igb_loopback_cleanup()-error:uninitialized-symbol-phy_reg-. | |-- drivers-net-ethernet-intel-igb-igb_main.c-igb_clean_rx_irq()-error:skb-dereferencing-possible-ERR_PTR() | |-- drivers-net-ethernet-intel-igc-igc_main.c-igc_clean_rx_irq()-error:skb-dereferencing-possible-ERR_PTR() | |-- drivers-net-ethernet-intel-igc-igc_main.c-igc_xdp_run_prog()-warn:passing-zero-to-ERR_PTR | |-- drivers-net-ethernet-intel-ixgbe-ixgbe_main.c-ixgbe_clean_rx_irq()-error:skb-dereferencing-possible-ERR_PTR() | |-- drivers-net-ethernet-intel-ixgbe-ixgbe_main.c-ixgbe_request_msix_irqs()-warn:entry-vector-from-request_irq()-not-released-on-lines:. | |-- drivers-net-ethernet-intel-ixgbe-ixgbe_phy.c-ixgbe_get_sfp_init_sequence_offsets()-warn:missing-unwind-goto | |-- drivers-net-ethernet-intel-ixgbe-ixgbe_phy.c-ixgbe_identify_qsfp_module_generic()-warn:missing-unwind-goto | |-- drivers-net-ethernet-intel-ixgbe-ixgbe_phy.c-ixgbe_identify_sfp_module_generic()-warn:missing-unwind-goto | |-- drivers-net-ethernet-intel-ixgbe-ixgbe_x540.c-ixgbe_release_swfw_sync_semaphore()-warn:inconsistent-indenting | `-- drivers-net-ethernet-microchip-lan743x_main.c-lan743x_pci_init()-warn:missing-error-code-ret `-- x86_64-randconfig-005-20231120 `-- drivers-platform-x86-amd-hsmp.c:error:implicit-declaration-of-function-devm_device_add_groups clang_recent_errors |-- x86_64-allyesconfig | `-- drivers-platform-x86-amd-hsmp.c:error:call-to-undeclared-function-devm_device_add_groups-ISO-C99-and-later-do-not-support-implicit-function-declarations `-- x86_64-buildonly-randconfig-006-20231120 `-- drivers-platform-x86-amd-hsmp.c:error:call-to-undeclared-function-devm_device_add_groups-ISO-C99-and-later-do-not-support-implicit-function-declarations elapsed time: 1441m configs tested: 124 configs skipped: 2 tested configs: arc randconfig-001-20231120 gcc arc randconfig-002-20231120 gcc arm randconfig-001-20231120 clang arm randconfig-002-20231120 clang arm randconfig-003-20231120 clang arm randconfig-004-20231120 clang arm64 randconfig-001-20231120 clang arm64 randconfig-002-20231120 clang arm64 randconfig-003-20231120 clang arm64 randconfig-004-20231120 clang csky randconfig-001-20231120 gcc csky randconfig-002-20231120 gcc hexagon randconfig-001-20231120 clang hexagon randconfig-002-20231120 clang i386 allmodconfig clang i386 allnoconfig clang i386 allyesconfig clang i386 buildonly-randconfig-001-20231120 clang i386 buildonly-randconfig-002-20231120 clang i386 buildonly-randconfig-003-20231120 clang i386 buildonly-randconfig-004-20231120 clang i386 buildonly-randconfig-005-20231120 clang i386 buildonly-randconfig-006-20231120 clang i386defconfig gcc i386 randconfig-001-20231120 clang i386 randconfig-002-20231120 clang i386 randconfig-003-20231120 clang i386 randconfig-004-20231120 clang i386 randconfig-005-20231120 clang i386 randconfig-006-20231120 clang i386 randconfig-011-20231120 gcc i386 randconfig-012-20231120 gcc i386 randconfig-013-20231120 gcc i386 randconfig-014-20231120 gcc i386 randconfig-015-20231120 gcc i386 randconfig-016-20231120 gcc loongarchallmodconfig gcc loongarch allnoconfig gcc loongarchallyesconfig gcc loongarch