The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / x11r7 / xdriver_xf86-video-imx / 0001-Update-to-newer-swap-macros.patch
1 From fc7f191a1a0f290a4e808dd8f9bd58ba1dbd2be4 Mon Sep 17 00:00:00 2001
2 From: Otavio Salvador <otavio@ossystems.com.br>
3 Date: Sat, 29 Dec 2012 18:00:36 -0200
4 Subject: [PATCH 1/2] ext: Update to newer swap macros
5
6 The swap macros now use an internal temporary variable so we need to
7 adapt the code according.
8
9 Upstream-Status: Pending
10
11 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 ---
13  src/imx_ext.c |   16 ++++++----------
14  1 file changed, 6 insertions(+), 10 deletions(-)
15
16 diff --git a/src/imx_ext.c b/src/imx_ext.c
17 index f12469a..710cba4 100644
18 --- a/src/imx_ext.c
19 +++ b/src/imx_ext.c
20 @@ -57,8 +57,6 @@ void imxExtInit()
21  static int
22  Proc_IMX_EXT_GetPixmapPhysAddr(ClientPtr client)
23  {
24 -       int n;
25 -
26         REQUEST(xIMX_EXT_GetPixmapPhysAddrReq);
27         REQUEST_SIZE_MATCH(xIMX_EXT_GetPixmapPhysAddrReq);
28  
29 @@ -96,10 +94,10 @@ Proc_IMX_EXT_GetPixmapPhysAddr(ClientPtr client)
30         /* Check if any reply values need byte swapping */
31         if (client->swapped) {
32  
33 -               swaps(&rep.sequenceNumber, n);
34 -               swapl(&rep.length, n);
35 -               swapl(&rep.pixmapPhysAddr, n);
36 -               swapl(&rep.pixmapPitch, n);
37 +               swaps(&rep.sequenceNumber);
38 +               swapl(&rep.length);
39 +               swapl(&rep.pixmapPhysAddr);
40 +               swapl(&rep.pixmapPitch);
41         }
42  
43         /* Reply to client */
44 @@ -123,16 +121,14 @@ Proc_IMX_EXT_Dispatch(ClientPtr client)
45  static int
46  SProc_IMX_EXT_GetPixmapPhysAddr(ClientPtr client)
47  {
48 -       int n;
49 -
50         REQUEST(xIMX_EXT_GetPixmapPhysAddrReq);
51  
52         /* Swap request message length and verify it is correct. */
53 -       swaps(&stuff->length, n);
54 +       swaps(&stuff->length);
55         REQUEST_SIZE_MATCH(xIMX_EXT_GetPixmapPhysAddrReq);
56  
57         /* Swap remaining request message parameters. */
58 -       swapl(&stuff->pixmap, n);
59 +       swapl(&stuff->pixmap);
60  
61         return Proc_IMX_EXT_GetPixmapPhysAddr(client);
62  }
63 -- 
64 1.7.10.4
65