dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libdrm 1/2] tests/amdgpu: Include config.h first
@ 2015-08-17  9:44 Michel Dänzer
  2015-08-17  9:44 ` [PATCH libdrm 2/2] tests/amdgpu: Remove unused local variable 'i' Michel Dänzer
  2015-08-17  9:50 ` [PATCH libdrm 1/2] tests/amdgpu: Include config.h first Christian König
  0 siblings, 2 replies; 3+ messages in thread
From: Michel Dänzer @ 2015-08-17  9:44 UTC (permalink / raw)
  To: dri-devel

From: Michel Dänzer <michel.daenzer@amd.com>

Fixes build failure on 32-bit because _FILE_OFFSET_BITS wasn't defined to
64.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 tests/amdgpu/amdgpu_test.c | 5 +++++
 tests/amdgpu/basic_tests.c | 5 +++++
 tests/amdgpu/bo_tests.c    | 5 +++++
 tests/amdgpu/cs_tests.c    | 5 +++++
 tests/amdgpu/vce_tests.c   | 4 ++++
 5 files changed, 24 insertions(+)

diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c
index ed27e24..6568990 100644
--- a/tests/amdgpu/amdgpu_test.c
+++ b/tests/amdgpu/amdgpu_test.c
@@ -20,6 +20,11 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index 44c6e4d..7874039 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -20,6 +20,11 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c
index e4040d6..993895d 100644
--- a/tests/amdgpu/bo_tests.c
+++ b/tests/amdgpu/bo_tests.c
@@ -20,6 +20,11 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 
 #include "CUnit/Basic.h"
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c
index faceb83..416f36b 100644
--- a/tests/amdgpu/cs_tests.c
+++ b/tests/amdgpu/cs_tests.c
@@ -20,6 +20,11 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 
 #include "CUnit/Basic.h"
diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c
index b549392..0542654 100644
--- a/tests/amdgpu/vce_tests.c
+++ b/tests/amdgpu/vce_tests.c
@@ -21,6 +21,10 @@
  *
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <inttypes.h>
 
-- 
2.5.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH libdrm 2/2] tests/amdgpu: Remove unused local variable 'i'
  2015-08-17  9:44 [PATCH libdrm 1/2] tests/amdgpu: Include config.h first Michel Dänzer
@ 2015-08-17  9:44 ` Michel Dänzer
  2015-08-17  9:50 ` [PATCH libdrm 1/2] tests/amdgpu: Include config.h first Christian König
  1 sibling, 0 replies; 3+ messages in thread
From: Michel Dänzer @ 2015-08-17  9:44 UTC (permalink / raw)
  To: dri-devel

From: Michel Dänzer <michel.daenzer@amd.com>

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 tests/amdgpu/vce_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c
index 0542654..32fc001 100644
--- a/tests/amdgpu/vce_tests.c
+++ b/tests/amdgpu/vce_tests.c
@@ -400,7 +400,7 @@ static void check_result(struct amdgpu_vce_encode *enc)
 static void amdgpu_cs_vce_encode(void)
 {
 	uint32_t vbuf_size, bs_size = 0x154000, cpb_size;
-	int i, r;
+	int r;
 
 	vbuf_size = enc.width * enc.height * 1.5;
 	cpb_size = vbuf_size * 10;
-- 
2.5.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH libdrm 1/2] tests/amdgpu: Include config.h first
  2015-08-17  9:44 [PATCH libdrm 1/2] tests/amdgpu: Include config.h first Michel Dänzer
  2015-08-17  9:44 ` [PATCH libdrm 2/2] tests/amdgpu: Remove unused local variable 'i' Michel Dänzer
@ 2015-08-17  9:50 ` Christian König
  1 sibling, 0 replies; 3+ messages in thread
From: Christian König @ 2015-08-17  9:50 UTC (permalink / raw)
  To: Michel Dänzer, dri-devel

On 17.08.2015 11:44, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> Fixes build failure on 32-bit because _FILE_OFFSET_BITS wasn't defined to
> 64.
>
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

For both Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   tests/amdgpu/amdgpu_test.c | 5 +++++
>   tests/amdgpu/basic_tests.c | 5 +++++
>   tests/amdgpu/bo_tests.c    | 5 +++++
>   tests/amdgpu/cs_tests.c    | 5 +++++
>   tests/amdgpu/vce_tests.c   | 4 ++++
>   5 files changed, 24 insertions(+)
>
> diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c
> index ed27e24..6568990 100644
> --- a/tests/amdgpu/amdgpu_test.c
> +++ b/tests/amdgpu/amdgpu_test.c
> @@ -20,6 +20,11 @@
>    * OTHER DEALINGS IN THE SOFTWARE.
>    *
>   */
> +
> +#ifdef HAVE_CONFIG_H
> +#include "config.h"
> +#endif
> +
>   #include <string.h>
>   #include <stdio.h>
>   #include <stdlib.h>
> diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
> index 44c6e4d..7874039 100644
> --- a/tests/amdgpu/basic_tests.c
> +++ b/tests/amdgpu/basic_tests.c
> @@ -20,6 +20,11 @@
>    * OTHER DEALINGS IN THE SOFTWARE.
>    *
>   */
> +
> +#ifdef HAVE_CONFIG_H
> +#include "config.h"
> +#endif
> +
>   #include <stdio.h>
>   #include <stdlib.h>
>   #include <unistd.h>
> diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c
> index e4040d6..993895d 100644
> --- a/tests/amdgpu/bo_tests.c
> +++ b/tests/amdgpu/bo_tests.c
> @@ -20,6 +20,11 @@
>    * OTHER DEALINGS IN THE SOFTWARE.
>    *
>   */
> +
> +#ifdef HAVE_CONFIG_H
> +#include "config.h"
> +#endif
> +
>   #include <stdio.h>
>   
>   #include "CUnit/Basic.h"
> diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c
> index faceb83..416f36b 100644
> --- a/tests/amdgpu/cs_tests.c
> +++ b/tests/amdgpu/cs_tests.c
> @@ -20,6 +20,11 @@
>    * OTHER DEALINGS IN THE SOFTWARE.
>    *
>   */
> +
> +#ifdef HAVE_CONFIG_H
> +#include "config.h"
> +#endif
> +
>   #include <stdio.h>
>   
>   #include "CUnit/Basic.h"
> diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c
> index b549392..0542654 100644
> --- a/tests/amdgpu/vce_tests.c
> +++ b/tests/amdgpu/vce_tests.c
> @@ -21,6 +21,10 @@
>    *
>   */
>   
> +#ifdef HAVE_CONFIG_H
> +#include "config.h"
> +#endif
> +
>   #include <stdio.h>
>   #include <inttypes.h>
>   

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-17  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-17  9:44 [PATCH libdrm 1/2] tests/amdgpu: Include config.h first Michel Dänzer
2015-08-17  9:44 ` [PATCH libdrm 2/2] tests/amdgpu: Remove unused local variable 'i' Michel Dänzer
2015-08-17  9:50 ` [PATCH libdrm 1/2] tests/amdgpu: Include config.h first Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox