Fix build for XServer 1.13

Submitted by Jochen Rollwagen on March 5, 2017, 10:38 a.m.

Details

Message ID 58BBEAB7.60606@t-online.de
State New
Headers show
Series "Fix build for XServer 1.13" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Jochen Rollwagen March 5, 2017, 10:38 a.m.
Latest git build stops with the error message

radeon_kms.c: In function 'RADEONWindowExposures_oneshot':
radeon_kms.c:1644:45: error: expected expression before 'RegionPtr'
      pScreen->WindowExposures(pWin, pRegion, RegionPtr pBSRegion);

This patch fixes the build.
---
  src/radeon_kms.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

  #endif

Patch hide | download patch | download mbox

From 8246f1af42cd174501c95c0ba5c00908ace41de9 Mon Sep 17 00:00:00 2001
From: Jochen Rollwagen <joro-2013@t-online.de>
Date: Sun, 5 Mar 2017 11:32:38 +0100
Subject: [PATCH xf86-video-ati] Fix build for XServer 1.13

Latest git build stops with the error message

radeon_kms.c: In function 'RADEONWindowExposures_oneshot':
radeon_kms.c:1644:45: error: expected expression before 'RegionPtr'
     pScreen->WindowExposures(pWin, pRegion, RegionPtr pBSRegion);

This patch fixes the build.
---
 src/radeon_kms.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 572dfcc..7a561fa 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1641,7 +1641,7 @@  static void RADEONWindowExposures_oneshot(WindowPtr pWin, RegionPtr pRegion
 
     pScreen->WindowExposures = info->WindowExposures;
 #if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,16,99,901,0)
-    pScreen->WindowExposures(pWin, pRegion, RegionPtr pBSRegion);
+    pScreen->WindowExposures(pWin, pRegion, pBSRegion);
 #else
     pScreen->WindowExposures(pWin, pRegion);
 #endif
-- 
1.7.9.5


Comments

On 05/03/17 07:38 PM, Jochen Rollwagen wrote:
> Latest git build stops with the error message
> 
> radeon_kms.c: In function 'RADEONWindowExposures_oneshot':
> radeon_kms.c:1644:45: error: expected expression before 'RegionPtr'
>      pScreen->WindowExposures(pWin, pRegion, RegionPtr pBSRegion);
> 
> This patch fixes the build.
> ---
>  src/radeon_kms.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index 572dfcc..7a561fa 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -1641,7 +1641,7 @@ static void
> RADEONWindowExposures_oneshot(WindowPtr pWin, RegionPtr pRegion
> 
>      pScreen->WindowExposures = info->WindowExposures;
>  #if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,16,99,901,0)
> -    pScreen->WindowExposures(pWin, pRegion, RegionPtr pBSRegion);
> +    pScreen->WindowExposures(pWin, pRegion, pBSRegion);
>  #else
>      pScreen->WindowExposures(pWin, pRegion);
>  #endif

Reviewed and pushed, thanks!


P.S. In the future, please add your Signed-off-by to patches you want to
be applied.