Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7961363ybn; Tue, 1 Oct 2019 00:35:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjsb0uzR35NAHc/7cSR/Zws7qyYb8jUF6SzjJlN7dkdtRyXi/sXjOqF9tFW0d4nax7Ue6X X-Received: by 2002:a17:906:d185:: with SMTP id c5mr22889378ejz.139.1569915311348; Tue, 01 Oct 2019 00:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569915311; cv=none; d=google.com; s=arc-20160816; b=w0uZIj9prOHnPD3Dwr8jOnqCYtwXBIVQy/Uvef+nw9VgzqryNIAlZ3IZeMbChO/4Pq uFcCoCNIYBW2PXtRddQDxgV26OD1aoUw96I+QvfdLvFV5rE36R7XPZlJSmkH6rbrrLVx oWX1rcm7t+4X1VGNPiqXXel7XD1AAOJ8tDxsEWxk4czEdhcAEp2VCi/ZTHOd9o1M9h90 jY7tkaQnjvdkzx3RrZ0A4EvtFTWiJGL8wkX2NpT3KTu+cF7ycOkavZY38xEOxL5sXELM 7nXJ+X0uz2QgCGYaPJfBv4RK8/QsStw+f0sW+BMzhZlkAJno4ZjTTR/3+IrtJBziPLtd 8inw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=ot/IGJhnaWxZvW9P2a340WNpW/yOACBbfoIURXC6g8I=; b=UtlFcn2iXZzR3K8ufCcmwd4YM4GGKYp5rapfV8crLe1E4/nLa/CZl1k2EeqCaax5sG MF64Qvks0joPZui8S3vVSxPgzk0E85bhO+hD8z9X56TxDE8q4yLzINuSiWKyFl3Gl3O4 zAAdMkYPZ1uUwCj1EnpKvMsA7j/IydS6mrFP9Tb3Jl7DBSkzwRjndUMkccX3Q0x6UpPU XhYjx6kDJxUu0SsHK1ibh4fn4anBsa0pjkyPKPKwg8sRQtN2ArRtCvtbug/4jZaMt4fB tI0vXhQn50GfJYMtwuRHIokZ21F8Vtbgw/KJBCLXqpzdj3sMPekGqXOhhrzNcuSCahF3 vzFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LLu0cSA+; 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 j3si9861744edj.448.2019.10.01.00.34.46; Tue, 01 Oct 2019 00:35:11 -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=LLu0cSA+; 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 S1733002AbfJAHeT (ORCPT + 99 others); Tue, 1 Oct 2019 03:34:19 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44279 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730309AbfJAHeT (ORCPT ); Tue, 1 Oct 2019 03:34:19 -0400 Received: by mail-pg1-f196.google.com with SMTP id i14so8967018pgt.11; Tue, 01 Oct 2019 00:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=ot/IGJhnaWxZvW9P2a340WNpW/yOACBbfoIURXC6g8I=; b=LLu0cSA+h6aDXfWGDV/crkX8ECQiZvi5lMd1c7CMaaQ/9FyqSo9nFRmJyz9l6jQp60 V0R73T2ZQfQ7YkVQ105OcOZ5B9DzugkqKX9vH3FlP1AwH7AcJsE0rXm0yc0WvLF6jqO7 nFIZAunvbZH2vsH5Qbc8rX2BZFYmwvJOT0QjexAG2353Qn+dm2TX0FL5G981lQYaZZtv c/ykKDwMhGyuZzKeL2WaLEnqp4Uwbv1Iqk2ugTzN7M7GR5U6C24cJkrzn5BKJnUA+guo WX/cfSCBcTQZBXwDshuV2jrP997QvPwx3ZkxY+NX1Tua5VLwgZX7/uM5Wgf8YA1njkWk oNZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=ot/IGJhnaWxZvW9P2a340WNpW/yOACBbfoIURXC6g8I=; b=HvLEHMKHUdrThkwaXqN65i9oGzcGe69wkdhj0uQCQnE/sBEjuGkwg1jSQIkeQ/vBK+ yh4dTN7h2HlONXrAkZSEn4amCIMNup6t32hFhNulrPi+YRA3G5lXWpm1WSJBauDDGklg IkwqdF7iHP7UGbnHsmJ9I1VJhd1Ws2Y726+EuAmxcOYh6lSFDu6yvcEwQ1sigkVeltBL 4rKkgV/uzHDPYaFZGAXbw1roR80Pqd2V8j3sBQf0ZieYeqYP76WcNK+cFsbpT7cPJFyX POPGmanvS4HNnW8hoxbZ/nLXHT2TEKZ+Pl7bZPG1wMz5ysFwjdPkhn3JeCSWh3tGZc4l YYzA== X-Gm-Message-State: APjAAAWq6cO/ewkj85HJYuAKkKfWqH1peyiz+MUfGzh8l0SDEs0FwJmz GGCZVmaGZVKt5/163glgaHdRNJVFbtk= X-Received: by 2002:a62:4d45:: with SMTP id a66mr26442682pfb.24.1569915258432; Tue, 01 Oct 2019 00:34:18 -0700 (PDT) Received: from LGEARND20B15 ([27.122.242.75]) by smtp.gmail.com with ESMTPSA id u3sm13522535pfn.134.2019.10.01.00.34.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Oct 2019 00:34:17 -0700 (PDT) Date: Tue, 1 Oct 2019 16:34:13 +0900 From: Austin Kim To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, austindh.kim@gmail.com Subject: [PATCH] fs: cifs: mute -Wunused-const-variable message Message-ID: <20191001073413.GA51148@LGEARND20B15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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