提交 78e9d367 编写于 作者: A Adrian Bunk 提交者: Greg Kroah-Hartman

sysfs: make sysfs_{get,put}_active() static

sysfs_{get,put}_active() can now become static.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 34358c26
...@@ -132,7 +132,7 @@ struct dentry *sysfs_get_dentry(struct sysfs_dirent *sd) ...@@ -132,7 +132,7 @@ struct dentry *sysfs_get_dentry(struct sysfs_dirent *sd)
* RETURNS: * RETURNS:
* Pointer to @sd on success, NULL on failure. * Pointer to @sd on success, NULL on failure.
*/ */
struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd) static struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd)
{ {
if (unlikely(!sd)) if (unlikely(!sd))
return NULL; return NULL;
...@@ -161,7 +161,7 @@ struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd) ...@@ -161,7 +161,7 @@ struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd)
* Put an active reference to @sd. This function is noop if @sd * Put an active reference to @sd. This function is noop if @sd
* is NULL. * is NULL.
*/ */
void sysfs_put_active(struct sysfs_dirent *sd) static void sysfs_put_active(struct sysfs_dirent *sd)
{ {
struct completion *cmpl; struct completion *cmpl;
int v; int v;
......
...@@ -103,8 +103,6 @@ extern const struct file_operations sysfs_dir_operations; ...@@ -103,8 +103,6 @@ extern const struct file_operations sysfs_dir_operations;
extern const struct inode_operations sysfs_dir_inode_operations; extern const struct inode_operations sysfs_dir_inode_operations;
struct dentry *sysfs_get_dentry(struct sysfs_dirent *sd); struct dentry *sysfs_get_dentry(struct sysfs_dirent *sd);
struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd);
void sysfs_put_active(struct sysfs_dirent *sd);
struct sysfs_dirent *sysfs_get_active_two(struct sysfs_dirent *sd); struct sysfs_dirent *sysfs_get_active_two(struct sysfs_dirent *sd);
void sysfs_put_active_two(struct sysfs_dirent *sd); void sysfs_put_active_two(struct sysfs_dirent *sd);
void sysfs_addrm_start(struct sysfs_addrm_cxt *acxt, void sysfs_addrm_start(struct sysfs_addrm_cxt *acxt,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册