From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q28LY3b0087868 for ; Thu, 8 Mar 2012 15:34:03 -0600 Date: Thu, 8 Mar 2012 15:34:10 -0600 From: Ben Myers Subject: Re: [PATCH 01/10] xfs: clean up minor sparse warnings Message-ID: <20120308213410.GZ7762@sgi.com> References: <1331095828-28742-1-git-send-email-david@fromorbit.com> <1331095828-28742-2-git-send-email-david@fromorbit.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1331095828-28742-2-git-send-email-david@fromorbit.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com On Wed, Mar 07, 2012 at 03:50:19PM +1100, Dave Chinner wrote: > From: Dave Chinner > > Signed-off-by: Dave Chinner > Reviewed-by: Christoph Hellwig > Reviewed-by: Ben Myers ... > diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c > index ab30253..2601d6b 100644 > --- a/fs/xfs/xfs_iops.c > +++ b/fs/xfs/xfs_iops.c > @@ -103,12 +103,15 @@ xfs_mark_inode_dirty( > } > > > -int xfs_initxattrs(struct inode *inode, const struct xattr *xattr_array, > - void *fs_info) > +static int > +xfs_initxattrs( > + struct inode *inode, > + const struct xattr *xattr_array, > + void *fs_info) > { > - const struct xattr *xattr; > - struct xfs_inode *ip = XFS_I(inode); > - int error = 0; > + const struct xattr *xattr; > + struct xfs_inode *ip = XFS_I(inode); > + int error = 0; I didn't see a sparse warning which this fixes... FWICS all you've done here is make it static and fix the formatting. This still looks good.. ;) _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs