[Mesa-dev] [PATCH] drm-atomic: Include header file

2017-03-13 Thread Gary Bisson
Include header file to fix the following build error: drm-atomic.c: In function ‘get_plane_id’: drm-atomic.c:290:44: error: ‘DRM_MODE_OBJECT_PLANE’ undeclared (first use in this function) drmModeObjectGetProperties(drm.fd, id, DRM_MODE_OBJECT_PLANE); This error only happens when using a tool

Re: [Mesa-dev] [PATCH] drm-atomic: Include header file

2017-03-13 Thread Fabio Estevam
Hi Gary, On Mon, Mar 13, 2017 at 6:42 AM, Gary Bisson wrote: > Include header file to fix the following build > error: > drm-atomic.c: In function ‘get_plane_id’: > drm-atomic.c:290:44: error: ‘DRM_MODE_OBJECT_PLANE’ undeclared (first > use in this function) > drmModeObjectGetProperties(drm

Re: [Mesa-dev] [PATCH] drm-atomic: Include header file

2017-03-10 Thread Emil Velikov
On 4 March 2017 at 15:01, Fabio Estevam wrote: > Include header file to fix the following build warning: > > CC kmscube-drm.o > drm-atomic.c: In function 'init_drm_atomic': > drm-atomic.c:346:14: warning: implicit declaration of function 'calloc' > [-Wimplicit-function-declaration] > d

[Mesa-dev] [PATCH] drm-atomic: Include header file

2017-03-04 Thread Fabio Estevam
Include header file to fix the following build warning: CC kmscube-drm.o drm-atomic.c: In function 'init_drm_atomic': drm-atomic.c:346:14: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration] drm.plane = calloc(1, sizeof(*drm.plane)); ^ drm