From patchwork Thu Jan 12 15:38:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9513451 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 95E1860710 for ; Thu, 12 Jan 2017 15:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8734523B23 for ; Thu, 12 Jan 2017 15:38:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B7D628650; Thu, 12 Jan 2017 15:38:43 +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 4853D23B23 for ; Thu, 12 Jan 2017 15:38:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750730AbdALPil (ORCPT ); Thu, 12 Jan 2017 10:38:41 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35516 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750731AbdALPik (ORCPT ); Thu, 12 Jan 2017 10:38:40 -0500 Received: by mail-pf0-f196.google.com with SMTP id f144so4025696pfa.2 for ; Thu, 12 Jan 2017 07:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x1OKEUiOW8ZiYIQGhzfmC5QqF1ujXSw1xI8ylvDeUTw=; b=EXXvYWWMe3BZ8/MjTg2OmS3qarI0IxLxXc0AyUbaE7i0mBgGF3Rj6p7ix451OUSwZ9 ImlhJGC3lJGYaklo69iNzyP2YTGbLhgR3UILQdRRyOwEVEEzZJ6JtRAaEEbwu6a9qi5W NCXUTE/Pfi77TEyPuZVLfSuZWKdUUryyoSkCRivCo2f8zEAYJaQWbPXOzD2DmDbbzBxY LGp97r1zHgp2nhk6semdQ/V9cVG33zTDpCyl7Z63+4jAgrU0W+FfWVQTkI4WazSTgLGh sAHQgFBw/3mHDOq/N7euR9kMORaK/N1lVKrXAtYTnWx200qLaVwlvDBxjcXF9o8yO2Mp xyvw== 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:mime-version :content-transfer-encoding; bh=x1OKEUiOW8ZiYIQGhzfmC5QqF1ujXSw1xI8ylvDeUTw=; b=JTs39F3+W4yvYqYKrZgoFgRgpo8UkZsehSIox1VDxHyqCFNrvHkqYPCeaHIKlQETxL DsP204P9RcFb142lDqlVUug0o5a9vAVHNZ86uEXhgPvk+/7Kp1z2BY1Pa4INMtpmf7EB EcD+gShnhJJNcrB38/Tyqy5n6nyImV/d96bVZIDIuKUhZvrSbE8oV+N5kcbkIitEGSlx /zvvcaL2s4jBKX2pmid+TgHomMBzBHLF0OTTNLzeSoZsPLg0TZcWS9fMU8vqccMcn5sZ 6SnMO+trTEPqakGAVk+NfaW8hEVyR5hji7w8ogLADGdQbmn4xpENglQfb8GJCnQP5nCb eccA== X-Gm-Message-State: AIkVDXIBS2S+8lt1bBURo6NpgXizBMOHBu7dtad56By9Z+KWKZgCsGM+LQ1mLVRG34cfhw== X-Received: by 10.99.139.76 with SMTP id j73mr18325600pge.23.1484235491725; Thu, 12 Jan 2017 07:38:11 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id l63sm22605225pfl.83.2017.01.12.07.38.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 07:38:11 -0800 (PST) From: Wei Yongjun To: Trond Myklebust , Anna Schumaker , Jeff Layton , Tom Haynes , Peng Tao Cc: Wei Yongjun , linux-nfs@vger.kernel.org Subject: [PATCH -next] pNFS/flexfiles: Make local symbol layoutreturn_ops static Date: Thu, 12 Jan 2017 15:38:06 +0000 Message-Id: <20170112153806.27741-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 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 From: Wei Yongjun Fixes the following sparse warning: fs/nfs/flexfilelayout/flexfilelayout.c:2114:34: warning: symbol 'layoutreturn_ops' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- fs/nfs/flexfilelayout/flexfilelayout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index ca1012a..5f0747c 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c @@ -2111,7 +2111,7 @@ ff_layout_free_layoutreturn(struct nfs4_xdr_opaque_data *args) kfree(ff_args); } -const struct nfs4_xdr_opaque_ops layoutreturn_ops = { +static const struct nfs4_xdr_opaque_ops layoutreturn_ops = { .encode = ff_layout_encode_layoutreturn, .free = ff_layout_free_layoutreturn, };