* [PATCH -next] afs: remove unused variable 'afs_zero_fid'
@ 2019-08-09 8:42 YueHaibing
2019-08-09 17:36 ` Jeffrey E Altman
0 siblings, 1 reply; 3+ messages in thread
From: YueHaibing @ 2019-08-09 8:42 UTC (permalink / raw)
To: dhowells; +Cc: linux-kernel, linux-afs, YueHaibing
fs/afs/fsclient.c:18:29: warning:
afs_zero_fid defined but not used [-Wunused-const-variable=]
It is never used since commit 025db80c9e42 ("afs: Trace
the initiation and completion of client calls")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
fs/afs/fsclient.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
index 114f281..67af068 100644
--- a/fs/afs/fsclient.c
+++ b/fs/afs/fsclient.c
@@ -15,8 +15,6 @@
#include "xdr_fs.h"
#include "protocol_yfs.h"
-static const struct afs_fid afs_zero_fid;
-
static inline void afs_use_fs_server(struct afs_call *call, struct afs_cb_interest *cbi)
{
call->cbi = afs_get_cb_interest(cbi);
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] afs: remove unused variable 'afs_zero_fid'
2019-08-09 8:42 [PATCH -next] afs: remove unused variable 'afs_zero_fid' YueHaibing
@ 2019-08-09 17:36 ` Jeffrey E Altman
0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey E Altman @ 2019-08-09 17:36 UTC (permalink / raw)
To: YueHaibing, dhowells; +Cc: linux-kernel, linux-afs
[-- Attachment #1.1: Type: text/plain, Size: 867 bytes --]
Confirmed.
On 8/9/2019 4:42 AM, YueHaibing wrote:
> fs/afs/fsclient.c:18:29: warning:
> afs_zero_fid defined but not used [-Wunused-const-variable=]
>
> It is never used since commit 025db80c9e42 ("afs: Trace
> the initiation and completion of client calls")
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> fs/afs/fsclient.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
> index 114f281..67af068 100644
> --- a/fs/afs/fsclient.c
> +++ b/fs/afs/fsclient.c
> @@ -15,8 +15,6 @@
> #include "xdr_fs.h"
> #include "protocol_yfs.h"
>
> -static const struct afs_fid afs_zero_fid;
> -
> static inline void afs_use_fs_server(struct afs_call *call, struct afs_cb_interest *cbi)
> {
> call->cbi = afs_get_cb_interest(cbi);
>
[-- Attachment #1.2: jaltman.vcf --]
[-- Type: text/x-vcard, Size: 283 bytes --]
begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:AuriStor, Inc.
adr:;;255 W 94TH ST STE 6B;New York;NY;10025-6985;United States
email;internet:jaltman@auristor.com
title:CEO
tel;work:+1-212-769-9018
url:https://www.linkedin.com/in/jeffreyaltman/
version:2.1
end:vcard
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4033 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH -next] afs: remove unused variable 'afs_zero_fid'
@ 2019-10-23 13:54 YueHaibing
0 siblings, 0 replies; 3+ messages in thread
From: YueHaibing @ 2019-10-23 13:54 UTC (permalink / raw)
To: dhowells; +Cc: linux-afs, linux-kernel, pmladek, sergey.senozhatsky, YueHaibing
fs/afs/fsclient.c:18:29: warning:
afs_zero_fid defined but not used [-Wunused-const-variable=]
It is never used since commit 025db80c9e42 ("afs: Trace
the initiation and completion of client calls")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
fs/afs/yfsclient.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/afs/yfsclient.c b/fs/afs/yfsclient.c
index 9ac035c..46c679e 100644
--- a/fs/afs/yfsclient.c
+++ b/fs/afs/yfsclient.c
@@ -15,8 +15,6 @@
#include "xdr_fs.h"
#include "protocol_yfs.h"
-static const struct afs_fid afs_zero_fid;
-
static inline void afs_use_fs_server(struct afs_call *call, struct afs_cb_interest *cbi)
{
call->cbi = afs_get_cb_interest(cbi);
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-23 13:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09 8:42 [PATCH -next] afs: remove unused variable 'afs_zero_fid' YueHaibing
2019-08-09 17:36 ` Jeffrey E Altman
2019-10-23 13:54 YueHaibing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).