lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <1357213361-23620-2-git-send-email-andrzej.p@samsung.com>
Date:	Thu, 03 Jan 2013 12:42:34 +0100
From:	Andrzej Pietrasiewicz <andrzej.p@...sung.com>
To:	linux-kernel@...r.kernel.org
Cc:	Andrzej Pietrasiewicz <andrzej.p@...sung.com>,
	Kyungmin Park <kyungmin.park@...sung.com>,
	Joel Becker <jlbec@...lplan.org>,
	Marek Szyprowski <m.szyprowski@...sung.com>
Subject: [PATCH 1/8] fs/configfs: include/linux/configfs.h checkpatch cleanup

Eliminate checkpatch errors and warnings

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@...sung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@...sung.com>
---
 include/linux/configfs.h |   37 +++++++++++++++++++++++--------------
 1 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index 34025df..5d33a25 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -19,7 +19,7 @@
  * Boston, MA 021110-1307, USA.
  *
  * Based on sysfs:
- * 	sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel
+ *	sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel
  *
  * Based on kobject.h:
  *      Copyright (c) 2002-2003	Patrick Mochel
@@ -66,7 +66,7 @@ struct config_item {
 
 extern int config_item_set_name(struct config_item *, const char *, ...);
 
-static inline char *config_item_name(struct config_item * item)
+static inline char *config_item_name(struct config_item *item)
 {
 	return item->ci_name;
 }
@@ -76,7 +76,7 @@ extern void config_item_init_type_name(struct config_item *item,
 				       const char *name,
 				       struct config_item_type *type);
 
-extern struct config_item * config_item_get(struct config_item *);
+extern struct config_item *config_item_get(struct config_item *);
 extern void config_item_put(struct config_item *);
 
 struct config_item_type {
@@ -93,7 +93,7 @@ struct config_item_type {
 struct config_group {
 	struct config_item		cg_item;
 	struct list_head		cg_children;
-	struct configfs_subsystem 	*cg_subsys;
+	struct configfs_subsystem	*cg_subsys;
 	struct config_group		**default_groups;
 };
 
@@ -104,7 +104,7 @@ extern void config_group_init_type_name(struct config_group *group,
 
 static inline struct config_group *to_config_group(struct config_item *item)
 {
-	return item ? container_of(item,struct config_group,cg_item) : NULL;
+	return item ? container_of(item, struct config_group, cg_item) : NULL;
 }
 
 static inline struct config_group *config_group_get(struct config_group *group)
@@ -123,7 +123,7 @@ extern struct config_item *config_group_find_item(struct config_group *,
 
 struct configfs_attribute {
 	const char		*ca_name;
-	struct module 		*ca_owner;
+	struct module		*ca_owner;
 	umode_t			ca_mode;
 };
 
@@ -223,17 +223,23 @@ static ssize_t _item##_attr_store(struct config_item *item,		\
  */
 struct configfs_item_operations {
 	void (*release)(struct config_item *);
-	ssize_t	(*show_attribute)(struct config_item *, struct configfs_attribute *,char *);
-	ssize_t	(*store_attribute)(struct config_item *,struct configfs_attribute *,const char *, size_t);
+	ssize_t	(*show_attribute)(struct config_item *,
+				  struct configfs_attribute *, char *);
+	ssize_t	(*store_attribute)(struct config_item *,
+				   struct configfs_attribute *,
+				   const char *, size_t);
 	int (*allow_link)(struct config_item *src, struct config_item *target);
 	int (*drop_link)(struct config_item *src, struct config_item *target);
 };
 
 struct configfs_group_operations {
-	struct config_item *(*make_item)(struct config_group *group, const char *name);
-	struct config_group *(*make_group)(struct config_group *group, const char *name);
+	struct config_item *(*make_item)(struct config_group *group,
+					 const char *name);
+	struct config_group *(*make_group)(struct config_group *group,
+					   const char *name);
 	int (*commit_item)(struct config_item *item);
-	void (*disconnect_notify)(struct config_group *group, struct config_item *item);
+	void (*disconnect_notify)(struct config_group *group,
+				  struct config_item *item);
 	void (*drop_item)(struct config_group *group, struct config_item *item);
 };
 
@@ -242,7 +248,8 @@ struct configfs_subsystem {
 	struct mutex		su_mutex;
 };
 
-static inline struct configfs_subsystem *to_configfs_subsystem(struct config_group *group)
+static inline struct configfs_subsystem
+*to_configfs_subsystem(struct config_group *group)
 {
 	return group ?
 		container_of(group, struct configfs_subsystem, su_group) :
@@ -254,7 +261,9 @@ void configfs_unregister_subsystem(struct configfs_subsystem *subsys);
 
 /* These functions can sleep and can alloc with GFP_KERNEL */
 /* WARNING: These cannot be called underneath configfs callbacks!! */
-int configfs_depend_item(struct configfs_subsystem *subsys, struct config_item *target);
-void configfs_undepend_item(struct configfs_subsystem *subsys, struct config_item *target);
+int configfs_depend_item(struct configfs_subsystem *subsys,
+			 struct config_item *target);
+void configfs_undepend_item(struct configfs_subsystem *subsys,
+			    struct config_item *target);
 
 #endif /* _CONFIGFS_H_ */
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