* [PATCH] Staging: anrdroid: sync.c: fixed all checkpatch errors and warnings
@ 2013-06-05 20:23 Aldo Iljazi
2013-06-05 20:34 ` Greg KH
2013-06-05 23:14 ` Joe Perches
0 siblings, 2 replies; 3+ messages in thread
From: Aldo Iljazi @ 2013-06-05 20:23 UTC (permalink / raw)
To: gregh; +Cc: devel, linux-kernel, Aldo Iljazi
Signed-off-by: Aldo Iljazi <neonsync1@gmail.com>
---
drivers/staging/android/sync.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index 3893a35..8bd5bf3 100644
--- a/drivers/staging/android/sync.c
+++ b/drivers/staging/android/sync.c
@@ -125,9 +125,8 @@ static void sync_timeline_remove_pt(struct sync_pt *pt)
spin_unlock_irqrestore(&obj->active_list_lock, flags);
spin_lock_irqsave(&obj->child_list_lock, flags);
- if (!list_empty(&pt->child_list)) {
+ if (!list_empty(&pt->child_list))
list_del_init(&pt->child_list);
- }
spin_unlock_irqrestore(&obj->child_list_lock, flags);
}
@@ -876,11 +875,11 @@ static void sync_print_pt(struct seq_file *s, struct sync_pt *pt, bool fence)
seq_printf(s, " / %s", value);
}
} else if (pt->parent->ops->print_pt) {
- seq_printf(s, ": ");
+ seq_puts(s, ": ");
pt->parent->ops->print_pt(s, pt);
}
- seq_printf(s, "\n");
+ seq_puts(s, "\n");
}
static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
@@ -893,13 +892,13 @@ static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
if (obj->ops->timeline_value_str) {
char value[64];
obj->ops->timeline_value_str(obj, value, sizeof(value));
- seq_printf(s, ": %s", value);
+ seq_puts(s, ": %s", value);
} else if (obj->ops->print_obj) {
- seq_printf(s, ": ");
+ seq_puts(s, ": ");
obj->ops->print_obj(s, obj);
}
- seq_printf(s, "\n");
+ seq_puts(s, "\n");
spin_lock_irqsave(&obj->child_list_lock, flags);
list_for_each(pos, &obj->child_list_head) {
@@ -940,7 +939,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
unsigned long flags;
struct list_head *pos;
- seq_printf(s, "objs:\n--------------\n");
+ seq_puts(s, "objs:\n--------------\n");
spin_lock_irqsave(&sync_timeline_list_lock, flags);
list_for_each(pos, &sync_timeline_list_head) {
@@ -949,11 +948,11 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
sync_timeline_list);
sync_print_obj(s, obj);
- seq_printf(s, "\n");
+ seq_puts(s, "\n");
}
spin_unlock_irqrestore(&sync_timeline_list_lock, flags);
- seq_printf(s, "fences:\n--------------\n");
+ seq_puts(s, "fences:\n--------------\n");
spin_lock_irqsave(&sync_fence_list_lock, flags);
list_for_each(pos, &sync_fence_list_head) {
@@ -961,7 +960,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
container_of(pos, struct sync_fence, sync_fence_list);
sync_print_fence(s, fence);
- seq_printf(s, "\n");
+ seq_puts(s, "\n");
}
spin_unlock_irqrestore(&sync_fence_list_lock, flags);
return 0;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Staging: anrdroid: sync.c: fixed all checkpatch errors and warnings
2013-06-05 20:23 [PATCH] Staging: anrdroid: sync.c: fixed all checkpatch errors and warnings Aldo Iljazi
@ 2013-06-05 20:34 ` Greg KH
2013-06-05 23:14 ` Joe Perches
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2013-06-05 20:34 UTC (permalink / raw)
To: Aldo Iljazi; +Cc: gregkh, devel, linux-kernel
On Wed, Jun 05, 2013 at 11:23:47PM +0300, Aldo Iljazi wrote:
> Signed-off-by: Aldo Iljazi <neonsync1@gmail.com>
And what, _specifically_ were those error and warnings?
Please let us know what you changed in the changelog comment and why.
Also, did you test this?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Staging: anrdroid: sync.c: fixed all checkpatch errors and warnings
2013-06-05 20:23 [PATCH] Staging: anrdroid: sync.c: fixed all checkpatch errors and warnings Aldo Iljazi
2013-06-05 20:34 ` Greg KH
@ 2013-06-05 23:14 ` Joe Perches
1 sibling, 0 replies; 3+ messages in thread
From: Joe Perches @ 2013-06-05 23:14 UTC (permalink / raw)
To: Aldo Iljazi; +Cc: gregh, devel, linux-kernel
On Wed, 2013-06-05 at 23:23 +0300, Aldo Iljazi wrote:
> diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
[]
> @@ -893,13 +892,13 @@ static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
> if (obj->ops->timeline_value_str) {
> char value[64];
> obj->ops->timeline_value_str(obj, value, sizeof(value));
> - seq_printf(s, ": %s", value);
> + seq_puts(s, ": %s", value);
This is wrong and shouldn't compile without warning.
Is this an over aggressive conversion or did checkpatch
really complain on this line?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-05 23:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05 20:23 [PATCH] Staging: anrdroid: sync.c: fixed all checkpatch errors and warnings Aldo Iljazi
2013-06-05 20:34 ` Greg KH
2013-06-05 23:14 ` Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox