mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
To: linux-kernel@vger.kernel.org
Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Joel Becker <jlbec@evilplan.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>
Subject: [PATCH 1/8] fs/configfs: checkpatch cleanup
Date: Thu, 03 Jan 2013 11:10:18 +0100	[thread overview]
Message-ID: <1357207825-10485-2-git-send-email-andrzej.p@samsung.com> (raw)
In-Reply-To: <1357207825-10485-1-git-send-email-andrzej.p@samsung.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


  reply	other threads:[~2013-01-03 10:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-03 10:10 [PATCH 0/8] configfs " Andrzej Pietrasiewicz
2013-01-03 10:10 ` Andrzej Pietrasiewicz [this message]
2013-01-03 10:31   ` [PATCH 1/8] fs/configfs: " devendra.aaru
2013-01-03 10:10 ` [PATCH 2/8] " Andrzej Pietrasiewicz
2013-01-03 10:10 ` [PATCH 3/8] " Andrzej Pietrasiewicz
2013-01-03 10:10 ` [PATCH 4/8] " Andrzej Pietrasiewicz
2013-01-03 10:10 ` [PATCH 5/8] " Andrzej Pietrasiewicz
2013-01-03 10:10 ` [PATCH 6/8] " Andrzej Pietrasiewicz
2013-01-03 10:10 ` [PATCH 7/8] " Andrzej Pietrasiewicz
2013-01-03 10:10 ` [PATCH 8/8] " Andrzej Pietrasiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357207825-10485-2-git-send-email-andrzej.p@samsung.com \
    --to=andrzej.p@samsung.com \
    --cc=jlbec@evilplan.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®