Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760280AbZJMPjI (ORCPT ); Tue, 13 Oct 2009 11:39:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755147AbZJMPjH (ORCPT ); Tue, 13 Oct 2009 11:39:07 -0400 Received: from msux-gh1-uea01.nsa.gov ([63.239.67.1]:47758 "EHLO msux-gh1-uea01.nsa.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753854AbZJMPjG (ORCPT ); Tue, 13 Oct 2009 11:39:06 -0400 X-Greylist: delayed 3456 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Oct 2009 11:39:06 EDT Subject: Re: [PATCH] sysfs: mark a locally-only used function static From: "David P. Quigley" To: Stefan Richter Cc: James Morris , "Stephen D. Smalley" , linux-kernel@vger.kernel.org, greg@kroah.com In-Reply-To: References: Content-Type: text/plain Organization: National Security Agency Date: Tue, 13 Oct 2009 10:42:44 -0400 Message-Id: <1255444964.11749.340.camel@moss-terrapins.epoch.ncsc.mil> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1215 Lines: 38 On Sun, 2009-10-11 at 03:02 +0200, Stefan Richter wrote: > Signed-off-by: Stefan Richter > --- > diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c > index e28cecf..e144351 100644 > --- a/fs/sysfs/inode.c > +++ b/fs/sysfs/inode.c > @@ -46,7 +46,7 @@ int __init sysfs_inode_init(void) > return bdi_init(&sysfs_backing_dev_info); > } > > -struct sysfs_inode_attrs *sysfs_init_inode_attrs(struct sysfs_dirent *sd) > +static struct sysfs_inode_attrs *sysfs_init_inode_attrs(struct sysfs_dirent *sd) > { > struct sysfs_inode_attrs *attrs; > struct iattr *iattrs; > @@ -64,6 +64,7 @@ struct sysfs_inode_attrs *sysfs_init_inode_attrs(struct sysfs_dirent *sd) > > return attrs; > } > + > int sysfs_setattr(struct dentry * dentry, struct iattr * iattr) > { > struct inode * inode = dentry->d_inode; > I don't see why this shouldn't or can't be made static. I'll ACK it and then you guys can deal with it however you like. -Dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/