Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp200635ybp; Thu, 3 Oct 2019 12:14:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb0hN0Q4huaLnNtuaYAdlaRZBG+RvZtiPBmvgHlIAY4jpZWTSo6KcgMbCU5Qqh/KP/PCiz X-Received: by 2002:a17:906:6d53:: with SMTP id a19mr1531229ejt.332.1570130053473; Thu, 03 Oct 2019 12:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570130053; cv=none; d=google.com; s=arc-20160816; b=dPe+7JZLCsK55LRbD1Jf1SVxpJTPLvJz8NXo9jpV0viMGQ8a12GoBSpu8Poedcxt7O cKGTiMU03QiEBn2iLGtNvc+N0EH+Jid4noTmrIVab+Qyg31uPa95YBRZO+GriTMX987p h88JvReqDvBMbYs6SAhKJSB215H/zot1BJhIf6mZiM6Hnb8Np0dt7p+STqwCvD06m7Oz +pm7mSyRbW9knvfHGdX9HUyTyMuMzEETqq4seVEdCxFltlI9zL7YTLUxK7H/D1cZA/TR Azl5Dk7O/64qbLxlo2i8rxUZ1ZRBbXz49LJvURmPNq6tUlCgUUqEAhxmqbbfFixLrkOe zZWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aa6r931Rjp1NE7cgnIGCkHLvHKb0A2CYSfJ4m7AK8VA=; b=fJ3xqAFL70Lrm8kA8cP7K201GXQUJ3sFhuKJUD9o/3etH2rt/OrhqpXZ8KTFVM1DTa YA6b1HLxZwwn9JCSkfyAihzxqdYTFtng+xaNG6pa6cHNFEP8Mq3rrw5O6ypxEESvEwxi fb+8JZxCSzAuc8q1oEkzwEHQCJbIq1vwmnmKWatamvW9vlaL5/05BBoxR/XKJShSNeh1 Vm1sfF3+0seF174/srQU8FjsufFmtarQ91r6lJl4i6FpBtVz6yJErYULURteSooMVg7c rY/4KORDNuHIbe347/V9iKiJWrxQcTB5rnT2Ci61R6wnDpXy3YxCuhL1zFzsAXLqTyWE 4yzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O7PPsQ4z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ot6si1781810ejb.62.2019.10.03.12.13.49; Thu, 03 Oct 2019 12:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O7PPsQ4z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731705AbfJCS5m (ORCPT + 99 others); Thu, 3 Oct 2019 14:57:42 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35608 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729355AbfJCS5m (ORCPT ); Thu, 3 Oct 2019 14:57:42 -0400 Received: by mail-io1-f68.google.com with SMTP id q10so8101962iop.2; Thu, 03 Oct 2019 11:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aa6r931Rjp1NE7cgnIGCkHLvHKb0A2CYSfJ4m7AK8VA=; b=O7PPsQ4zo2sfTl6NOOpE5XsVzE5RNltNIJ3BWIjoP92YjkqCBcz4qI/eBObiEFXHxG KRCWmXU5E6KeddHOB8UC3E5e2kPXWnfMhDspqFWqDTx4jTXTKFnfflDpMxlSj8QQ1ljS fmuw1vNpa3Srq0SIWXs3Yi8+CZ2o1gSYFOzL3TWpH9CYIiygn++HYMB4hX9sctCfrbeo ATuEaJcaYLvYIjB/e6/PErOcfUZWKWlgQTRbvjxOQIFhwAhCJj5WwHA7nqs0A2i372Ra 1nwpkJ3rEVH8ssU/VgHToN77qu95pjftoLb/trkIUAcWvXG3cECeieEVc2QRbCNL+uR/ qKgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aa6r931Rjp1NE7cgnIGCkHLvHKb0A2CYSfJ4m7AK8VA=; b=JNBm0G4oj6/+NQ4FoSknnwoZYj3/trQ5BoY91o6CSf22ajjNNv7KN7jRSG+Cj0tVwW A8C4IXl/QAtkMHfLXjAFpbGRw/GgWzpsCr515jsZ0cJ2Sul8KuX6YclYfr7YUy9u9Ln0 V3Wwjm2EnNgQN2damUB8Z5I+rMLUM7Rho9CHpqqhRvco8wg9zfrwjcQrlxGweLKTXLcF 4bJ0v/00rlBb+JcsqUXYH54hpyu0ggmpNJJusxksSSLxWBp2JvKbIQ//jhmdi0JnZ4WS fnD9S0d3SfvTNQk/5INLOw+sF7QH1djJaGBUUEoT+93lhApQEUe1OYG0qPoLUnDORzA0 NYTQ== X-Gm-Message-State: APjAAAXZp2PF22JgOfnvlpct3c3eo1Dsm0Qpweq+x6oOg/g6eeSpBbS5 RC1tU7mVs2dtwHqbFnN38cquOoQWtTkvQtFomzI= X-Received: by 2002:a92:1657:: with SMTP id r84mr10980876ill.5.1570129060851; Thu, 03 Oct 2019 11:57:40 -0700 (PDT) MIME-Version: 1.0 References: <20191001073413.GA51148@LGEARND20B15> In-Reply-To: <20191001073413.GA51148@LGEARND20B15> From: Steve French Date: Thu, 3 Oct 2019 13:57:29 -0500 Message-ID: Subject: Re: [PATCH] fs: cifs: mute -Wunused-const-variable message To: Austin Kim Cc: Steve French , CIFS , samba-technical , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org merged into cifs-2.6.git for-next On Tue, Oct 1, 2019 at 2:34 AM Austin Kim 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 > --- > 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