All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ocfs2: fix build warning
@ 2016-02-02  6:46 ` Sudip Mukherjee
  0 siblings, 0 replies; 6+ messages in thread
From: Sudip Mukherjee @ 2016-02-02  6:46 UTC (permalink / raw)
  To: Mark Fasheh, Joel Becker
  Cc: linux-kernel, Andrew Morton, ocfs2-devel, Sudip Mukherjee, Ryan Ding

We were getting build warning about:
/fs/ocfs2/file.c: In function ‘ocfs2_file_write_iter’:
fs/ocfs2/file.c:2198:1: warning: label ‘relock’ defined but not used

The previous commit has cleaned up the code for direct io and removed
the jump instruction to relock, but missed removing the label which is
unused now.

Fixes: 1a46f12e5071 ("ocfs2: code clean up for direct io")
Cc: Ryan Ding <ryan.ding@oracle.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 fs/ocfs2/file.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 41c506e..c18ab45 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2195,7 +2195,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
 
 	inode_lock(inode);
 
-relock:
 	/*
 	 * Concurrent O_DIRECT writes are allowed with
 	 * mount_option "coherency=buffered".
-- 
1.9.1

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

* [Ocfs2-devel] [PATCH] ocfs2: fix build warning
@ 2016-02-02  6:46 ` Sudip Mukherjee
  0 siblings, 0 replies; 6+ messages in thread
From: Sudip Mukherjee @ 2016-02-02  6:46 UTC (permalink / raw)
  To: Mark Fasheh, Joel Becker
  Cc: linux-kernel, Andrew Morton, ocfs2-devel, Sudip Mukherjee, Ryan Ding

We were getting build warning about:
/fs/ocfs2/file.c: In function ?ocfs2_file_write_iter?:
fs/ocfs2/file.c:2198:1: warning: label ?relock? defined but not used

The previous commit has cleaned up the code for direct io and removed
the jump instruction to relock, but missed removing the label which is
unused now.

Fixes: 1a46f12e5071 ("ocfs2: code clean up for direct io")
Cc: Ryan Ding <ryan.ding@oracle.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 fs/ocfs2/file.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 41c506e..c18ab45 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2195,7 +2195,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
 
 	inode_lock(inode);
 
