Skip to contentSkip to conversation

drivers/media: vsp1_video: fix compile error

PATCH In review Anders Roxell 3 participants 3 messages Jan 15, 2016 – Jan 25, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/media: vsp1_video: fix compile error

This was found with the -RT patch enabled, but the fix should apply to non-RT also.

Compilation error without this fix:
../drivers/media/platform/vsp1/vsp1_video.c: In function 'vsp1_pipeline_stopped':
../drivers/media/platform/vsp1/vsp1_video.c:524:2: error: expected expression before 'do'

  spin_unlock_irqrestore(&pipe->irqlock, flags);
    ^
---
 drivers/media/platform/vsp1/vsp1_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/vsp1/vsp1_video.c +1 -1
index 637d0d6..b4dca57 100644
@@ -515,7 +515,7 @@ static bool vsp1_pipeline_stopped(struct vsp1_pipeline *pipe)
 	bool stopped;
 
 	spin_lock_irqsave(&pipe->irqlock, flags);
-	stopped = pipe->state = VSP1_PIPELINE_STOPPED,
+	stopped = pipe->state = VSP1_PIPELINE_STOPPED;
 	spin_unlock_irqrestore(&pipe->irqlock, flags);
 
 	return stopped;
Signature · 1 line
2.1.4
Reviewed-by on v1 1/1
#1 lore raw

Hi Anders,

Thank you for the patch.

Quoted 8 lines · On Friday 15 January 2016 01:09:43 Anders Roxell wrote:

This was found with the -RT patch enabled, but the fix should apply to non-RT also.

Compilation error without this fix:
../drivers/media/platform/vsp1/vsp1_video.c: In function 'vsp1_pipeline_stopped':
../drivers/media/platform/vsp1/vsp1_video.c:524:2: error: expected expression before 'do'

Quoted 4 lines
  spin_unlock_irqrestore(&pipe->irqlock, flags);
    ^

and applied to my tree.

Quoted 17 lines
---
 drivers/media/platform/vsp1/vsp1_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/media/platform/vsp1/vsp1_video.c index 637d0d6..b4dca57 100644

drivers/media/platform/vsp1/vsp1_video.c +1 -1
@@ -515,7 +515,7 @@ static bool vsp1_pipeline_stopped(struct vsp1_pipeline
 *pipe) bool stopped;
 
 	spin_lock_irqsave(&pipe->irqlock, flags);
-	stopped = pipe->state == VSP1_PIPELINE_STOPPED,
+	stopped = pipe->state == VSP1_PIPELINE_STOPPED;
 	spin_unlock_irqrestore(&pipe->irqlock, flags);
 
 	return stopped;
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw

Em Mon, 25 Jan 2016 00:15:28 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 16 lines

Hi Anders,

Thank you for the patch.

Quoted 11 lines · On Friday 15 January 2016 01:09:43 Anders Roxell wrote:

This was found with the -RT patch enabled, but the fix should apply to non-RT also.

Compilation error without this fix:
../drivers/media/platform/vsp1/vsp1_video.c: In function 'vsp1_pipeline_stopped':
../drivers/media/platform/vsp1/vsp1_video.c:524:2: error: expected expression before 'do'

  spin_unlock_irqrestore(&pipe->irqlock, flags);
    ^
Quoted 5 lines
Quoted 1 line

and applied to my tree.

Better to apply this to the fixes branch and send it together with the next set of patches upstream.

Quoted 19 lines
Quoted 18 lines
---
 drivers/media/platform/vsp1/vsp1_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/media/platform/vsp1/vsp1_video.c index 637d0d6..b4dca57 100644

drivers/media/platform/vsp1/vsp1_video.c +1 -1
@@ -515,7 +515,7 @@ static bool vsp1_pipeline_stopped(struct vsp1_pipeline
 *pipe) bool stopped;
 
 	spin_lock_irqsave(&pipe->irqlock, flags);
-	stopped = pipe->state == VSP1_PIPELINE_STOPPED,
+	stopped = pipe->state == VSP1_PIPELINE_STOPPED;
 	spin_unlock_irqrestore(&pipe->irqlock, flags);
 
 	return stopped;