aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-21 19:40:05 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-21 19:40:05 -0400
commit2c3a908b4b53594c71eeae8512ad4125310de01a (patch)
treefbb31a00e61abbc6162b12caaac7a35540204533 /fs/sysfs
parent07ac62a604a8bfb23b1b8c1a07f29f6752bacdb7 (diff)
sysfs: sysfs.h: fix coding style issues
This fixes up the remaining coding style issues in sysfs.h Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs')
-rw-r--r--fs/sysfs/sysfs.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index d1e4043eb0c3..b6deca3e301d 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -78,7 +78,7 @@ struct sysfs_dirent {
78 }; 78 };
79 79
80 unsigned short s_flags; 80 unsigned short s_flags;
81 umode_t s_mode; 81 umode_t s_mode;
82 unsigned int s_ino; 82 unsigned int s_ino;
83 struct sysfs_inode_attrs *s_iattr; 83 struct sysfs_inode_attrs *s_iattr;
84}; 84};
@@ -123,9 +123,9 @@ do { \
123 key = &attr->skey; \ 123 key = &attr->skey; \
124 \ 124 \
125 lockdep_init_map(&sd->dep_map, "s_active", key, 0); \ 125 lockdep_init_map(&sd->dep_map, "s_active", key, 0); \
126} while(0) 126} while (0)
127#else 127#else
128#define sysfs_dirent_init_lockdep(sd) do {} while(0) 128#define sysfs_dirent_init_lockdep(sd) do {} while (0)
129#endif 129#endif
130 130
131/* 131/*
@@ -186,8 +186,8 @@ int sysfs_create_subdir(struct kobject *kobj, const char *name,
186 struct sysfs_dirent **p_sd); 186 struct sysfs_dirent **p_sd);
187void sysfs_remove_subdir(struct sysfs_dirent *sd); 187void sysfs_remove_subdir(struct sysfs_dirent *sd);
188 188
189int sysfs_rename(struct sysfs_dirent *sd, 189int sysfs_rename(struct sysfs_dirent *sd, struct sysfs_dirent *new_parent_sd,
190 struct sysfs_dirent *new_parent_sd, const void *ns, const char *new_name); 190 const void *ns, const char *new_name);
191 191
192static inline struct sysfs_dirent *__sysfs_get(struct sysfs_dirent *sd) 192static inline struct sysfs_dirent *__sysfs_get(struct sysfs_dirent *sd)
193{ 193{
@@ -214,10 +214,12 @@ void sysfs_evict_inode(struct inode *inode);
214int sysfs_sd_setattr(struct sysfs_dirent *sd, struct iattr *iattr); 214int sysfs_sd_setattr(struct sysfs_dirent *sd, struct iattr *iattr);
215int sysfs_permission(struct inode *inode, int mask); 215int sysfs_permission(struct inode *inode, int mask);
216int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); 216int sysfs_setattr(struct dentry *dentry, struct iattr *iattr);
217int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat); 217int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
218 struct kstat *stat);
218int sysfs_setxattr(struct dentry *dentry, const char *name, const void *value, 219int sysfs_setxattr(struct dentry *dentry, const char *name, const void *value,
219 size_t size, int flags); 220 size_t size, int flags);
220int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const char *name); 221int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns,
222 const char *name);
221int sysfs_inode_init(void); 223int sysfs_inode_init(void);
222 224
223/* 225/*