Skip to contentSkip to conversation

docs: locking: Fix bracket

PATCH Applied Manuel Ebner 4 participants 4 messages Sep 2 – Sep 7

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

PATCH 1/1 docs: locking: Fix bracket

Remove needless '(' from code block.

---
Should I also replace ')(' with ') (' as it is in the second code block? It would improve readability in my opinion.

---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/locking.rst +1 -1
index 844d65eb4..1598cf555 100644
@@ -27,7 +27,7 @@ prototypes::
 	int (*d_init)(struct dentry *);
 	void (*d_release)(struct dentry *);
 	void (*d_iput)(struct dentry *, struct inode *);
-	char *(*d_dname)((struct dentry *dentry, char *buffer, int buflen);
+	char *(*d_dname)(struct dentry *dentry, char *buffer, int buflen);
 	struct vfsmount *(*d_automount)(struct path *path);
 	int (*d_manage)(const struct path *, bool);
 	struct dentry *(*d_real)(struct dentry *, enum d_real_type type);
Signature · 1 line
2.54.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Manuel Ebner

Remove needless '(' from code block.

Looks good. Feel free to add:

Quoted 3 lines

---
Should I also replace ')(' with ') (' as it is in the second code block? It would improve readability in my opinion.

Dunno, at least I'm used to the way which is written here :)

Honza

Quoted 20 lines
---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/locking.rst +1 -1
index 844d65eb4..1598cf555 100644
@@ -27,7 +27,7 @@ prototypes::
 	int (*d_init)(struct dentry *);
 	void (*d_release)(struct dentry *);
 	void (*d_iput)(struct dentry *, struct inode *);
-	char *(*d_dname)((struct dentry *dentry, char *buffer, int buflen);
+	char *(*d_dname)(struct dentry *dentry, char *buffer, int buflen);
 	struct vfsmount *(*d_automount)(struct path *path);
 	int (*d_manage)(const struct path *, bool);
 	struct dentry *(*d_real)(struct dentry *, enum d_real_type type);
Signature · 1 line
2.54.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
reviewer Reviewed-by
#2 lore raw
Quoted 8 lines · Jan Kara
Quoted 3 lines · Manuel Ebner

Remove needless '(' from code block.

Looks good. Feel free to add:

Quoted 6 lines
Quoted 4 lines

---
Should I also replace ')(' with ') (' as it is in the second code block? It would improve readability in my opinion.

Dunno, at least I'm used to the way which is written here :)

I agree - this looks typical to me.

Quoted 23 lines

Honza

Quoted 20 lines
---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/locking.rst +1 -1
index 844d65eb4..1598cf555 100644
@@ -27,7 +27,7 @@ prototypes::
 	int (*d_init)(struct dentry *);
 	void (*d_release)(struct dentry *);
 	void (*d_iput)(struct dentry *, struct inode *);
-	char *(*d_dname)((struct dentry *dentry, char *buffer, int buflen);
+	char *(*d_dname)(struct dentry *dentry, char *buffer, int buflen);
 	struct vfsmount *(*d_automount)(struct path *path);
 	int (*d_manage)(const struct path *, bool);
 	struct dentry *(*d_real)(struct dentry *, enum d_real_type type);
Signature · 1 line
2.54.0
Signature · 1 line
~Randy
maintainer Applied
#3 lore raw
In reply to Manuel Ebner
Quoted 15 lines · Manuel Ebner

Remove needless '(' from code block.

---
Should I also replace ')(' with ') (' as it is in the second code block? It would improve readability in my opinion.

---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/locking.rst +0 -0
index 844d65eb4..1598cf555 100644

Documentation/filesystems/locking.rst prototypes:: · line 31

Quoted 6 lines
Documentation/filesystems/locking.rst +1 -1
@@ -27,7 +27,7 @@ prototypes::
 	int (*d_init)(struct dentry *);
 	void (*d_release)(struct dentry *);
 	void (*d_iput)(struct dentry *, struct inode *);
-	char *(*d_dname)((struct dentry *dentry, char *buffer, int buflen);
+	char *(*d_dname)(struct dentry *dentry, char *buffer, int buflen);
 	struct vfsmount *(*d_automount)(struct path *path);

Applied, thanks.

jon