[Ocfs2-commits] jlbec commits r2012 - trunk/fs/usysfs

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Mar 18 17:39:24 CST 2005


Author: jlbec
Signed-off-by: manish
Date: 2005-03-18 17:39:23 -0600 (Fri, 18 Mar 2005)
New Revision: 2012

Modified:
   trunk/fs/usysfs/usysfs.h
   trunk/fs/usysfs/usysfs_internal.h
Log:

o Remove unused garbage from the headers.

Signed-off-by: manish



Modified: trunk/fs/usysfs/usysfs.h
===================================================================
--- trunk/fs/usysfs/usysfs.h	2005-03-18 23:33:57 UTC (rev 2011)
+++ trunk/fs/usysfs/usysfs.h	2005-03-18 23:39:23 UTC (rev 2012)
@@ -144,44 +144,7 @@
 #define USYSFS_DEFAULT_DIR	0x0040
 #define USYSFS_NOT_PINNED	(USYSFS_KOBJ_ATTR | USYSFS_KOBJ_BIN_ATTR)
 
-#define CONFIG_USYSFS
-#ifdef CONFIG_USYSFS
-
-extern int
-usysfs_rename_dir(struct kobject *, const char *new_name);
-
-extern int
-usysfs_create_file(struct kobject *, const struct attribute *);
-
-int usysfs_create_bin_file(struct kobject * kobj, struct bin_attribute * attr);
-int usysfs_remove_bin_file(struct kobject * kobj, struct bin_attribute * attr);
-
 int usysfs_register_subsystem(struct kset *k);
 void usysfs_unregister_subsystem(struct kset *k);
-#else /* CONFIG_SYSFS */
 
-static inline int usysfs_rename_dir(struct kobject * k, const char *new_name)
-{
-	return 0;
-}
-
-static inline int usysfs_create_file(struct kobject * k, const struct attribute * a)
-{
-	return 0;
-}
-
-
-static inline int usysfs_create_bin_file(struct kobject * k, struct bin_attribute * a)
-{
-	return 0;
-}
-
-static inline int usysfs_remove_bin_file(struct kobject * k, struct bin_attribute * a)
-{
-	return 0;
-}
-
-
-#endif /* CONFIG_USYSFS */
-
 #endif /* _USYSFS_H_ */

Modified: trunk/fs/usysfs/usysfs_internal.h
===================================================================
--- trunk/fs/usysfs/usysfs_internal.h	2005-03-18 23:33:57 UTC (rev 2011)
+++ trunk/fs/usysfs/usysfs_internal.h	2005-03-18 23:39:23 UTC (rev 2012)
@@ -18,6 +18,7 @@
 extern struct inode * usysfs_new_inode(mode_t mode);
 extern int usysfs_create(struct dentry *, int mode, int (*init)(struct inode *));
 
+extern int usysfs_create_file(struct kobject *, const struct attribute *);
 extern int usysfs_make_dirent(struct usysfs_dirent *, struct dentry *, void *,
 				umode_t, int);
 extern struct dentry * usysfs_get_dentry(struct dentry *, const char *);
@@ -25,9 +26,6 @@
 extern int usysfs_add_file(struct dentry *, const struct attribute *, int);
 extern void usysfs_hash_and_remove(struct dentry * dir, const char * name);
 
-extern int usysfs_create_subdir(struct kobject *, const char *, struct dentry **);
-extern void usysfs_remove_subdir(struct dentry *);
-
 extern const unsigned char * usysfs_get_name(struct usysfs_dirent *sd);
 extern void usysfs_drop_dentry(struct usysfs_dirent *sd, struct dentry *parent);
 



More information about the Ocfs2-commits mailing list