Skip to contentSkip to conversation

staging: vme_user: fix line exceeding 80 characters in vme_user.c

PATCH In review Harshit Shaw 2 participants 3 messages May 11

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vme_user: fix line exceeding 80 characters in vme_user.c

Wrap the vme_user_vm_mapped() function signature that exceeded the 80 character line limit as reported by checkpatch.pl.

No functional change.

---
 drivers/staging/vme_user/vme_user.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/vme_user/vme_user.c +3 -2
index 11e25c2f6b0a..f5e29933ba68 100644
@@ -446,8 +446,9 @@ static void vme_user_vm_close(struct vm_area_struct *vma)
 	kfree(vma_priv);
 }
 
-static int vme_user_vm_mapped(unsigned long start, unsigned long end, pgoff_t pgoff,
-			      const struct file *file, void **vm_private_data)
+static int vme_user_vm_mapped(unsigned long start, unsigned long end,
+			      pgoff_t pgoff, const struct file *file,
+			      void **vm_private_data)
 {
 	const unsigned int minor = iminor(file_inode(file));
 	struct vme_user_vma_priv *vma_priv;
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 3 lines · Harshit Shaw

Wrap the vme_user_vm_mapped() function signature that exceeded the 80 character line limit as reported by checkpatch.pl.

You get a full 72 characters here.

Quoted 12 lines

No functional change.

---
 drivers/staging/vme_user/vme_user.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/vme_user/vme_user.c +0 -0
index 11e25c2f6b0a..f5e29933ba68 100644

drivers/staging/vme_user/vme_user.c static void vme_user_vm_close(struct vm_area_struct *vma) · line 451

Quoted 8 lines
drivers/staging/vme_user/vme_user.c +3 -2
@@ -446,8 +446,9 @@ static void vme_user_vm_close(struct vm_area_struct *vma)
 	kfree(vma_priv);
 }
 
-static int vme_user_vm_mapped(unsigned long start, unsigned long end, pgoff_t pgoff,
-			      const struct file *file, void **vm_private_data)
+static int vme_user_vm_mapped(unsigned long start, unsigned long end,
+			      pgoff_t pgoff, const struct file *file,
+			      void **vm_private_data)

100 is an ok line length to stay at, the original code is just fine.

thanks,

greg k-h

maintainer
#2 lore raw
In reply to Harshit Shaw
Quoted 31 lines · Harshit Shaw

Wrap the vme_user_vm_mapped() function signature that exceeded the 80 character line limit as reported by checkpatch.pl.

No functional change.

---
 drivers/staging/vme_user/vme_user.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/vme_user/vme_user.c +3 -2
index 11e25c2f6b0a..f5e29933ba68 100644
@@ -446,8 +446,9 @@ static void vme_user_vm_close(struct vm_area_struct *vma)
 	kfree(vma_priv);
 }
 
-static int vme_user_vm_mapped(unsigned long start, unsigned long end, pgoff_t pgoff,
-			      const struct file *file, void **vm_private_data)
+static int vme_user_vm_mapped(unsigned long start, unsigned long end,
+			      pgoff_t pgoff, const struct file *file,
+			      void **vm_private_data)
 {
 	const unsigned int minor = iminor(file_inode(file));
 	struct vme_user_vma_priv *vma_priv;
Signature · 1 line
2.53.0

Didn't my bot ask for these all as a patch series?

{sigh}