From: Takashi Iwai Subject: Re: [snd_msnd_init] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:486 sysfs_warn_dup+0x7d/0xa0() Date: Tue, 12 Nov 2013 09:44:23 +0100 Message-ID: References: <20131112001104.GA23993@localhost> <20131112083536.GA32285@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E8EBE26087D for ; Tue, 12 Nov 2013 09:44:23 +0100 (CET) In-Reply-To: <20131112083536.GA32285@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Fengguang Wu Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 12 Nov 2013 16:35:36 +0800, Fengguang Wu wrote: > > On Tue, Nov 12, 2013 at 09:14:49AM +0100, Takashi Iwai wrote: > > At Tue, 12 Nov 2013 08:11:04 +0800, > > Fengguang Wu wrote: > > > > > > Greetings, > > > > > > I got this warning when booting a kernel with the attached kconfig. > > > > > > [ 5.073253] kobject: 'msnd-pinnacle.7' (cec33408): kobject_release, parent (null) (delayed) > > > [ 5.074347] kobject: 'msnd-pinnacle' (cecd4980): kobject_release, parent cf3ad9b0 (delayed) > > > [ 5.075576] ------------[ cut here ]------------ > > > [ 5.076200] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:486 sysfs_warn_dup+0x7d/0xa0() > > > [ 5.077434] sysfs: cannot create duplicate filename '/bus/isa/drivers/msnd-pinnacle' > > > [ 5.078422] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.0-wl-05537-gf1c1073 #242 > > > [ 5.079529] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 > > > [ 5.080418] 00000000 00000000 cb857d74 c17a4989 cb857db4 cb857da4 c10944ba c1a23264 > > > [ 5.081680] cb857dd0 00000001 c1a231f8 000001e6 c11c051d c11c051d c0025000 000001e6 > > > [ 5.083104] c0025000 cb857dbc c109452e 00000009 cb857db4 c1a23264 cb857dd0 cb857de0 > > > [ 5.084361] Call Trace: > > > [ 5.084745] [] dump_stack+0x4b/0x98 > > > [ 5.085463] [] warn_slowpath_common+0x7a/0xa0 > > > [ 5.086182] [] ? sysfs_warn_dup+0x7d/0xa0 > > > [ 5.086785] [] ? sysfs_warn_dup+0x7d/0xa0 > > > [ 5.087397] [] warn_slowpath_fmt+0x2e/0x30 > > > [ 5.087980] [] sysfs_warn_dup+0x7d/0xa0 > > > [ 5.088621] [] sysfs_add_one+0x29/0x40 > > > [ 5.089230] [] create_dir+0x58/0xa0 > > > [ 5.089797] [] sysfs_create_dir_ns+0xfd/0x120 > > > [ 5.090709] [] kobject_add_internal+0xc2/0x240 > > > [ 5.091505] [] ? kfree+0x7b/0x210 > > > [ 5.092211] [] ? kobject_set_name_vargs+0x42/0x60 > > > [ 5.092978] [] kobject_init_and_add+0x4d/0x60 > > > [ 5.093706] [] bus_add_driver+0x7a/0x200 > > > [ 5.094351] [] ? snd_msnd_init+0x49/0x49 > > > [ 5.095085] [] ? isa_bus_remove+0x30/0x30 > > > [ 5.095817] [] ? snd_msnd_init+0x49/0x49 > > > [ 5.096521] [] driver_register+0xaf/0xf0 > > > [ 5.097136] [] ? preempt_count_sub+0xf2/0x150 > > > [ 5.097795] [] isa_register_driver+0x26/0x160 > > > [ 5.098534] [] ? alsa_card_gusextreme_init+0x14/0x14 > > > [ 5.099423] [] ? _raw_spin_unlock+0x50/0x60 > > > [ 5.100093] [] ? snd_msnd_init+0x49/0x49 > > > [ 5.100715] [] snd_msnd_init+0x12/0x49 > > > [ 5.101336] [] do_one_initcall+0x90/0x155 > > > [ 5.102207] [] ? put_prev_task_fair+0x130/0x490 > > > [ 5.102891] [] ? strlen+0xd/0x20 > > > [ 5.103490] [] ? do_early_param+0x5e/0x7a > > > [ 5.104164] [] ? parse_args+0x1ec/0x330 > > > [ 5.104746] [] ? _raw_spin_unlock_irqrestore+0x78/0x90 > > > [ 5.105526] [] kernel_init_freeable+0x1a0/0x23f > > > [ 5.106240] [] ? do_early_param+0x7a/0x7a > > > [ 5.106961] [] kernel_init+0xb/0x150 > > > [ 5.107566] [] ret_from_kernel_thread+0x1b/0x28 > > > [ 5.108356] [] ? rest_init+0xc0/0xc0 > > > [ 5.109054] ---[ end trace f2f06bffaee363dd ]--- > > > [ 5.109705] ------------[ cut here ]------------ > > > > The patch below should fix the issue. > > Thanks for the quick fix! Takashi, you may directly push it to your > tree (to some temp branch if not sure) and I'll then check the test > results. :) Yep, done. thanks, Takashi