login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
14
Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Cornelia Huck <cornelia.huck@...>
To: Greg KH <greg@...>
Cc: <linux-kernel@...>
Subject:
Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file
Date: Friday, September 14, 2007 - 8:06 am
On Thu, 13 Sep 2007 16:41:18 -0700, Greg KH <greg@kroah.com> wrote:
quoted text
> int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) > { > - if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) > + if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) { > + printk(KERN_WARNING, "sysfs: duplicate filename '%s' "
Stray ',' here ------------------->^
quoted text
> + "can not be created\n", sd->s_name); > + WARN_ON(1); > return -EEXIST; > + } >
-
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] Some driver core and kobject minor patches
, Greg KH
, (Thu Sep 13, 7:37 pm)
Re: [RFC] Some driver core and kobject minor patches
, Cornelia Huck
, (Fri Sep 14, 7:25 am)
kobject: remove the static array for the name
, Greg KH
, (Thu Sep 13, 7:44 pm)
kobjects: fix up improper use of the kobject name field
, Greg KH
, (Thu Sep 13, 7:43 pm)
cdev: remove unneeded setting of cdev names
, Greg KH
, (Thu Sep 13, 7:43 pm)
Drivers: clean up direct setting of the name of a kset
, Greg KH
, (Thu Sep 13, 7:42 pm)
Re: [RFC] Some driver core and kobject minor patches
, Greg KH
, (Thu Sep 13, 7:42 pm)
sysfs: spit a warning to users when they try to create a dup...
, Greg KH
, (Thu Sep 13, 7:41 pm)
Re: sysfs: spit a warning to users when they try to create a...
, Stefan Richter
, (Sat Sep 15, 8:44 am)
Re: sysfs: spit a warning to users when they try to create a...
, Cornelia Huck
, (Fri Sep 14, 8:06 am)
Re: sysfs: spit a warning to users when they try to create a...
, Greg KH
, (Sun Sep 16, 4:39 pm)
Driver core: remove subsys_set_kset
, Greg KH
, (Thu Sep 13, 7:40 pm)
Driver core: remove subsys_put()
, Greg KH
, (Thu Sep 13, 7:40 pm)
Driver core: remove subsys_get()
, Greg KH
, (Thu Sep 13, 7:40 pm)
Driver core: remove put_bus()
, Greg KH
, (Thu Sep 13, 7:39 pm)
Re: Driver core: remove put_bus()
, Cornelia Huck
, (Fri Sep 14, 7:03 am)
Driver core: remove kset_set_kset_s
, Greg KH
, (Thu Sep 13, 7:39 pm)
Driver core: remove get_bus()
, Greg KH
, (Thu Sep 13, 7:38 pm)
Re: Driver core: remove get_bus()
, Cornelia Huck
, (Fri Sep 14, 7:02 am)
Re: Driver core: remove get_bus()
, Greg KH
, (Fri Sep 14, 7:27 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Nick Piggin
[patch] my mmu notifier sample driver
Sean
Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
Arjan van de Ven
[Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in
git
:
linux-netdev
:
Antonio Almeida
HTB accuracy for high speed
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Jens Axboe
Re: [BUG] New Kernel Bugs
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
727 guests
online.
Online users
grandprairiedr
howtohavebette
hostallona
familymedicall
chester2009
Syndicate