public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: android: fix coding style and TODO file
@ 2015-07-01 11:56 Sohny Thomas
  2015-07-01 12:07 ` Frans Klaver
  0 siblings, 1 reply; 6+ messages in thread
From: Sohny Thomas @ 2015-07-01 11:56 UTC (permalink / raw)
  To: gregkh, arve, riandrews, sumit.semwal, maarten.lankhorst, carlos
  Cc: linux-kernel

- removed non-existant issue from TODO file
kuid_t or uid_t not present in staging/android	
- fixed 80 char limit exceeding line
- a newline after decelartions as per checkpatch.pl
- fixed an unnecessary typedef as reported by checkpatch.pl
---
 drivers/staging/android/TODO                 | 7 -------
 drivers/staging/android/ion/ion.c            | 1 +
 drivers/staging/android/ion/ion_chunk_heap.c | 4 ++--
 drivers/staging/android/uapi/ion.h           | 7 +++----
 4 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/drivers/staging/android/TODO b/drivers/staging/android/TODO
index 06954cd..b15fb0d 100644
--- a/drivers/staging/android/TODO
+++ b/drivers/staging/android/TODO
@@ -5,13 +5,6 @@ TODO:
 	- make sure things build as modules properly
 	- add proper arch dependencies as needed
 	- audit userspace interfaces to make sure they are sane
-	- kuid_t should never be exposed to user space as it is
-          kernel internal type. Data structure for this kuid_t is:
-          typedef struct {
-          	uid_t val;
-          } kuid_t;
-	- This bug is introduced by Xiong Zhou in the patch bd471258f2e09
-	- ("staging: android: logger: use kuid_t instead of uid_t")
 
 Please send patches to Greg Kroah-Hartman <greg@kroah.com> and Cc:
 Brian Swetland <swetland@google.com>
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 6f48112..e44f5e6 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -1106,6 +1106,7 @@ struct dma_buf *ion_share_dma_buf(struct ion_client *client,
 	struct ion_buffer *buffer;
 	struct dma_buf *dmabuf;
 	bool valid_handle;
+
 	DEFINE_DMA_BUF_EXPORT_INFO(exp_info);
 
 	mutex_lock(&client->lock);
diff --git a/drivers/staging/android/ion/ion_chunk_heap.c b/drivers/staging/android/ion/ion_chunk_heap.c
index 5474615..0813163 100644
--- a/drivers/staging/android/ion/ion_chunk_heap.c
+++ b/drivers/staging/android/ion/ion_chunk_heap.c
@@ -173,8 +173,8 @@ struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data)
 	chunk_heap->heap.ops = &chunk_heap_ops;
 	chunk_heap->heap.type = ION_HEAP_TYPE_CHUNK;
 	chunk_heap->heap.flags = ION_HEAP_FLAG_DEFER_FREE;
-	pr_debug("%s: base %lu size %zu align %ld\n", __func__, chunk_heap->base,
-		heap_data->size, heap_data->align);
+	pr_debug("%s: base %lu size %zu align %ld\n", __func__,
+		chunk_heap->base, heap_data->size, heap_data->align);
 
 	return &chunk_heap->heap;
 
diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h
index 68a14b4..9897403 100644
--- a/drivers/staging/android/uapi/ion.h
+++ b/drivers/staging/android/uapi/ion.h
@@ -20,7 +20,6 @@
 #include <linux/ioctl.h>
 #include <linux/types.h>
 
-typedef int ion_user_handle_t;
 
 /**
  * enum ion_heap_types - list of all possible types of heaps
@@ -88,7 +87,7 @@ struct ion_allocation_data {
 	size_t align;
 	unsigned int heap_id_mask;
 	unsigned int flags;
-	ion_user_handle_t handle;
+	int handle;
 };
 
 /**
@@ -102,7 +101,7 @@ struct ion_allocation_data {
  * provides the file descriptor and the kernel returns the handle.
  */
 struct ion_fd_data {
-	ion_user_handle_t handle;
+	int handle;
 	int fd;
 };
 
@@ -111,7 +110,7 @@ struct ion_fd_data {
  * @handle:	a handle
  */
 struct ion_handle_data {
-	ion_user_handle_t handle;
+	int handle;
 };
 
 /**
-- 



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

* Re: [PATCH] Staging: android: fix coding style and TODO file
  2015-07-01 11:56 [PATCH] Staging: android: fix coding style and TODO file Sohny Thomas
@ 2015-07-01 12:07 ` Frans Klaver
  2015-07-01 12:19   ` Sudip Mukherjee
  2015-07-01 12:22   ` Sohny Thomas
  0 siblings, 2 replies; 6+ messages in thread
From: Frans Klaver @ 2015-07-01 12:07 UTC (permalink / raw)
  To: Sohny Thomas
  Cc: Greg KH, arve, riandrews, sumit.semwal, maarten.lankhorst, carlos,
	linux-kernel@vger.kernel.org

On Wed, Jul 1, 2015 at 1:56 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
> - removed non-existant issue from TODO file

s,existant,existent,

> kuid_t or uid_t not present in staging/android
> - fixed 80 char limit exceeding line
> - a newline after decelartions as per checkpatch.pl
> - fixed an unnecessary typedef as reported by checkpatch.pl

Fix one issue per patch, please.

Thanks,
Frans

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

