From patchwork Tue Sep 26 07:14:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9971255 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69EBE60365 for ; Tue, 26 Sep 2017 07:16:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C6D828D90 for ; Tue, 26 Sep 2017 07:16:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5147528EAD; Tue, 26 Sep 2017 07:16:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0116728D90 for ; Tue, 26 Sep 2017 07:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966779AbdIZHQX (ORCPT ); Tue, 26 Sep 2017 03:16:23 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34725 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966725AbdIZHQT (ORCPT ); Tue, 26 Sep 2017 03:16:19 -0400 Received: by mail-wm0-f65.google.com with SMTP id i131so8576153wma.1; Tue, 26 Sep 2017 00:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WyTAeIJn3vQYbVC+udiZYWPiDFSO7bj5h9marWQm3tI=; b=tHZIL3XS2Fiw1EpWQ2KQlgS77Q/mWeNSSAODx7DFUoTXXFo+9EIU4gJzRgBy7+OwdF aYAGjwsg+1YibupKtxI2/R34fbMASQRtWCbK7fkmf3it8Ydf4MwStb1z3Mr7NN2Lm1ep 9Aspw8dUXRgAY2lV1NSWGniWkLZGfjsVuy37QB13AUJhCEYjfPM1uynKhAYfx/5O3050 7WVC0vz31fsyeKOgsfs3JEMaJHy2UFsInaOs/Oz6Oj6MZ76nTRv+ZodUOqJGUkhnlH/j bAXEFsr413gYTBViyfF8qDBUSh25CAIy1KF6a8UXcUckGka/8oS7kbaIn7bWJsR9YZmv TNlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WyTAeIJn3vQYbVC+udiZYWPiDFSO7bj5h9marWQm3tI=; b=dKh9UC0Yv6BE3AvrDMcv+hV3BTnU/wLQ2PzZRFCCCPzPlykZE7/+5++WYJNwR9DGCe ejOYRPM0bq9M/scGkcvCi1nHBRBWwidruoJTWHN38rohECDBk8kOlQl4u3cw4jgXJftN KSqAyrPlSdwkk4q9FgSghFd3P0/iCHoIOkw6AbT3hyaJghK8XeNEIVMy3TMI4+bVL7QN +qrPUtrL/KMvYsJkFdtzbZpkCN8aw2POfBtiSk0VIgs+Cei04OElraU719NpqH5i/adm FyHbJzovimo7o66WbsfHNca732b2w7AKD8p3fSBKcwGNjD2MA8Hno421WFwMMCjo8Yi8 tnzw== X-Gm-Message-State: AHPjjUi2lbOiV+VnNmVzwERzD+N3IHQHiqhhPnIDj5MTpFLR40eTu86g T9SGHRJlOMhCKYzCRKN/MWA= X-Google-Smtp-Source: AOwi7QBVWk8N8RKtNSllAYdCvtrBKZh6U08jEcwQXDSbt+VyWnBTCrJq1M4jQsUUijxNnSw8cBv2BA== X-Received: by 10.28.129.23 with SMTP id c23mr2580548wmd.27.1506410177753; Tue, 26 Sep 2017 00:16:17 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id l91sm11640031wrc.16.2017.09.26.00.16.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Sep 2017 00:16:17 -0700 (PDT) From: Corentin Labbe To: trond.myklebust@primarydata.com, anna.schumaker@netapp.com, bfields@fieldses.org, jlayton@poochiereds.net, viro@zeniv.linux.org.uk Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Corentin Labbe Subject: [PATCH 1/3] nfs_common: fix build warning in grace.c Date: Tue, 26 Sep 2017 09:14:05 +0200 Message-Id: <20170926071407.31719-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170926071407.31719-1-clabbe.montjoie@gmail.com> References: <20170926071407.31719-1-clabbe.montjoie@gmail.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This fix the following warning fs/nfs_common/grace.c:66:1: warning: no previous prototype for function '__state_in_grace' [-Wmissing-prototypes] by adding the missing static. Signed-off-by: Corentin Labbe --- fs/nfs_common/grace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs_common/grace.c b/fs/nfs_common/grace.c index 420d3a0ab258..519396967e79 100644 --- a/fs/nfs_common/grace.c +++ b/fs/nfs_common/grace.c @@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(locks_end_grace); * to answer ordinary lock requests, and when they should accept only * lock reclaims. */ -int +static int __state_in_grace(struct net *net, bool open) { struct list_head *grace_list = net_generic(net, grace_net_id);