-relock:
 	/*
 	 * Concurrent O_DIRECT writes are allowed with
 	 * mount_option "coherency=buffered".
-- 
1.9.1

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

* Re: [PATCH] ocfs2: fix build warning
  2016-02-02  6:46 ` [Ocfs2-devel] " Sudip Mukherjee
@ 2016-02-02  8:01   ` Ryan Ding
  -1 siblings, 0 replies; 6+ messages in thread
From: Ryan Ding @ 2016-02-02  8:01 UTC (permalink / raw)
  To: Sudip Mukherjee, Mark Fasheh, Joel Becker
  Cc: linux-kernel, Andrew Morton, ocfs2-devel


On 02/02/2016 02:46 PM, Sudip Mukherjee wrote:
> We were getting build warning about:
> /fs/ocfs2/file.c: In function ‘ocfs2_file_write_iter’:
> fs/ocfs2/file.c:2198:1: warning: label ‘relock’ defined but not used
>
> The previous commit has cleaned up the code for direct io and removed
> the jump instruction to relock, but missed removing the label which is
> unused now.
>
> Fixes: 1a46f12e5071 ("ocfs2: code clean up for direct io")
> Cc: Ryan Ding <ryan.ding@oracle.com>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>

Reviewed-by: Ryan Ding<ryan.ding@oracle.com>

> ---
>   fs/ocfs2/file.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
> index 41c506e..c18ab45 100644
> --- a/fs/ocfs2/file.c
> +++ b/fs/ocfs2/file.c
> @@ -2195,7 +2195,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
>   
>   	inode_lock(inode);
>   
> -relock:
>   	/*
>   	 * Concurrent O_DIRECT writes are allowed with
>   	 * mount_option "coherency=buffered".

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

* [Ocfs2-devel] [PATCH] ocfs2: fix build warning
@ 2016-02-02  8:01   ` Ryan Ding
  0 siblings, 0 replies; 6+ messages in thread
From: Ryan Ding @ 2016-02-02  8:01 UTC (permalink / raw)
  To: Sudip Mukherjee, Mark Fasheh, Joel Becker
  Cc: linux-kernel, Andrew Morton, ocfs2-devel


On 02/02/2016 02:46 PM, Sudip Mukherjee wrote:
> We were getting build warning about:
> /fs/ocfs2/file.c: In function ?ocfs2_file_write_iter?:
> fs/ocfs2/file.c:2198:1: warning: label ?relock? defined but not used
>
> The previous commit has cleaned up the code for direct io and removed
> the jump instruction to relock, but missed removing the label which is
> unused now.
>
> Fixes: 1a46f12e5071 ("ocfs2: code clean up for direct io")
> Cc: Ryan Ding <ryan.ding@oracle.com>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>

Reviewed-by: Ryan Ding<ryan.ding@oracle.com>

> ---
>   fs/ocfs2/file.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
> index 41c506e..c18ab45 100644
> --- a/fs/ocfs2/file.c
> +++ b/fs/ocfs2/file.c
> @@ -2195,7 +2195,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
>   
>   	inode_lock(inode);
>   
> -relock:
>   	/*
>   	 * Concurrent O_DIRECT writes are allowed with
>   	 * mount_option "coherency=buffered".

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

* Re: [PATCH] ocfs2: fix build warning
  2016-02-02  6:46 ` [Ocfs2-devel] " Sudip Mukherjee
@ 2016-02-13 22:45   ` kbuild test robot
  -1 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2016-02-13 22:45 UTC (permalink / raw)
  To: Sudip Mukherjee
  Cc: kbuild-all, Mark Fasheh, Joel Becker, linux-kernel,
	Andrew Morton, ocfs2-devel, Sudip Mukherjee, Ryan Ding

[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]

Hi Sudip,

[auto build test ERROR on v4.5-rc2]
[cannot apply to next-20160212]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Sudip-Mukherjee/ocfs2-fix-build-warning/20160202-144936
config: i386-randconfig-x0-02140608 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   fs/ocfs2/file.c: In function 'ocfs2_file_write_iter':
>> fs/ocfs2/file.c:2369:3: error: label 'relock' used but not defined
      goto relock;
      ^

vim +/relock +2369 fs/ocfs2/file.c

9517bac6 Mark Fasheh 2007-02-09  2363  		rw_level = -1;
9517bac6 Mark Fasheh 2007-02-09  2364  
9517bac6 Mark Fasheh 2007-02-09  2365  		direct_io = 0;
7da839c4 Al Viro     2015-04-09  2366  		iocb->ki_flags &= ~IOCB_DIRECT;
3309dd04 Al Viro     2015-04-09  2367  		iov_iter_reexpand(from, orig_count);
7da839c4 Al Viro     2015-04-09  2368  		dropped_dio = 1;
9517bac6 Mark Fasheh 2007-02-09 @2369  		goto relock;
9517bac6 Mark Fasheh 2007-02-09  2370  	}
9517bac6 Mark Fasheh 2007-02-09  2371  
a11f7e63 Mark Fasheh 2011-06-22  2372  	if (unaligned_dio) {

:::::: The code at line 2369 was first introduced by commit
:::::: 9517bac6cc7a7aa4fee63cb38a32cb6014e264c7 ocfs2: teach ocfs2_file_aio_write() about sparse files

:::::: TO: Mark Fasheh <mark.fasheh@oracle.com>
:::::: CC: Mark Fasheh <mark.fasheh@oracle.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 19962 bytes --]

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

* [Ocfs2-devel] [PATCH] ocfs2: fix build warning
@ 2016-02-13 22:45   ` kbuild test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2016-02-13 22:45 UTC (permalink / raw)
  To: ocfs2-devel

Hi Sudip,

[auto build test ERROR on v4.5-rc2]
[cannot apply to next-20160212]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Sudip-Mukherjee/ocfs2-fix-build-warning/20160202-144936
config: i386-randconfig-x0-02140608 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   fs/ocfs2/file.c: In function 'ocfs2_file_write_iter':
>> fs/ocfs2/file.c:2369:3: error: label 'relock' used but not defined
      goto relock;
      ^

vim +/relock +2369 fs/ocfs2/file.c

9517bac6 Mark Fasheh 2007-02-09  2363  		rw_level = -1;
9517bac6 Mark Fasheh 2007-02-09  2364  
9517bac6 Mark Fasheh 2007-02-09  2365  		direct_io = 0;
7da839c4 Al Viro     2015-04-09  2366  		iocb->ki_flags &= ~IOCB_DIRECT;
3309dd04 Al Viro     2015-04-09  2367  		iov_iter_reexpand(from, orig_count);
7da839c4 Al Viro     2015-04-09  2368  		dropped_dio = 1;
9517bac6 Mark Fasheh 2007-02-09 @2369  		goto relock;
9517bac6 Mark Fasheh 2007-02-09  2370  	}
9517bac6 Mark Fasheh 2007-02-09  2371  
a11f7e63 Mark Fasheh 2011-06-22  2372  	if (unaligned_dio) {

:::::: The code at line 2369 was first introduced by commit
:::::: 9517bac6cc7a7aa4fee63cb38a32cb6014e264c7 ocfs2: teach ocfs2_file_aio_write() about sparse files

:::::: TO: Mark Fasheh <mark.fasheh@oracle.com>
:::::: CC: Mark Fasheh <mark.fasheh@oracle.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 19962 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20160214/f102b040/attachment-0001.obj 

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

end of thread, other threads:[~2016-02-13 22:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02  6:46 [PATCH] ocfs2: fix build warning Sudip Mukherjee
2016-02-02  6:46 ` [Ocfs2-devel] " Sudip Mukherjee
2016-02-02  8:01 ` Ryan Ding
2016-02-02  8:01   ` [Ocfs2-devel] " Ryan Ding
2016-02-13 22:45 ` kbuild test robot
2016-02-13 22:45   ` [Ocfs2-devel] " kbuild test robot

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.