2013-03-27 07:24:08

by Chen Gang

[permalink] [raw]
Subject: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon


need remove semicolon, or always return true.

Signed-off-by: Chen Gang <[email protected]>
---
drivers/gpu/drm/nouveau/nv50_display.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
index 7f0e6c3..1ddc03e 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -479,7 +479,7 @@ nv50_display_flip_wait(void *data)
{
struct nv50_display_flip *flip = data;
if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) ==
- flip->chan->data);
+ flip->chan->data)
return true;
usleep_range(1, 2);
return false;
--
1.7.7.6


2013-04-03 08:02:17

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

Hello maintainers:

when you have time, please help to check this patch whether is OK.

thanks.

gchen.


On 2013年03月27日 15:23, Chen Gang wrote:
>
> need remove semicolon, or always return true.
>
> Signed-off-by: Chen Gang <[email protected]>
> ---
> drivers/gpu/drm/nouveau/nv50_display.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
> index 7f0e6c3..1ddc03e 100644
> --- a/drivers/gpu/drm/nouveau/nv50_display.c
> +++ b/drivers/gpu/drm/nouveau/nv50_display.c
> @@ -479,7 +479,7 @@ nv50_display_flip_wait(void *data)
> {
> struct nv50_display_flip *flip = data;
> if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) ==
> - flip->chan->data);
> + flip->chan->data)
> return true;
> usleep_range(1, 2);
> return false;
>


--
Chen Gang

Asianux Corporation

2013-04-07 01:04:26

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

Hello Greg KH:

when you have time, can you help to check this patch whether OK ?

thanks.

gchen.

On 2013??04??03?? 16:01, Chen Gang wrote:
> Hello maintainers:
>
> when you have time, please help to check this patch whether is OK.
>
> thanks.
>
> gchen.
>
>
> On 2013??03??27?? 15:23, Chen Gang wrote:
>>
>> need remove semicolon, or always return true.
>>
>> Signed-off-by: Chen Gang <[email protected]>
>> ---
>> drivers/gpu/drm/nouveau/nv50_display.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
>> index 7f0e6c3..1ddc03e 100644
>> --- a/drivers/gpu/drm/nouveau/nv50_display.c
>> +++ b/drivers/gpu/drm/nouveau/nv50_display.c
>> @@ -479,7 +479,7 @@ nv50_display_flip_wait(void *data)
>> {
>> struct nv50_display_flip *flip = data;
>> if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) ==
>> - flip->chan->data);
>> + flip->chan->data)
>> return true;
>> usleep_range(1, 2);
>> return false;
>>
>
>


--
Chen Gang

Asianux Corporation

2013-04-07 03:49:50

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

On Sun, Apr 07, 2013 at 09:03:55AM +0800, Chen Gang wrote:
> Hello Greg KH:
>
> when you have time, can you help to check this patch whether OK ?

No.

2013-04-07 03:57:56

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

On 2013年04月07日 11:49, Greg KH wrote:
> On Sun, Apr 07, 2013 at 09:03:55AM +0800, Chen Gang wrote:
>> Hello Greg KH:
>>
>> when you have time, can you help to check this patch whether OK ?
>
> No.
>
>

Why ? does it also need a test ??

--
Chen Gang

Asianux Corporation

2013-04-07 04:10:01

by Joe Perches

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

On Sun, 2013-04-07 at 11:57 +0800, Chen Gang wrote:
> On 2013年04月07日 11:49, Greg KH wrote:
> > On Sun, Apr 07, 2013 at 09:03:55AM +0800, Chen Gang wrote:
> >> Hello Greg KH:
> >> when you have time, can you help to check this patch whether OK ?
> > No.
> Why ? does it also need a test ??

Greg's not the nouveau maintainer/babysitter and
likely doesn't have the time/hardware/desire to
test it.

The patch should be simply be sent to David Airlie
and dri-devel.

It is a pretty obvious typo though.

2013-04-07 04:20:28

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon


thank you very much for your reply, firstly.


On 2013年04月07日 12:09, Joe Perches wrote:
> On Sun, 2013-04-07 at 11:57 +0800, Chen Gang wrote:
>> > On 2013年04月07日 11:49, Greg KH wrote:
>>> > > On Sun, Apr 07, 2013 at 09:03:55AM +0800, Chen Gang wrote:
>>>> > >> Hello Greg KH:
>>>> > >> when you have time, can you help to check this patch whether OK ?
>>> > > No.
>> > Why ? does it also need a test ??
> Greg's not the nouveau maintainer/babysitter and
> likely doesn't have the time/hardware/desire to
> test it.
>
> The patch should be simply be sent to David Airlie
> and dri-devel.
>

ok, thanks, it seems, I need a little more patience.

:-)


> It is a pretty obvious typo though.
>

I guess so, too.

:-)


--
Chen Gang

Asianux Corporation

2013-04-07 11:24:43

by Paul Menzel

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

Dear Chen,


Am Mittwoch, den 27.03.2013, 15:23 +0800 schrieb Chen Gang:
> need remove semicolon, or always return true.

do you know if this cause any problems? Did you find this reading the
code or by using some tools?

> Signed-off-by: Chen Gang <[email protected]>
> ---
> drivers/gpu/drm/nouveau/nv50_display.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
> index 7f0e6c3..1ddc03e 100644
> --- a/drivers/gpu/drm/nouveau/nv50_display.c
> +++ b/drivers/gpu/drm/nouveau/nv50_display.c
> @@ -479,7 +479,7 @@ nv50_display_flip_wait(void *data)
> {
> struct nv50_display_flip *flip = data;
> if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) ==
> - flip->chan->data);
> + flip->chan->data)
> return true;
> usleep_range(1, 2);
> return false;

Acked-by: Paul Menzel <[email protected]>


Thanks,

Paul


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2013-04-07 11:36:36

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

On 2013年04月07日 19:24, Paul Menzel wrote:
> do you know if this cause any problems? Did you find this reading the
> code or by using some tools?

sorry, I do not know if this can cause any problems.

for this issue, I did not find it by reading code.

I find it by using compiler warnings with EXTRA_CFLAGS=-W


thanks.


:-)


--
Chen Gang

Asianux Corporation