Re: [PATCH 3/4] sysfs: Functions for adding/removing symlinks to/from attribute groups

Greg Kroah-Hartman
2013-01-22T23:51:10Z

On Tue, Jan 22, 2013 at 03:27:12AM +0100, Rafael J. Wysocki wrote:
> --- linux-pm.orig/include/linux/sysfs.h
> +++ linux-pm/include/linux/sysfs.h
> @@ -154,6 +154,8 @@ int __must_check sysfs_create_bin_file(s
> void sysfs_remove_bin_file(struct kobject *kobj,
> const struct bin_attribute *attr);
>
> +int sysfs_create_link_sd(struct sysfs_dirent *sd, struct kobject *target,
> + const char *name);

This should go into fs/sysfs/sysfs.h not include/linux/sysfs.h as it's
an "internal" sysfs function.

thanks,

greg k-h