All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Staging: Remove exceptional & on function name.
@ 2016-09-18  0:57 Sandhya Bankar
  2016-09-18  1:02 ` [PATCH v2 1/2] Staging: lustre: namei: " Sandhya Bankar
  2016-09-18 12:26 ` [PATCH v2 2/2] Staging: lustre: file: " Sandhya Bankar
  0 siblings, 2 replies; 3+ messages in thread
From: Sandhya Bankar @ 2016-09-18  0:57 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: oleg.drokin, andreas.dilger, jsimmons, gregkh

A function name is already a pointer, and does not need &.
This changes are made by below coccinelle script:

// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>

Changes in v2:
* Correcting the commit message.
* Correcting the file permission issue.

Sandhya Bankar (2):
  Staging: lustre: file: Remove exceptional & on function name.
  Staging: lustre: namei: Remove exceptional & on function name.

 drivers/staging/lustre/lustre/llite/file.c  |    2 +-
 drivers/staging/lustre/lustre/llite/namei.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] Staging: lustre: namei: Remove exceptional & on function name.
  2016-09-18  0:57 [PATCH v2 0/2] Staging: Remove exceptional & on function name Sandhya Bankar
@ 2016-09-18  1:02 ` Sandhya Bankar
  2016-09-18 12:26 ` [PATCH v2 2/2] Staging: lustre: file: " Sandhya Bankar
  1 sibling, 0 replies; 3+ messages in thread
From: Sandhya Bankar @ 2016-09-18  1:02 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: oleg.drokin, andreas.dilger, jsimmons, gregkh

A function name is already a pointer, and does not need &.
This changes are made by below coccinelle script:

// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>


Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
Changes in v2:
* Correcting the commit message.
* Correcting the file permission issue
 drivers/staging/lustre/lustre/llite/namei.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/namei.c b/drivers/staging/lustre/lustre/llite/namei.c
index b7d448f..aa10e7c 100644
--- a/drivers/staging/lustre/lustre/llite/namei.c
+++ b/drivers/staging/lustre/lustre/llite/namei.c
@@ -551,7 +551,7 @@ static struct dentry *ll_lookup_it(struct inode *parent, struct dentry *dentry,
 		it->it_create_mode &= ~current_umask();
 
 	rc = md_intent_lock(ll_i2mdexp(parent), op_data, it, &req,
-			    &ll_md_blocking_ast, 0);
+			    ll_md_blocking_ast, 0);
 	ll_finish_md_op_data(op_data);
 	if (rc < 0) {
 		retval = ERR_PTR(rc);
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] Staging: lustre: file: Remove exceptional & on function name.
  2016-09-18  0:57 [PATCH v2 0/2] Staging: Remove exceptional & on function name Sandhya Bankar
  2016-09-18  1:02 ` [PATCH v2 1/2] Staging: lustre: namei: " Sandhya Bankar
@ 2016-09-18 12:26 ` Sandhya Bankar
  1 sibling, 0 replies; 3+ messages in thread
From: Sandhya Bankar @ 2016-09-18 12:26 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: oleg.drokin, andreas.dilger, jsimmons, gregkh

A function name is already a pointer, and does not need &.
This changes are made by below coccinelle script:

// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
Changes in v2:
* Correcting the commit message.
* Correcting the file permission issue.
 drivers/staging/lustre/lustre/llite/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index bfac6dd..4965d15 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -829,7 +829,7 @@ ll_lease_open(struct inode *inode, struct file *file, fmode_t fmode,
 	it.it_flags = fmode | open_flags;
 	it.it_flags |= MDS_OPEN_LOCK | MDS_OPEN_BY_FID | MDS_OPEN_LEASE;
 	rc = md_intent_lock(sbi->ll_md_exp, op_data, &it, &req,
-			    &ll_md_blocking_lease_ast,
+			    ll_md_blocking_lease_ast,
 	/* LDLM_FL_NO_LRU: To not put the lease lock into LRU list, otherwise
 	 * it can be cancelled which may mislead applications that the lease is
 	 * broken;
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-18 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-18  0:57 [PATCH v2 0/2] Staging: Remove exceptional & on function name Sandhya Bankar
2016-09-18  1:02 ` [PATCH v2 1/2] Staging: lustre: namei: " Sandhya Bankar
2016-09-18 12:26 ` [PATCH v2 2/2] Staging: lustre: file: " Sandhya Bankar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.