aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark2014-09-28 13:19:14 -0500
committerRob Clark2014-09-28 13:30:07 -0500
commitc09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba (patch)
treecd867e29920764fe473b5ff80fbf40308d55ba3f
parenta6cddb34105d6d0e488e847028c57db0335e8e85 (diff)
downloadexternal-libdrm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.tar.gz
external-libdrm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.tar.xz
external-libdrm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.zip
fix compile error on 32bit systems
4c2766b (drm_mmap/drm_unmap) brought this error for every .c file that was not #including config.h: In file included from private.h:4:0, from abi16.c:29: ../libdrm.h: In function 'drm_munmap': ../libdrm.h:81:4: error: size of unnamed array is negative Signed-off-by: Rob Clark <robdclark@gmail.com>
-rw-r--r--freedreno/freedreno_bo.c4
-rw-r--r--freedreno/freedreno_device.c4
-rw-r--r--freedreno/freedreno_pipe.c4
-rw-r--r--freedreno/freedreno_ringbuffer.c4
-rw-r--r--freedreno/kgsl/kgsl_bo.c4
-rw-r--r--freedreno/kgsl/kgsl_device.c4
-rw-r--r--freedreno/kgsl/kgsl_pipe.c4
-rw-r--r--freedreno/kgsl/kgsl_ringbuffer.c4
-rw-r--r--freedreno/msm/msm_bo.c4
-rw-r--r--freedreno/msm/msm_device.c4
-rw-r--r--freedreno/msm/msm_pipe.c4
-rw-r--r--freedreno/msm/msm_ringbuffer.c4
-rw-r--r--nouveau/abi16.c4
13 files changed, 52 insertions, 0 deletions
diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c
index dacb34cc..fe8f503d 100644
--- a/freedreno/freedreno_bo.c
+++ b/freedreno/freedreno_bo.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include "freedreno_drmif.h" 33#include "freedreno_drmif.h"
30#include "freedreno_priv.h" 34#include "freedreno_priv.h"
31 35
diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
index 2d3aa339..09bc5e97 100644
--- a/freedreno/freedreno_device.c
+++ b/freedreno/freedreno_device.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include <sys/types.h> 33#include <sys/types.h>
30#include <sys/stat.h> 34#include <sys/stat.h>
31#include <unistd.h> 35#include <unistd.h>
diff --git a/freedreno/freedreno_pipe.c b/freedreno/freedreno_pipe.c
index f55aaa40..54e957b5 100644
--- a/freedreno/freedreno_pipe.c
+++ b/freedreno/freedreno_pipe.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include "freedreno_drmif.h" 33#include "freedreno_drmif.h"
30#include "freedreno_priv.h" 34#include "freedreno_priv.h"
31 35
diff --git a/freedreno/freedreno_ringbuffer.c b/freedreno/freedreno_ringbuffer.c
index def869f2..c13dfe95 100644
--- a/freedreno/freedreno_ringbuffer.c
+++ b/freedreno/freedreno_ringbuffer.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include <assert.h> 33#include <assert.h>
30 34
31#include "freedreno_drmif.h" 35#include "freedreno_drmif.h"
diff --git a/freedreno/kgsl/kgsl_bo.c b/freedreno/kgsl/kgsl_bo.c
index 4e492dde..fab33500 100644
--- a/freedreno/kgsl/kgsl_bo.c
+++ b/freedreno/kgsl/kgsl_bo.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include "kgsl_priv.h" 33#include "kgsl_priv.h"
30 34
31#include <linux/fb.h> 35#include <linux/fb.h>
diff --git a/freedreno/kgsl/kgsl_device.c b/freedreno/kgsl/kgsl_device.c
index fb6d6d2d..5f2dfea4 100644
--- a/freedreno/kgsl/kgsl_device.c
+++ b/freedreno/kgsl/kgsl_device.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include <sys/types.h> 33#include <sys/types.h>
30#include <sys/stat.h> 34#include <sys/stat.h>
31#include <unistd.h> 35#include <unistd.h>
diff --git a/freedreno/kgsl/kgsl_pipe.c b/freedreno/kgsl/kgsl_pipe.c
index 88d9505b..1a795ba3 100644
--- a/freedreno/kgsl/kgsl_pipe.c
+++ b/freedreno/kgsl/kgsl_pipe.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include "kgsl_priv.h" 33#include "kgsl_priv.h"
30 34
31 35
diff --git a/freedreno/kgsl/kgsl_ringbuffer.c b/freedreno/kgsl/kgsl_ringbuffer.c
index da99741e..d1e8321e 100644
--- a/freedreno/kgsl/kgsl_ringbuffer.c
+++ b/freedreno/kgsl/kgsl_ringbuffer.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include <assert.h> 33#include <assert.h>
30 34
31#include "freedreno_ringbuffer.h" 35#include "freedreno_ringbuffer.h"
diff --git a/freedreno/msm/msm_bo.c b/freedreno/msm/msm_bo.c
index 57d87256..0cac1c60 100644
--- a/freedreno/msm/msm_bo.c
+++ b/freedreno/msm/msm_bo.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include "msm_priv.h" 33#include "msm_priv.h"
30 34
31static int bo_allocate(struct msm_bo *msm_bo) 35static int bo_allocate(struct msm_bo *msm_bo)
diff --git a/freedreno/msm/msm_device.c b/freedreno/msm/msm_device.c
index cadcc854..b9c5a3e3 100644
--- a/freedreno/msm/msm_device.c
+++ b/freedreno/msm/msm_device.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include <sys/types.h> 33#include <sys/types.h>
30#include <sys/stat.h> 34#include <sys/stat.h>
31#include <unistd.h> 35#include <unistd.h>
diff --git a/freedreno/msm/msm_pipe.c b/freedreno/msm/msm_pipe.c
index 56505037..6955f2c9 100644
--- a/freedreno/msm/msm_pipe.c
+++ b/freedreno/msm/msm_pipe.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include "msm_priv.h" 33#include "msm_priv.h"
30 34
31 35
diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c
index e4d9561e..6a4043fb 100644
--- a/freedreno/msm/msm_ringbuffer.c
+++ b/freedreno/msm/msm_ringbuffer.c
@@ -26,6 +26,10 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
29#include <assert.h> 33#include <assert.h>
30 34
31#include "freedreno_ringbuffer.h" 35#include "freedreno_ringbuffer.h"
diff --git a/nouveau/abi16.c b/nouveau/abi16.c
index f34175e0..ae13821b 100644
--- a/nouveau/abi16.c
+++ b/nouveau/abi16.c
@@ -22,6 +22,10 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26# include <config.h>
27#endif
28
25#include <stdlib.h> 29#include <stdlib.h>
26#include <stdint.h> 30#include <stdint.h>
27#include <stddef.h> 31#include <stddef.h>