]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sysfs: separate out dup filename warning into a separate function
authorTejun Heo <tj@kernel.org>
Thu, 24 Oct 2013 15:49:11 +0000 (11:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 22:12:07 +0000 (15:12 -0700)
commitd1c1459e45944e336a968acce1e459c9effcde47
tree0378046afd671158c2fde7184ee9f851944c395c
parent7eed6ecb0785681892ab1fe47188fc981241cfd0
sysfs: separate out dup filename warning into a separate function

Separate out sysfs_warn_dup() out of sysfs_add_one().  This will help
separating out the core sysfs functionalities into kernfs so that it
can be used by non-sysfs users too.

This doesn't make any functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/dir.c
fs/sysfs/sysfs.h