Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758069AbYJLNZV (ORCPT ); Sun, 12 Oct 2008 09:25:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752482AbYJLNZI (ORCPT ); Sun, 12 Oct 2008 09:25:08 -0400 Received: from 41-052.adsl.zetnet.co.uk ([194.247.41.52]:60611 "EHLO mail.esperi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752122AbYJLNZG (ORCPT ); Sun, 12 Oct 2008 09:25:06 -0400 X-Greylist: delayed 3514 seconds by postgrey-1.27 at vger.kernel.org; Sun, 12 Oct 2008 09:25:05 EDT To: linux-kernel@vger.kernel.org Cc: Peter Osterlund Subject: pktcdvd -> sysfs warning with 2.6.27 From: Nix Emacs: a learning curve that you can use as a plumb line. Date: Sun, 12 Oct 2008 13:26:25 +0100 Message-ID: <87vdvyngni.fsf@hades.wkstn.nix> User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.5-b28 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-DCC-CTc-dcc2-Metrics: hades 1031; Body=2 Fuz1=2 Fuz2=2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1807 Lines: 46 At the very end of my startup scripts, I say pktsetup cdrw /dev/cdrw to get the stuff in /etc/pktcdvd set up right. As of 2.6.27 this has started complaining: pktcdvd: writer pktcdvd0 mapped to hde ------------[ cut here ]------------ WARNING: at fs/sysfs/dir.c:463 sysfs_add_one+0x2f/0x3b() sysfs: duplicate filename '254:0' can not be created Modules linked in: Pid: 1306, comm: pktsetup Not tainted 2.6.27-dirty #1 [] warn_slowpath+0x50/0x71 [] ? ida_get_new_above+0xdc/0x17d [] ? idr_get_empty_slot+0x142/0x1f3 [] ? ida_get_new_above+0xdc/0x17d [] ? sysfs_ilookup_test+0x0/0x16 [] ? sysfs_find_dirent+0x1b/0x2c [] sysfs_add_one+0x2f/0x3b [] sysfs_do_create_link+0xb1/0x106 [] sysfs_create_link+0xf/0x14 [] device_add+0x134/0x455 [] device_register+0x17/0x1a [] device_create_vargs+0x80/0xa3 [] device_create+0x20/0x24 [] pkt_setup_dev+0x2ed/0x429 [] pkt_ctl_ioctl+0x86/0x18c [] vfs_ioctl+0x55/0x6e [] ? block_truncate_page+0xa9/0x1e0 [] do_vfs_ioctl+0x236/0x249 [] sys_ioctl+0x31/0x4d [] sysenter_do_call+0x12/0x25 [] ? block_truncate_page+0xa9/0x1e0 ======================= ---[ end trace 1cdd10ab78ee5bc6 ]--- For the life of me I can't see where pkt_sysfs_dev_new() is being called more than once: indeed, from the trace above GCC has inlined it into pkt_setup_dev() as a static function called from only one place... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/