[PATCH 52/75] sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-10-12 Thread Greg Kroah-Hartman
We want to let people know when we create a duplicate sysfs file, as they need to fix up their code. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- fs/sysfs/dir.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index da4bb6

Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-16 Thread Greg KH
On Fri, Sep 14, 2007 at 02:06:21PM +0200, Cornelia Huck wrote: > On Thu, 13 Sep 2007 16:41:18 -0700, > Greg KH <[EMAIL PROTECTED]> wrote: > > > > int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) > > { > > - if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) > > + if

Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-15 Thread Stefan Richter
Greg KH wrote: > We want to let people know when we create a duplicate sysfs file, as > they need to fix up their code. > > > Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> > > --- > fs/sysfs/dir.c |6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > --- a/fs/sysfs/dir.c

Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-14 Thread Cornelia Huck
On Thu, 13 Sep 2007 16:41:18 -0700, Greg KH <[EMAIL PROTECTED]> wrote: > 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(

sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-13 Thread Greg KH
We want to let people know when we create a duplicate sysfs file, as they need to fix up their code. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- fs/sysfs/dir.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -428,8 +428,1