错误的原因是: cannot create duplicate filename '/class/spi_master/spi1' 创建了两个相同的控制器,创建了两次控制器1 解决方案:找到设置为 控制器1 的, .bus_num ,将它设为0 struct s3c2410_spi_info spi0_info={ .num_cs=0xffff, .bus_num=0, //1 , //把1改成0 。 bus_num的值就是几号控...
Hardware name: ProLiant DL320s G1 sysfs: cannot create duplicate filename '/devices/virtual/block/pool!vms!slc5-ui-proto@20101104' Modules linked in: zfs(P+) zcommon(P) zunicode(P) znvpair(P) zavl(P) splat spl zlib_deflate bonding loop radeon ttm drm_kms_helper drm i2c_algo_bit ...
---[ cut here ]--- WARNING: at /tmp/buildd/linux-2.6-2.6.32/debian/build/source_amd64_none/fs/sysfs/dir.c:491 sysfs_add_one+0xcc/0xe4() Hardware name: ProLiant DL320s G1 sysfs: cannot create duplicate filename '/devices/virtual/block/pool!vms!slc5-ui-proto@20101104' Modules ...
Multiple warnings with sysfs creating duplicate nodes on ppc64le (also might be occuring with s390x). Typical appearance in dmesg is [ 10.839513] sysfs: cannot create duplicate filename '/bus/nvmem/devices/module-vpd' [ 10.843750] CPU: 29 PID: 1089 Comm: systemd-udevd Not tainted 5.10.9-...
*/ int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) { int ret; ret = __sysfs_add_one(acxt, sd); if (ret == -EEXIST) { char *path = kzalloc(PATH_MAX, GFP_KERNEL); WARN(1, KERN_WARNING "sysfs: cannot create duplicate filename '%s'\n", (path ==...
Raw [ 171.741561] WARNING: CPU: 84 PID: 1834 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x64/0x80 [ 171.741562] sysfs: cannot create duplicate filename '/class/mdio_bus/ixgbe-c101' Environment Red Hat Enterprise Linux 7.7 - 7.9 multiple Intel network adapter cards in one system ...
sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:07.0/0000:03:00.0/infiniband/qib0/ports/1/linkcontrol' I looked at the Linux kernel git history and see a bunch of sysfs changes arrived with release 5.14.0, so I assume the issue is related. Could anybody here kindly...
error = sysfs_create_link(&dev->parent->kobj, &dev->kobj, class_name); kfree(class_name); if (error) goto out_device; } return 0; out_device: if (dev->parent && device_is_not_partition(dev)) sysfs_remove_link(&dev->kobj, "device");out_busid: if (dev->kobj.parent != &...
(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) { int ret; ret = __sysfs_add_one(acxt, sd); if (ret == -EEXIST) { //同名数据项已经存在则输出告警信息 char *path = kzalloc(PATH_MAX, GFP_KERNEL); WARN(1, KERN_WARNING "sysfs: cannot create duplicate filename '%s'\n"...