From patchwork Thu Feb 21 18:10:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu-Mihai Popescu X-Patchwork-Id: 222389 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D89682C02A7 for ; Fri, 22 Feb 2013 05:11:04 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755849Ab3BUSKT (ORCPT ); Thu, 21 Feb 2013 13:10:19 -0500 Received: from mail-ee0-f47.google.com ([74.125.83.47]:49402 "EHLO mail-ee0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754947Ab3BUSKQ (ORCPT ); Thu, 21 Feb 2013 13:10:16 -0500 Received: by mail-ee0-f47.google.com with SMTP id e52so4703725eek.20 for ; Thu, 21 Feb 2013 10:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=JBXJGoQso+UOkTudgfdf/8FFetKjFeKt85ioSopuAqI=; b=FwCQjCAOnQ/dsiLCJowuY8wxY6kKj0OlYcpgkINRH29tD56eBRLA/mdVFdCHsryUOZ ZKig6lG0lPPBY/4jxX3LtWnX6T7L8Vfm+hGSf6O9OTfScx3E3JD8HafqvOu4bZrnNJXN 47DFWWkNKPu+8wfFgfCvvcddj5s3yxdiN5mzl7vKiku73gNARNpB3onej7I28S7Sz6yl 3s6FTBk5tZWOM5Wu7LIe3u1dN88OSG197WRnXsprDUZGrCWBFyJNS/NOfm3q9Wa+0/nK AlDLGcYr78VPwWVYwHAFZSyYPknRozjp284bDDJb6xY5TzW59DIHVqOyd2qfmkIwe5Ie Ap1A== X-Received: by 10.14.204.3 with SMTP id g3mr83391096eeo.27.1361470215038; Thu, 21 Feb 2013 10:10:15 -0800 (PST) Received: from localhost.localdomain (p5.eregie.pub.ro. [141.85.0.105]) by mx.google.com with ESMTPS id t4sm116376470eel.0.2013.02.21.10.10.13 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Feb 2013 10:10:14 -0800 (PST) From: Silviu-Mihai Popescu To: netdev@vger.kernel.org Cc: Trond.Myklebust@netapp.com, bfields@fieldses.org, davem@davemloft.net, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sunrpc/auth_gss: fix sparse warnings for gss_mech_switch Date: Thu, 21 Feb 2013 20:10:06 +0200 Message-Id: <1361470206-24116-1-git-send-email-silviupopescu1990@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This fixes the following sparse warnings: * net/sunrpc/auth_gss/gss_mech_switch.c:143:21: warning: symbol '_gss_mech_get_by_name' was not declared. Should it be static? * net/sunrpc/auth_gss/gss_mech_switch.c:208:21: warning: symbol '_gss_mech_get_by_pseudoflavor' was not declared. Should it be static? Signed-off-by: Silviu-Mihai Popescu --- net/sunrpc/auth_gss/gss_mech_switch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c b/net/sunrpc/auth_gss/gss_mech_switch.c index b174fcd..f0f4eee 100644 --- a/net/sunrpc/auth_gss/gss_mech_switch.c +++ b/net/sunrpc/auth_gss/gss_mech_switch.c @@ -140,7 +140,7 @@ gss_mech_get(struct gss_api_mech *gm) EXPORT_SYMBOL_GPL(gss_mech_get); -struct gss_api_mech * +static struct gss_api_mech * _gss_mech_get_by_name(const char *name) { struct gss_api_mech *pos, *gm = NULL; @@ -205,7 +205,7 @@ mech_supports_pseudoflavor(struct gss_api_mech *gm, u32 pseudoflavor) return 0; } -struct gss_api_mech *_gss_mech_get_by_pseudoflavor(u32 pseudoflavor) +static struct gss_api_mech *_gss_mech_get_by_pseudoflavor(u32 pseudoflavor) { struct gss_api_mech *gm = NULL, *pos;