Subject: linux-next: runtime warning after merge of the driver-core tree

From: Stephen Rothwell <[email-masked]>
Date: Tue, 7 Mar 2023 13:43:13 +1100

Hi all,

After merging the driver-core tree, today's linux-next qemu boot
(powerpc pseries_le_defconfig) produced this boot time warning:

HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
sysfs: cannot create duplicate filename '//block'
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.3.0-rc1-01530-ge44d8b957584 #2
Hardware name: IBM pSeries (emulated by qemu) POWER9 (raw) 0x4e1202 0xf000005 of:SLOF,HEAD hv:linux,kvm pSeries
Call Trace:
[c000000003503990] [c000000000e1c9bc] dump_stack_lvl+0x70/0xa0 (unreliable)
[c0000000035039c0] [c0000000005a1728] sysfs_warn_dup+0x88/0xc0
[c000000003503a40] [c0000000005a194c] sysfs_create_dir_ns+0x12c/0x170
[c000000003503a90] [c000000000e26b54] kobject_add_internal+0x124/0x3c0
[c000000003503b10] [c000000000e26e60] kobject_add+0x70/0xf0
[c000000003503b90] [c000000000e26f88] kobject_create_and_add+0xa8/0x120
[c000000003503c10] [c00000000204aa58] genhd_device_init+0x84/0xa8
[c000000003503c40] [c0000000000132a0] do_one_initcall+0x80/0x320
[c000000003503d20] [c000000002004a68] kernel_init_freeable+0x304/0x3a4
[c000000003503df0] [c0000000000138a0] kernel_init+0x30/0x1a0
[c000000003503e50] [c00000000000df94] ret_from_kernel_thread+0x5c/0x64
--- interrupt: 0 at 0x0
NIP:  0000000000000000 LR: 0000000000000000 CTR: 0000000000000000
REGS: c000000003503e80 TRAP: 0000   Not tainted  (6.3.0-rc1-01530-ge44d8b957584)
MSR:  0000000000000000 <>  CR: 00000000  XER: 00000000
CFAR: 0000000000000000 IRQMASK: 0 
GPR00: 0000000000000000 c000000003504000 0000000000000000 0000000000000000 
GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR12: 0000000000000000 0000000000000000 c000000000013878 0000000000000000 
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR28: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
NIP [0000000000000000] 0x0
LR [0000000000000000] 0x0
--- interrupt: 0
kobject_add_internal failed for block with -EEXIST, don't try to register things with the same name in the same directory.
kobject_create_and_add: kobject_add error: -17
iommu: Default domain type: Translated 

Introduced by commit

  721da5cee9d4 ("driver core: remove CONFIG_SYSFS_DEPRECATED and CONFIG_SYSFS_DEPRECATED_V2")

I have reverted that commit for today.

-- 
Cheers,
Stephen Rothwell