Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp880609ybg; Fri, 18 Oct 2019 08:43:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLhpRLYEHCUQRO6nrmgbB/aKWXHJhj4MF1M72u15+/cwxXXGak1vBY6NQmS/DBmS+ey0vl X-Received: by 2002:a05:6402:1694:: with SMTP id a20mr10429401edv.277.1571413410952; Fri, 18 Oct 2019 08:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413410; cv=none; d=google.com; s=arc-20160816; b=ubzN5Ot0zuag8MJDw7m+omtmXBjYidBF0J2vYar1Lg6lvkLIaDNtOKvWfsp9BDyqvN 9lQbok6mKpGYrveQ2l7PSTa7Xf0y8xpK3pjdo/MXoUmnLsRHK5EdEh9AKcBbHs0JuDft fKH008d5VIwDYEarRxLaZgmNlOpHQcG0buX0gQIcHQsgHZ4tN9Es/KVZhv+iwPeQOaUs UZKYdcCDnfse+J2f+bUgR1Cey2/ASrBWPzX1C5rCQmywIw2xTMxiSws/uibd1NiPiVSI Lg9ylntYvdEZout1FIYvPKOSmLBheKyaCNeJfpsl6LuAa6oCZ9QhGL/R50hmamQb0AH6 8OJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Jhnps6Z9XVBDbnlP8sCzAi+gRE+oj9enuCi4RFs5lVM=; b=CPpUs5v2QA6fRrhgh2wFeKrjGiergd+nCySfmyQEaLx9f0hfYi5dCSwgTSM/9uABdH jhNn6p97WuW0GkP9iL0t2qQPduzEL3sgayyN5de2wBIiJMiVGOapWS5XLfkVrIEySrTL 4bteyRdvG1Aj0Akv73JyLJA0/oYjy8LKA0KHt8hWmz3ZlwrlcRkziM61yXv7yRMFaP0P gBdPzVkBB1X4o7GVDO9vSL1eOMCR8Ul2JVK1RUBSuoWXXKqGVDjOlCYU/uPDLOwusiNo ptgQbOkdoBBiaxAa0TnS1eTTkdz0SBprGsvUnVTounbySXtqMg/wcMhuV+545b3uWGxk b2MQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si4054943ede.255.2019.10.18.08.43.07; Fri, 18 Oct 2019 08:43:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405847AbfJQLlk (ORCPT + 99 others); Thu, 17 Oct 2019 07:41:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39108 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbfJQLlk (ORCPT ); Thu, 17 Oct 2019 07:41:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 08E917FD45; Thu, 17 Oct 2019 11:41:40 +0000 (UTC) Received: from [10.33.36.109] (unknown [10.33.36.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 26F875C1D8; Thu, 17 Oct 2019 11:41:35 +0000 (UTC) Subject: Re: [Cluster-devel] [PATCH] gfs2: make gfs2_fs_parameters static To: "Ben Dooks (Codethink)" Cc: linux-kernel@lists.codethink.co.uk, cluster-devel@redhat.com, linux-kernel@vger.kernel.org References: <20191017110225.30841-1-ben.dooks@codethink.co.uk> From: Andrew Price Message-ID: <25bb4857-950e-592a-b2ba-7730867742b3@redhat.com> Date: Thu, 17 Oct 2019 12:41:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191017110225.30841-1-ben.dooks@codethink.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 17 Oct 2019 11:41:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/10/2019 12:02, Ben Dooks (Codethink) wrote: > The gfs2_fs_parameters is not used outside the unit > it is declared in, so make it static. > > Fixes the following sparse warning: > > fs/gfs2/ops_fstype.c:1331:39: warning: symbol 'gfs2_fs_parameters' was not declared. Should it be static? > > Signed-off-by: Ben Dooks > --- > Cc: Bob Peterson > Cc: Andreas Gruenbacher > Cc: cluster-devel@redhat.com > Cc: linux-kernel@vger.kernel.org > --- > fs/gfs2/ops_fstype.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c > index 681b44682b0d..ebdef1c5f580 100644 > --- a/fs/gfs2/ops_fstype.c > +++ b/fs/gfs2/ops_fstype.c > @@ -1328,7 +1328,7 @@ static const struct fs_parameter_enum gfs2_param_enums[] = { > {} > }; > > -const struct fs_parameter_description gfs2_fs_parameters = { > +static const struct fs_parameter_description gfs2_fs_parameters = { > .name = "gfs2", > .specs = gfs2_param_specs, > .enums = gfs2_param_enums, > Looks good to me. Thanks, Andy