[PATCH v3] staging: gasket: Fix sparse "incorrect type in assignment" warnings.

2018-10-10 Thread Laurence Rochfort
(different address spaces) expected void *cpu_addr got unsigned char [noderef] [usertype] *virt_base Signed-off-by: Laurence Rochfort --- Changes in v3: - Just remove the __iommem cookie, don't alter type. drivers/staging/gasket/gasket_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3] staging: gasket: Fix sparse "incorrect type in assignment" warnings.

2018-10-10 Thread Laurence Rochfort
(different address spaces) expected void *cpu_addr got unsigned char [noderef] [usertype] *virt_base Signed-off-by: Laurence Rochfort --- Changes in v3: - Just remove the __iommem cookie, don't alter type. drivers/staging/gasket/gasket_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] staging: gasket: Fix sparse "incorrect type in assignment" warnings.

2018-10-10 Thread Laurence Rochfort
On Tue, Oct 09, 2018 at 03:13:03PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 04, 2018 at 06:52:25PM +0100, Laurence Rochfort wrote: > > Silence the below sparse warnings by casting betwen u8 __iomem *, and > > void *. > > > > warning: incorrect type in assignmen

Re: [PATCH] staging: gasket: Fix sparse "incorrect type in assignment" warnings.

2018-10-10 Thread Laurence Rochfort
On Tue, Oct 09, 2018 at 03:13:03PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 04, 2018 at 06:52:25PM +0100, Laurence Rochfort wrote: > > Silence the below sparse warnings by casting betwen u8 __iomem *, and > > void *. > > > > warning: incorrect type in assignmen

[PATCH] staging: gasket: Fix sparse "incorrect type in assignment" warnings.

2018-10-04 Thread Laurence Rochfort
) expected void *cpu_addr got unsigned char [noderef] [usertype] *virt_base Signed-off-by: Laurence Rochfort --- drivers/staging/gasket/gasket_page_table.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging

[PATCH] staging: gasket: Fix sparse "incorrect type in assignment" warnings.

2018-10-04 Thread Laurence Rochfort
) expected void *cpu_addr got unsigned char [noderef] [usertype] *virt_base Signed-off-by: Laurence Rochfort --- drivers/staging/gasket/gasket_page_table.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging

[PATCH] staging: most: Use NULL pointer not plain integer

2018-07-23 Thread Laurence Rochfort
Fix sparse warning: Using plain integer as NULL pointer Signed-off-by: Laurence Rochfort --- drivers/staging/most/dim2/dim2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c index fe90a7c..31fbc1a 100644

[PATCH] staging: most: Use NULL pointer not plain integer

2018-07-23 Thread Laurence Rochfort
Fix sparse warning: Using plain integer as NULL pointer Signed-off-by: Laurence Rochfort --- drivers/staging/most/dim2/dim2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c index fe90a7c..31fbc1a 100644