sysfs: fix up 80 column coding style issues
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:33:34 +0000 (16:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:33:34 +0000 (16:33 -0700)
This fixes up the 80 column coding style issues in the sysfs .c files.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/inode.c
fs/sysfs/symlink.c

index e993133aa969c75990aa061c19ea5891b2a4300f..158227e03b7148eb20e3791cff29d98ebcb8c709 100644 (file)
@@ -896,7 +896,9 @@ int sysfs_rename(struct sysfs_dirent *sd,
                sd->s_name = new_name;
        }
 
-       /* Move to the appropriate place in the appropriate directories rbtree. */
+       /*
+        * Move to the appropriate place in the appropriate directories rbtree.
+        */
        sysfs_unlink_sibling(sd);
        sysfs_get(new_parent_sd);
        sysfs_put(sd->s_parent);
index 1e12e07eed5ebb577f82763572dbf6289e013032..62bdcefbac6c15b39c1095c1235edc51b203ee94 100644 (file)
@@ -185,8 +185,8 @@ static int fill_write_buffer(struct sysfs_buffer *buffer,
  *     dealing with, then call the store() method for the attribute,
  *     passing the buffer that we acquired in fill_write_buffer().
  */
-static int
-flush_write_buffer(struct dentry *dentry, struct sysfs_buffer *buffer, size_t count)
+static int flush_write_buffer(struct dentry *dentry,
+                             struct sysfs_buffer *buffer, size_t count)
 {
        struct sysfs_dirent *attr_sd = dentry->d_fsdata;
        struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
@@ -221,9 +221,8 @@ flush_write_buffer(struct dentry *dentry, struct sysfs_buffer *buffer, size_t co
  *     Hint: if you're writing a value, first read the file, modify only the
  *     the value you're changing, then write entire buffer back.
  */
-
-static ssize_t
-sysfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
+static ssize_t sysfs_write_file(struct file *file, const char __user *buf,
+                               size_t count, loff_t *ppos)
 {
        struct sysfs_buffer *buffer = file->private_data;
        ssize_t len;
index 833ec9150650b8878eb07f699d9e21d97703de43..963f910c8034f84d414e625c092d45d2ca564123 100644 (file)
@@ -128,7 +128,8 @@ out:
        return error;
 }
 
-static int sysfs_sd_setsecdata(struct sysfs_dirent *sd, void **secdata, u32 *secdata_len)
+static int sysfs_sd_setsecdata(struct sysfs_dirent *sd, void **secdata,
+                              u32 *secdata_len)
 {
        struct sysfs_inode_attrs *iattrs;
        void *old_secdata;
@@ -220,7 +221,8 @@ static void sysfs_refresh_inode(struct sysfs_dirent *sd, struct inode *inode)
                set_nlink(inode, sd->s_dir.subdirs + 2);
 }
 
-int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
+int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
+                 struct kstat *stat)
 {
        struct sysfs_dirent *sd = dentry->d_fsdata;
        struct inode *inode = dentry->d_inode;
@@ -312,7 +314,8 @@ void sysfs_evict_inode(struct inode *inode)
        sysfs_put(sd);
 }
 
-int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const char *name)
+int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns,
+                         const char *name)
 {
        struct sysfs_addrm_cxt acxt;
        struct sysfs_dirent *sd;
index c6d8156531259e96649c2fa44c85ff92dc80a19a..2dd4507d9edd675b78a5c857d337a8abc9cf76cd 100644 (file)
@@ -305,7 +305,8 @@ static void *sysfs_follow_link(struct dentry *dentry, struct nameidata *nd)
        return NULL;
 }
 
-static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie)
+static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd,
+                          void *cookie)
 {
        char *page = nd_get_link(nd);
        if (!IS_ERR(page))