All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Staging: android/ion: fix sparse warnings
@ 2017-07-12  4:51 Joseph Wright
  2017-07-12  4:51 ` [PATCH v2 1/2] " Joseph Wright
  2017-07-12  4:51 ` [PATCH v2 2/2] Staging: android/ion: fix sparse warning Joseph Wright
  0 siblings, 2 replies; 5+ messages in thread
From: Joseph Wright @ 2017-07-12  4:51 UTC (permalink / raw)
  To: gregkh, arve, riandrews; +Cc: devel, linux-kernel, Joseph Wright

Split sparse warning fixes into multiple patches.

Joseph Wright (2):
  Staging: android/ion: fix sparse warnings
  Staging: android/ion: fix sparse warning

 drivers/staging/android/ion/ion.h          | 4 ++++
 drivers/staging/android/ion/ion_cma_heap.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.9.3

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

* [PATCH v2 1/2] Staging: android/ion: fix sparse warnings
  2017-07-12  4:51 [PATCH v2 0/2] Staging: android/ion: fix sparse warnings Joseph Wright
@ 2017-07-12  4:51 ` Joseph Wright
  2017-07-12  5:22   ` Frans Klaver
  2017-07-12  4:51 ` [PATCH v2 2/2] Staging: android/ion: fix sparse warning Joseph Wright
  1 sibling, 1 reply; 5+ messages in thread
From: Joseph Wright @ 2017-07-12  4:51 UTC (permalink / raw)
  To: gregkh, arve, riandrews; +Cc: devel, linux-kernel, Joseph Wright

Declare functions to fix sparse warnings:

ion_carveout_heap.c:115:17: warning: symbol 'ion_carveout_heap_create' \
	was not declared. Should it be static?
ion_chunk_heap.c:120:17: warning: symbol 'ion_chunk_heap_create' \
	was not declared. Should it be static?

Signed-off-by: Joseph Wright <rjosephwright@gmail.com>
---
Changes in v2:
  - Split into multiple patches

 drivers/staging/android/ion/ion.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h
index fa9ed81..fda1e91 100644
--- a/drivers/staging/android/ion/ion.h
+++ b/drivers/staging/android/ion/ion.h
@@ -358,4 +358,8 @@ long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
 
 int ion_query_heaps(struct ion_heap_query *query);
 
+struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data);
+
+struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data);
+
 #endif /* _ION_H */
-- 
2.9.3

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

* [PATCH v2 2/2] Staging: android/ion: fix sparse warning
  2017-07-12  4:51 [PATCH v2 0/2] Staging: android/ion: fix sparse warnings Joseph Wright
  2017-07-12  4:51 ` [PATCH v2 1/2] " Joseph Wright
@ 2017-07-12  4:51 ` Joseph Wright
  2017-07-12  5:23   ` Frans Klaver
  1 sibling, 1 reply; 5+ messages in thread
From: Joseph Wright @ 2017-07-12  4:51 UTC (permalink / raw)
  To: gregkh, arve, riandrews; +Cc: devel, linux-kernel, Joseph Wright

Declare private function static to fix sparse warning:

ion_cma_heap.c:109:5: warning: symbol '__ion_add_cma_heaps' \
	was not declared. Should it be static?

Signed-off-by: Joseph Wright <rjosephwright@gmail.com>
---
Changes in v2:
  - Split into multiple patches

 drivers/staging/android/ion/ion_cma_heap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c
index a0949bc..c6db9b7 100644
--- a/drivers/staging/android/ion/ion_cma_heap.c
+++ b/drivers/staging/android/ion/ion_cma_heap.c
@@ -106,7 +106,7 @@ static struct ion_heap *__ion_cma_heap_create(struct cma *cma)
 	return &cma_heap->heap;
 }
 
-int __ion_add_cma_heaps(struct cma *cma, void *data)
+static int __ion_add_cma_heaps(struct cma *cma, void *data)
 {
 	struct ion_heap *heap;
 
-- 
2.9.3

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

* Re: [PATCH v2 1/2] Staging: android/ion: fix sparse warnings
  2017-07-12  4:51 ` [PATCH v2 1/2] " Joseph Wright
@ 2017-07-12  5:22   ` Frans Klaver
  0 siblings, 0 replies; 5+ messages in thread
From: Frans Klaver @ 2017-07-12  5:22 UTC (permalink / raw)
  To: Joseph Wright
  Cc: Greg KH, arve, riandrews, driverdevel,
	linux-kernel@vger.kernel.org

Hi,

please consider changing your subject to something like

staging: android/ion: declare two functions

Perhaps you can make it more on-topic. It's more useful than "fix
sparse warning"

On Wed, Jul 12, 2017 at 6:51 AM, Joseph Wright <rjosephwright@gmail.com> wrote:
> Declare functions to fix sparse warnings:
>
> ion_carveout_heap.c:115:17: warning: symbol 'ion_carveout_heap_create' \
>         was not declared. Should it be static?
> ion_chunk_heap.c:120:17: warning: symbol 'ion_chunk_heap_create' \
>         was not declared. Should it be static?

And then explain why declaring them is preferred over making them static.

Frans

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

* Re: [PATCH v2 2/2] Staging: android/ion: fix sparse warning
  2017-07-12  4:51 ` [PATCH v2 2/2] Staging: android/ion: fix sparse warning Joseph Wright
@ 2017-07-12  5:23   ` Frans Klaver
  0 siblings, 0 replies; 5+ messages in thread
From: Frans Klaver @ 2017-07-12  5:23 UTC (permalink / raw)
  To: Joseph Wright
  Cc: Greg KH, arve, riandrews, driverdevel,
	linux-kernel@vger.kernel.org

Hi,

Again, your subject is too generic.


On Wed, Jul 12, 2017 at 6:51 AM, Joseph Wright <rjosephwright@gmail.com> wrote:
> Declare private function static to fix sparse warning:
>
> ion_cma_heap.c:109:5: warning: symbol '__ion_add_cma_heaps' \
>         was not declared. Should it be static?
>
> Signed-off-by: Joseph Wright <rjosephwright@gmail.com>
> ---
> Changes in v2:
>   - Split into multiple patches
>
>  drivers/staging/android/ion/ion_cma_heap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c
> index a0949bc..c6db9b7 100644
> --- a/drivers/staging/android/ion/ion_cma_heap.c
> +++ b/drivers/staging/android/ion/ion_cma_heap.c
> @@ -106,7 +106,7 @@ static struct ion_heap *__ion_cma_heap_create(struct cma *cma)
>         return &cma_heap->heap;
>  }
>
> -int __ion_add_cma_heaps(struct cma *cma, void *data)
> +static int __ion_add_cma_heaps(struct cma *cma, void *data)
>  {
>         struct ion_heap *heap;
>
> --
> 2.9.3
>
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

end of thread, other threads:[~2017-07-12  5:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12  4:51 [PATCH v2 0/2] Staging: android/ion: fix sparse warnings Joseph Wright
2017-07-12  4:51 ` [PATCH v2 1/2] " Joseph Wright
2017-07-12  5:22   ` Frans Klaver
2017-07-12  4:51 ` [PATCH v2 2/2] Staging: android/ion: fix sparse warning Joseph Wright
2017-07-12  5:23   ` Frans Klaver

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.