All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: android: fix coding style
@ 2014-03-13  9:44 mourn
  2014-03-13 13:50 ` Mark Einon
  2014-03-14 23:38 ` Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: mourn @ 2014-03-13  9:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: devel, gregkh, john.stultz, rebecca, mourn

From: mourn <mourn@2600fr.org>

Signed-off-by: mourn <mourn@2600fr.org>
---
 drivers/staging/android/uapi/ion.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h
index f09e7c1..6aa4956 100644
--- a/drivers/staging/android/uapi/ion.h
+++ b/drivers/staging/android/uapi/ion.h
@@ -27,12 +27,12 @@ typedef int ion_user_handle_t;
  * @ION_HEAP_TYPE_SYSTEM:	 memory allocated via vmalloc
  * @ION_HEAP_TYPE_SYSTEM_CONTIG: memory allocated via kmalloc
  * @ION_HEAP_TYPE_CARVEOUT:	 memory allocated from a prereserved
- * 				 carveout heap, allocations are physically
- * 				 contiguous
+ *				 carveout heap, allocations are physically
+ *				 contiguous
  * @ION_HEAP_TYPE_DMA:		 memory allocated via DMA API
  * @ION_NUM_HEAPS:		 helper for iterating over heaps, a bit mask
- * 				 is used to identify the heaps, so only 32
- * 				 total heap types are supported
+ *				 is used to identify the heaps, so only 32
+ *				 total heap types are supported
  */
 enum ion_heap_type {
 	ION_HEAP_TYPE_SYSTEM,
@@ -50,7 +50,7 @@ enum ion_heap_type {
 #define ION_HEAP_CARVEOUT_MASK		(1 << ION_HEAP_TYPE_CARVEOUT)
 #define ION_HEAP_TYPE_DMA_MASK		(1 << ION_HEAP_TYPE_DMA)
 
-#define ION_NUM_HEAP_IDS		sizeof(unsigned int) * 8
+#define ION_NUM_HEAP_IDS		(sizeof(unsigned int) * 8)
 
 /**
  * allocation flags - the lower 16 bits are used by core ion, the upper 16
@@ -78,7 +78,7 @@ enum ion_heap_type {
  * @align:		required alignment of the allocation
  * @heap_id_mask:	mask of heap ids to allocate from
  * @flags:		flags passed to heap
- * @handle:		pointer that will be populated with a cookie to use to 
+ * @handle:		pointer that will be populated with a cookie to use to
  *			refer to this allocation
  *
  * Provided by userspace as an argument to the ioctl
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] staging: android: fix coding style
  2014-03-13  9:44 [PATCH] staging: android: fix coding style mourn
@ 2014-03-13 13:50 ` Mark Einon
  2014-03-13 13:54   ` Mark Einon
  2014-03-14 23:38 ` Greg KH
  1 sibling, 1 reply; 8+ messages in thread
From: Mark Einon @ 2014-03-13 13:50 UTC (permalink / raw)
  To: mourn; +Cc: linux-kernel, devel, gregkh, rebecca, john.stultz

On Thu, Mar 13, 2014 at 10:44:55AM +0100, mourn@2600fr.org wrote:
> From: mourn <mourn@2600fr.org>
> 
> Signed-off-by: mourn <mourn@2600fr.org>
> ---
>  drivers/staging/android/uapi/ion.h |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

The changes look good, however you should be a bit more specific about which 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] staging: android: fix coding style
  2014-03-13 13:50 ` Mark Einon
@ 2014-03-13 13:54   ` Mark Einon
  2014-03-13 14:13     ` mourn
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Einon @ 2014-03-13 13:54 UTC (permalink / raw)
  To: mourn; +Cc: devel, gregkh, rebecca, john.stultz, linux-kernel

I'll try that again...

On Thu, Mar 13, 2014 at 01:50:47PM +0000, Mark Einon wrote:
> On Thu, Mar 13, 2014 at 10:44:55AM +0100, mourn@2600fr.org wrote:
> > From: mourn <mourn@2600fr.org>
> > 
> > Signed-off-by: mourn <mourn@2600fr.org>
> > ---
> >  drivers/staging/android/uapi/ion.h |   12 ++++++------
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> 

The changes look good, however you should be a bit more specific about what the
fixes are, and that you used checkpatch.pl to find them (I assume).

Also, Signed-off-by: should state your full name, which I'm also assuming isn't
'mourn'. Please see Documentation/SubmittingPatches.

Cheers,

Mark



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] staging: android: fix coding style
  2014-03-13 13:54   ` Mark Einon
@ 2014-03-13 14:13     ` mourn
  2014-03-14 23:32       ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: mourn @ 2014-03-13 14:13 UTC (permalink / raw)
  To: Mark Einon; +Cc: mourn, devel, gregkh, rebecca, john.stultz, linux-kernel


> The changes look good, however you should be a bit more specific about
> what the
> fixes are, and that you used checkpatch.pl to find them (I assume).
>

Yes, you are right. I can edit the commit log.

> Also, Signed-off-by: should state your full name, which I'm also assuming
> isn't
> 'mourn'. Please see Documentation/SubmittingPatches.
>

I have a bit of a problem here. Some companies forbid their employees to
openly participate in open source projects. A request to the legal
department will take around 6 months with no hope of positive result...

Thanks



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] staging: android: fix coding style
  2014-03-13 14:13     ` mourn
@ 2014-03-14 23:32       ` Greg KH
  0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2014-03-14 23:32 UTC (permalink / raw)
  To: mourn; +Cc: Mark Einon, devel, linux-kernel, john.stultz, rebecca

On Thu, Mar 13, 2014 at 03:13:04PM +0100, mourn wrote:
> 
> > The changes look good, however you should be a bit more specific about
> > what the
> > fixes are, and that you used checkpatch.pl to find them (I assume).
> >
> 
> Yes, you are right. I can edit the commit log.
> 
> > Also, Signed-off-by: should state your full name, which I'm also assuming
> > isn't
> > 'mourn'. Please see Documentation/SubmittingPatches.
> >
> 
> I have a bit of a problem here. Some companies forbid their employees to
> openly participate in open source projects. A request to the legal
> department will take around 6 months with no hope of positive result...

Then I can not take your patch, sorry, we can not take anonymous
patches, as the documentation that describes what you mean by adding the
"Signed-off-by:" line to a patch.

good luck with your legal department,

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] staging: android: fix coding style
  2014-03-13  9:44 [PATCH] staging: android: fix coding style mourn
  2014-03-13 13:50 ` Mark Einon
@ 2014-03-14 23:38 ` Greg KH
  1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2014-03-14 23:38 UTC (permalink / raw)
  To: mourn; +Cc: linux-kernel, devel, john.stultz, rebecca

On Thu, Mar 13, 2014 at 10:44:55AM +0100, mourn@2600fr.org wrote:
> From: mourn <mourn@2600fr.org>
> 
> Signed-off-by: mourn <mourn@2600fr.org>

As said in the thread for your other thread, this patch can't be
accepted unless you use your real name, sorry.

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] Staging: android: fix coding style
@ 2014-09-14  0:13 Sorin Facaoaru
  0 siblings, 0 replies; 8+ messages in thread
From: Sorin Facaoaru @ 2014-09-14  0:13 UTC (permalink / raw)
  To: gregkh; +Cc: john.stultz, devel, linux-kernel, Sorin Facaoaru

- add line after declaration

Signed-off-by: Sorin Facaoaru <work@sorin.cc>
---
 drivers/staging/android/sw_sync.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c
index a76db3f..863d4b1 100644
--- a/drivers/staging/android/sw_sync.c
+++ b/drivers/staging/android/sw_sync.c
@@ -97,6 +97,7 @@ static void sw_sync_pt_value_str(struct sync_pt *sync_pt,
 				       char *str, int size)
 {
 	struct sw_sync_pt *pt = (struct sw_sync_pt *)sync_pt;
+
 	snprintf(str, size, "%d", pt->value);
 }
 
@@ -156,6 +157,7 @@ static int sw_sync_open(struct inode *inode, struct file *file)
 static int sw_sync_release(struct inode *inode, struct file *file)
 {
 	struct sw_sync_timeline *obj = file->private_data;
+
 	sync_timeline_destroy(&obj->obj);
 	return 0;
 }
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] Staging: android: fix coding style
@ 2014-09-14  0:13 Sorin Facaoaru
  0 siblings, 0 replies; 8+ messages in thread
From: Sorin Facaoaru @ 2014-09-14  0:13 UTC (permalink / raw)
  To: gregkh; +Cc: john.stultz, devel, linux-kernel, Sorin Facaoaru

- add line after declaration

Signed-off-by: Sorin Facaoaru <work@sorin.cc>
---
 drivers/staging/android/sync.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index e7b2e02..0d37495 100644
--- a/drivers/staging/android/sync.c
+++ b/drivers/staging/android/sync.c
@@ -705,6 +705,7 @@ static long sync_fence_ioctl(struct file *file, unsigned int cmd,
 			     unsigned long arg)
 {
 	struct sync_fence *fence = file->private_data;
+
 	switch (cmd) {
 	case SYNC_IOC_WAIT:
 		return sync_fence_ioctl_wait(fence, arg);
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-09-14  0:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13  9:44 [PATCH] staging: android: fix coding style mourn
2014-03-13 13:50 ` Mark Einon
2014-03-13 13:54   ` Mark Einon
2014-03-13 14:13     ` mourn
2014-03-14 23:32       ` Greg KH
2014-03-14 23:38 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2014-09-14  0:13 [PATCH] Staging: " Sorin Facaoaru
2014-09-14  0:13 Sorin Facaoaru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.