From patchwork Sun Feb 9 13:09:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika Kheria X-Patchwork-Id: 318600 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 224D32C0096 for ; Mon, 10 Feb 2014 00:09:31 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbaBINJR (ORCPT ); Sun, 9 Feb 2014 08:09:17 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:53144 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbaBINJQ (ORCPT ); Sun, 9 Feb 2014 08:09:16 -0500 Received: by mail-pd0-f177.google.com with SMTP id x10so4983464pdj.22 for ; Sun, 09 Feb 2014 05:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Be6xFDf7cRl0BQn4rpAoISOj72si6IABbNGDcjHozWs=; b=i0+dhvz8paCzgQVoyKF49v+C13Ml6odSJfgxvqYTX6Z1RIko4imRa9Rg51W4CIorkl zIKn7JWMY8CJMTYPAeLadUvDut7GUK+yn/VsWyrhBnAqlEC7fIvLgCpoYbHGNdd/rJcA Au3JObfQhkj2nU9OgbXuqZS24Yr5pvrNi9bT1RjkDv8d/hZ3Rg2Ka3O0r5Q8t+NnSeT7 obQGib9YcaeVRd4+1KIkge8JdmP+v24o9iBad3ardIAtJWYHwPsDO+5pEyVzgDkDyzyE jYBVHuxLt8CRHhrqGlMre+WPoG2jiSJZ3TFGWegFBHcXWIfyRcvzdi7DizA+Q2P6F0ee MGIA== X-Received: by 10.66.49.74 with SMTP id s10mr19834253pan.0.1391951355626; Sun, 09 Feb 2014 05:09:15 -0800 (PST) Received: from rashika ([14.139.82.6]) by mx.google.com with ESMTPSA id ei4sm32347837pbb.42.2014.02.09.05.09.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Feb 2014 05:09:14 -0800 (PST) Date: Sun, 9 Feb 2014 18:39:11 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Jan Kara , Andrew Morton , Andreas Dilger , linux-ext4@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH 09/21] fs: Mark function as static in ext3/xattr_security.c Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Mark function as static in ext3/xattr_security.c because it is not used outside this file. This eliminates the following warning in ext3/xattr_security.c: fs/ext3/xattr_security.c:46:5: warning: no previous prototype for ‘ext3_initxattrs’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- fs/ext3/xattr_security.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/ext3/xattr_security.c b/fs/ext3/xattr_security.c index 3387664..722c2bf 100644 --- a/fs/ext3/xattr_security.c +++ b/fs/ext3/xattr_security.c @@ -43,8 +43,9 @@ ext3_xattr_security_set(struct dentry *dentry, const char *name, name, value, size, flags); } -int ext3_initxattrs(struct inode *inode, const struct xattr *xattr_array, - void *fs_info) +static int ext3_initxattrs(struct inode *inode, + const struct xattr *xattr_array, + void *fs_info) { const struct xattr *xattr; handle_t *handle = fs_info;