Skip to contentSkip to conversation

staging: android: fix coding style

PATCH In review [email protected] 3 participants 6 messages Mar 13, 2014 – Mar 14, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: android: fix coding style

From: mourn <[email protected]>

---
 drivers/staging/android/uapi/ion.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/android/uapi/ion.h +6 -6
index f09e7c1..6aa4956 100644
@@ -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
Signature · 1 line
1.7.10.4
#2 lore raw

I'll try that again...

Quoted 8 lines · Mark Einon
Quoted 6 lines · On Thu, Mar 13, 2014 at 10:44:55AM +0100, [email protected] wrote:

From: mourn <[email protected]>

---
 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

author
#3 lore raw
Quoted 5 lines

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.

Quoted 4 lines

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

maintainer
#4 lore raw
Quoted 8 lines · mourn
Quoted 5 lines

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.

Quoted 8 lines
Quoted 4 lines

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