* Re: [PATCH] Staging: android: fix coding style and TODO file
  2015-07-01 12:07 ` Frans Klaver
@ 2015-07-01 12:19   ` Sudip Mukherjee
  2015-07-01 12:22   ` Sohny Thomas
  1 sibling, 0 replies; 6+ messages in thread
From: Sudip Mukherjee @ 2015-07-01 12:19 UTC (permalink / raw)
  To: Sohny Thomas
  Cc: Frans Klaver, Greg KH, arve, riandrews, sumit.semwal,
	maarten.lankhorst, carlos, linux-kernel@vger.kernel.org

On Wed, Jul 01, 2015 at 02:07:05PM +0200, Frans Klaver wrote:
> On Wed, Jul 1, 2015 at 1:56 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
> > - removed non-existant issue from TODO file
> 
> s,existant,existent,
> 
> > kuid_t or uid_t not present in staging/android
> > - fixed 80 char limit exceeding line
> > - a newline after decelartions as per checkpatch.pl
> > - fixed an unnecessary typedef as reported by checkpatch.pl
> 
> Fix one issue per patch, please.
And Signed-off-by is missing.

regards
sudip

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

* Re: [PATCH] Staging: android: fix coding style and TODO file
  2015-07-01 12:07 ` Frans Klaver
  2015-07-01 12:19   ` Sudip Mukherjee
@ 2015-07-01 12:22   ` Sohny Thomas
  2015-07-01 12:29     ` Frans Klaver
  1 sibling, 1 reply; 6+ messages in thread
From: Sohny Thomas @ 2015-07-01 12:22 UTC (permalink / raw)
  To: Frans Klaver
  Cc: Greg KH, arve, riandrews, sumit.semwal, carlos,
	linux-kernel@vger.kernel.org



On Wednesday 01 July 2015 05:37 PM, Frans Klaver wrote:
> On Wed, Jul 1, 2015 at 1:56 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
>> - removed non-existant issue from TODO file
> 
> s,existant,existent,
Thanks missed that
> 
>> kuid_t or uid_t not present in staging/android
>> - fixed 80 char limit exceeding line
>> - a newline after decelartions as per checkpatch.pl
>> - fixed an unnecessary typedef as reported by checkpatch.pl
> 
> Fix one issue per patch, please.
Since these were all simple Fixes of about 1/2 lines , I thought to make a single patch.

> 
> Thanks,
> Frans
> 


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

* Re: [PATCH] Staging: android: fix coding style and TODO file
  2015-07-01 12:22   ` Sohny Thomas
@ 2015-07-01 12:29     ` Frans Klaver
  2015-07-01 12:38       ` Sohny Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Frans Klaver @ 2015-07-01 12:29 UTC (permalink / raw)
  To: Sohny Thomas
  Cc: Greg KH, arve, riandrews, sumit.semwal, carlos,
	linux-kernel@vger.kernel.org

On Wed, Jul 1, 2015 at 2:22 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
>
>
> On Wednesday 01 July 2015 05:37 PM, Frans Klaver wrote:
>> On Wed, Jul 1, 2015 at 1:56 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
>>> - removed non-existant issue from TODO file
>>
>> s,existant,existent,
> Thanks missed that
>>
>>> kuid_t or uid_t not present in staging/android
>>> - fixed 80 char limit exceeding line
>>> - a newline after decelartions as per checkpatch.pl
>>> - fixed an unnecessary typedef as reported by checkpatch.pl
>>
>> Fix one issue per patch, please.
> Since these were all simple Fixes of about 1/2 lines , I thought to make a single patch.

They are simple fixes, but a reviewer still has to figure out what
comment belongs to which code change. Since there's no reason for
these changes to be atomic, you might as well split them up to make
reviewing easier.

Frans

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

* Re: [PATCH] Staging: android: fix coding style and TODO file
  2015-07-01 12:29     ` Frans Klaver
@ 2015-07-01 12:38       ` Sohny Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: Sohny Thomas @ 2015-07-01 12:38 UTC (permalink / raw)
  To: Frans Klaver
  Cc: Greg KH, arve, riandrews, sumit.semwal, carlos,
	linux-kernel@vger.kernel.org



On Wednesday 01 July 2015 05:59 PM, Frans Klaver wrote:
> On Wed, Jul 1, 2015 at 2:22 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
>>
>>
>> On Wednesday 01 July 2015 05:37 PM, Frans Klaver wrote:
>>> On Wed, Jul 1, 2015 at 1:56 PM, Sohny Thomas <sohnythomas@zoho.com> wrote:
>>>> - removed non-existant issue from TODO file
>>>
>>> s,existant,existent,
>> Thanks missed that
>>>
>>>> kuid_t or uid_t not present in staging/android
>>>> - fixed 80 char limit exceeding line
>>>> - a newline after decelartions as per checkpatch.pl
>>>> - fixed an unnecessary typedef as reported by checkpatch.pl
>>>
>>> Fix one issue per patch, please.
>> Since these were all simple Fixes of about 1/2 lines , I thought to make a single patch.
> 
> They are simple fixes, but a reviewer still has to figure out what
> comment belongs to which code change. Since there's no reason for
> these changes to be atomic, you might as well split them up to make
> reviewing easier.
> 
Yeap, V2 coming with changes and fixes Sudip's catch too.
Thanks for your time.

-Sohny

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


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

end of thread, other threads:[~2015-07-01 12:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-01 11:56 [PATCH] Staging: android: fix coding style and TODO file Sohny Thomas
2015-07-01 12:07 ` Frans Klaver
2015-07-01 12:19   ` Sudip Mukherjee
2015-07-01 12:22   ` Sohny Thomas
2015-07-01 12:29     ` Frans Klaver
2015-07-01 12:38       ` Sohny Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox