From patchwork Sun Feb 9 13:16:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika X-Patchwork-Id: 3907231 Return-Path: X-Original-To: patchwork-ocfs2-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D5968BF540 for ; Fri, 28 Mar 2014 21:09:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1124820351 for ; Fri, 28 Mar 2014 21:09:18 +0000 (UTC) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9B56F20295 for ; Fri, 28 Mar 2014 21:09:16 +0000 (UTC) Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2SL8seg026819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 Mar 2014 21:08:55 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2SL8rAt009052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Mar 2014 21:08:53 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1WTe1F-0005m8-GX; Fri, 28 Mar 2014 14:08:53 -0700 Received: from acsinet22.oracle.com ([141.146.126.238]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1WCUFE-0007jT-Cm for ocfs2-devel@oss.oracle.com; Sun, 09 Feb 2014 05:16:24 -0800 Received: from userp1030.oracle.com (userp1030.oracle.com [156.151.31.80]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s19DGNZS015850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 9 Feb 2014 13:16:24 GMT Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by userp1030.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s19DGM6B011094 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 9 Feb 2014 13:16:23 GMT Received: by mail-pb0-f41.google.com with SMTP id up15so5166163pbc.28 for ; Sun, 09 Feb 2014 05:16:22 -0800 (PST) X-Received: by 10.66.142.107 with SMTP id rv11mr19849291pab.17.1391951782387; Sun, 09 Feb 2014 05:16:22 -0800 (PST) Received: from rashika ([14.139.82.6]) by mx.google.com with ESMTPSA id ei4sm32395901pbb.42.2014.02.09.05.16.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Feb 2014 05:16:21 -0800 (PST) Date: Sun, 9 Feb 2014 18:46:18 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Message-ID: <4c4a91b6cb44627906572e2beae874160a470362.1391949868.git.rashika.kheria@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Flow-Control-Info: class=Pass-to-MM reputation=ipRisk-All ip=209.85.160.41 ct-class=R6 ct-vol1=0 ct-vol2=0 ct-vol3=0 ct-risk=68 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=1003 X-SPF-Info: PASS::mail-pb0-f41.google.com X-Sendmail-CM-Score: 0.00% X-Sendmail-CM-Analysis: v=2.1 cv=ObChUHjY c=1 sm=1 tr=0 a=22PG9Ao7GlDTuLq5GrD6FA==:117 a=SDMMtvp4B/FKrdQZK/wTsw==:17 a=LcaDllckn3IA:10 a=5CiyFt-e5OwA:10 a=nDghuxUhq_wA:10 a=OLECittir5EA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=1XWaLZrsAAAA:8 a=1w3GORET_ZEA:10 a= UPm3pfgAAAAA:8 a=A8FsTC_0IxZUJ7ZEJ1cA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=mOio7EKfaG4A:10 X-Sendmail-CT-Classification: not spam X-Sendmail-CT-RefID: str=0001.0A090203.52F77FA7.0056, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-MIME-Autoconverted: from 8bit to quoted-printable by acsinet22.oracle.com id s19DGNZS015850 X-Mailman-Approved-At: Fri, 28 Mar 2014 14:08:49 -0700 Cc: Mark Fasheh , ocfs2-devel@oss.oracle.com, josh@joshtriplett.org Subject: [Ocfs2-devel] [PATCH 15/21] fs: Mark function as static in ocfs2/xattr.c X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mark functions as static in ocfs2/xattr.c because it is not used outside this file. This eliminates the following warning in ocfs2/xattr.c: fs/ocfs2/xattr.c:7256:5: warning: no previous prototype for ‘ocfs2_initxattrs’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- fs/ocfs2/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 185fa3b7..7041df5 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -7256,8 +7256,8 @@ static int ocfs2_xattr_security_set(struct dentry *dentry, const char *name, name, value, size, flags); } -int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, - void *fs_info) +static int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, + void *fs_info) { const struct xattr *xattr; int err = 0;