Linux-CIFS Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] fs: cifs: mute -Wunused-const-variable message
@ 2019-10-01  7:34 Austin Kim
  2019-10-03 18:57 ` Steve French
  0 siblings, 1 reply; 2+ messages in thread
From: Austin Kim @ 2019-10-01  7:34 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, samba-technical, linux-kernel, austindh.kim

After 'Initial git repository build' commit,
'mapping_table_ERRHRD' variable has not been used.

So 'mapping_table_ERRHRD' const variable could be removed
to mute below warning message:

   fs/cifs/netmisc.c:120:40: warning: unused variable 'mapping_table_ERRHRD' [-Wunused-const-variable]
   static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
                                           ^
Signed-off-by: Austin Kim <austindh.kim@gmail.com>
---
 fs/cifs/netmisc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c
index 49c17ee1..9b41436 100644
--- a/fs/cifs/netmisc.c
+++ b/fs/cifs/netmisc.c
@@ -117,10 +117,6 @@ static const struct smb_to_posix_error mapping_table_ERRSRV[] = {
 	{0, 0}
 };
 
-static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
-	{0, 0}
-};
-
 /*
  * Convert a string containing text IPv4 or IPv6 address to binary form.
  *
-- 
2.6.2


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

* Re: [PATCH] fs: cifs: mute -Wunused-const-variable message
  2019-10-01  7:34 [PATCH] fs: cifs: mute -Wunused-const-variable message Austin Kim
@ 2019-10-03 18:57 ` Steve French
  0 siblings, 0 replies; 2+ messages in thread
From: Steve French @ 2019-10-03 18:57 UTC (permalink / raw)
  To: Austin Kim; +Cc: Steve French, CIFS, samba-technical, LKML

merged into cifs-2.6.git for-next

On Tue, Oct 1, 2019 at 2:34 AM Austin Kim <austindh.kim@gmail.com> wrote:
>
> After 'Initial git repository build' commit,
> 'mapping_table_ERRHRD' variable has not been used.
>
> So 'mapping_table_ERRHRD' const variable could be removed
> to mute below warning message:
>
>    fs/cifs/netmisc.c:120:40: warning: unused variable 'mapping_table_ERRHRD' [-Wunused-const-variable]
>    static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
>                                            ^
> Signed-off-by: Austin Kim <austindh.kim@gmail.com>
> ---
>  fs/cifs/netmisc.c | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c
> index 49c17ee1..9b41436 100644
> --- a/fs/cifs/netmisc.c
> +++ b/fs/cifs/netmisc.c
> @@ -117,10 +117,6 @@ static const struct smb_to_posix_error mapping_table_ERRSRV[] = {
>         {0, 0}
>  };
>
> -static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
> -       {0, 0}
> -};
> -
>  /*
>   * Convert a string containing text IPv4 or IPv6 address to binary form.
>   *
> --
> 2.6.2
>


-- 
Thanks,

Steve

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01  7:34 [PATCH] fs: cifs: mute -Wunused-const-variable message Austin Kim
2019-10-03 18:57 ` Steve French

Linux-CIFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-cifs/0 linux-cifs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-cifs linux-cifs/ https://lore.kernel.org/linux-cifs \
		linux-cifs@vger.kernel.org
	public-inbox-index linux-cifs

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-cifs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git