Skip to contentSkip to conversation

uio-module-drv-test: Fix build with clang

PATCH In review Khem Raj 3 participants 5 messages May 1, 2022 – May 2, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 uio-module-drv-test: Fix build with clang

---
 ...-instead-of-int8_t-in-main-signature.patch | 89 +++++++++++++++++++
 .../uio-module-drv/uio-module-drv-test_git.bb |  4 +
 2 files changed, 93 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch new file +89 -0
new file mode 100644
index 00000000..172ed7cb
@@ -0,0 +1,89 @@
+From 972b8514cc99e76508363d2304bb13c27df99cd6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 1 May 2022 09:39:42 -0700
+Subject: [PATCH] tests: Use char instead of int8_t in main signature
+
+int8_t is a define in C99 which is flagged by C compiler ( clang )
+
+Fixes errors like below
+
+pruss_uio_test.c:264:6: error: second parameter of 'main' (argument array) must be of type 'char **'
+void main (int32_t argc, int8_t **argv)
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ test/gen_ipc_int.c                       | 2 +-
+ test/prussdrv_test/test/pruss_uio_test.c | 2 +-
+ test/uio_cic2_int_multithread_test.c     | 2 +-
+ test/uio_int_test.c                      | 2 +-
+ test/uio_mem_test.c                      | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test/gen_ipc_int.c b/test/gen_ipc_int.c
+index 2be3a9d..313c76a 100644
+--- a/test/gen_ipc_int.c
++++ b/test/gen_ipc_int.c
+@@ -26,7 +26,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+ 
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int size; 
+ 	char *map ;
+diff --git a/test/prussdrv_test/test/pruss_uio_test.c b/test/prussdrv_test/test/pruss_uio_test.c
+index 5af4a2c..7391fbd 100644
+--- a/test/prussdrv_test/test/pruss_uio_test.c
++++ b/test/prussdrv_test/test/pruss_uio_test.c
+@@ -261,7 +261,7 @@ int bsp_init()
+ 
+ }
+ 
+-void main (int32_t argc, int8_t **argv)
++void main (int32_t argc, char **argv)
+ {
+     int ret_val;
+     
+diff --git a/test/uio_cic2_int_multithread_test.c b/test/uio_cic2_int_multithread_test.c
+index 0d9f126..15db958 100755
+--- a/test/uio_cic2_int_multithread_test.c
++++ b/test/uio_cic2_int_multithread_test.c
+@@ -287,7 +287,7 @@ void *wait_inthread_for_interrupt(void *arg)
+ 	}
+ }
+ 
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	thread_arg_t thread_arg[MAX_NUM_THREADS];
+ 	int ret, err;
+diff --git a/test/uio_int_test.c b/test/uio_int_test.c
+index 7095a0a..e0ba5a9 100644
+--- a/test/uio_int_test.c
++++ b/test/uio_int_test.c
+@@ -161,7 +161,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+ 
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_uio;
+ 	int ret;
+diff --git a/test/uio_mem_test.c b/test/uio_mem_test.c
+index aad13ac..3cdba37 100644
+--- a/test/uio_mem_test.c
++++ b/test/uio_mem_test.c
+@@ -121,7 +121,7 @@ err_exit1:
+ 	return ret;
+ }
+ 
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_map;
+ 	int ret;
+-- 
+2.36.0
+
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb +4 -0
index dc17a1e9..41270042 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "Test code for user space IO (UIO) driver"
 
 include uio-module-drv.inc
 
+SRC_URI += "file://0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch"
+
 PR = "r1"
 
 COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
@@ -33,3 +35,5 @@ do_install:append:ti33x () {
 do_install:append:ti43x () {
         install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
 }
+
+CLEANBROKEN = "1"
Signature · 1 line
2.36.0
#1 lore raw

Was this patch sent to the upstream repository maintainer? This seems like a very basic change that should work for all compilers and so should be pushed upstream.

Quoted 132 lines · Khem Raj
---
  ...-instead-of-int8_t-in-main-signature.patch | 89 +++++++++++++++++++
  .../uio-module-drv/uio-module-drv-test_git.bb |  4 +
  2 files changed, 93 insertions(+)

create mode 100644 meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch

meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch new file +89 -0
new file mode 100644
index 00000000..172ed7cb
@@ -0,0 +1,89 @@
+From 972b8514cc99e76508363d2304bb13c27df99cd6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 1 May 2022 09:39:42 -0700
+Subject: [PATCH] tests: Use char instead of int8_t in main signature
+
+int8_t is a define in C99 which is flagged by C compiler ( clang )
+
+Fixes errors like below
+
+pruss_uio_test.c:264:6: error: second parameter of 'main' (argument array) must be of type 'char **'
+void main (int32_t argc, int8_t **argv)
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ test/gen_ipc_int.c                       | 2 +-
+ test/prussdrv_test/test/pruss_uio_test.c | 2 +-
+ test/uio_cic2_int_multithread_test.c     | 2 +-
+ test/uio_int_test.c                      | 2 +-
+ test/uio_mem_test.c                      | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test/gen_ipc_int.c b/test/gen_ipc_int.c
+index 2be3a9d..313c76a 100644
+--- a/test/gen_ipc_int.c
++++ b/test/gen_ipc_int.c
+@@ -26,7 +26,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int size;
+ 	char *map ;
+diff --git a/test/prussdrv_test/test/pruss_uio_test.c b/test/prussdrv_test/test/pruss_uio_test.c
+index 5af4a2c..7391fbd 100644
+--- a/test/prussdrv_test/test/pruss_uio_test.c
++++ b/test/prussdrv_test/test/pruss_uio_test.c
+@@ -261,7 +261,7 @@ int bsp_init()
+
+ }
+
+-void main (int32_t argc, int8_t **argv)
++void main (int32_t argc, char **argv)
+ {
+     int ret_val;
+
+diff --git a/test/uio_cic2_int_multithread_test.c b/test/uio_cic2_int_multithread_test.c
+index 0d9f126..15db958 100755
+--- a/test/uio_cic2_int_multithread_test.c
++++ b/test/uio_cic2_int_multithread_test.c
+@@ -287,7 +287,7 @@ void *wait_inthread_for_interrupt(void *arg)
+ 	}
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	thread_arg_t thread_arg[MAX_NUM_THREADS];
+ 	int ret, err;
+diff --git a/test/uio_int_test.c b/test/uio_int_test.c
+index 7095a0a..e0ba5a9 100644
+--- a/test/uio_int_test.c
++++ b/test/uio_int_test.c
+@@ -161,7 +161,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_uio;
+ 	int ret;
+diff --git a/test/uio_mem_test.c b/test/uio_mem_test.c
+index aad13ac..3cdba37 100644
+--- a/test/uio_mem_test.c
++++ b/test/uio_mem_test.c
+@@ -121,7 +121,7 @@ err_exit1:
+ 	return ret;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_map;
+ 	int ret;
+--
+2.36.0
+
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb +4 -1
index dc17a1e9..41270042 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "Test code for user space IO (UIO) driver"
 
  include uio-module-drv.inc
 
+SRC_URI += "file://0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch"
+
  PR = "r1"
 
  COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
@@ -33,3 +35,5 @@ do_install:append:ti33x () {
  do_install:append:ti43x () {
          install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
  }
+
+CLEANBROKEN = "1"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#14638): https://lists.yoctoproject.org/g/meta-ti/message/14638
Mute This Topic: https://lists.yoctoproject.org/mt/90818149/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#2 lore raw
Quoted 4 lines · Ryan Eatmon via lists.yoctoproject.org

Was this patch sent to the upstream repository maintainer? This seems like a very basic change that should work for all compilers and so should be pushed upstream.

If only the upstream project was still alive:

https://git.ti.com/cgit/keystone-linux/uio-module-drv/

This code is used for PRU using UIO on AM3/BBB, AM4, AM5 and DRA7.

Quoted 129 lines · Khem Raj
Quoted 123 lines
---
 ...-instead-of-int8_t-in-main-signature.patch | 89 +++++++++++++++++++
 .../uio-module-drv/uio-module-drv-test_git.bb |  4 +
 2 files changed, 93 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch new file +89 -0
new file mode 100644
index 00000000..172ed7cb
@@ -0,0 +1,89 @@
+From 972b8514cc99e76508363d2304bb13c27df99cd6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 1 May 2022 09:39:42 -0700
+Subject: [PATCH] tests: Use char instead of int8_t in main signature
+
+int8_t is a define in C99 which is flagged by C compiler ( clang )
+
+Fixes errors like below
+
+pruss_uio_test.c:264:6: error: second parameter of 'main' (argument array) must be of type 'char **'
+void main (int32_t argc, int8_t **argv)
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ test/gen_ipc_int.c                       | 2 +-
+ test/prussdrv_test/test/pruss_uio_test.c | 2 +-
+ test/uio_cic2_int_multithread_test.c     | 2 +-
+ test/uio_int_test.c                      | 2 +-
+ test/uio_mem_test.c                      | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test/gen_ipc_int.c b/test/gen_ipc_int.c
+index 2be3a9d..313c76a 100644
+--- a/test/gen_ipc_int.c
++++ b/test/gen_ipc_int.c
+@@ -26,7 +26,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int size;
+ 	char *map ;
+diff --git a/test/prussdrv_test/test/pruss_uio_test.c b/test/prussdrv_test/test/pruss_uio_test.c
+index 5af4a2c..7391fbd 100644
+--- a/test/prussdrv_test/test/pruss_uio_test.c
++++ b/test/prussdrv_test/test/pruss_uio_test.c
+@@ -261,7 +261,7 @@ int bsp_init()
+
+ }
+
+-void main (int32_t argc, int8_t **argv)
++void main (int32_t argc, char **argv)
+ {
+     int ret_val;
+
+diff --git a/test/uio_cic2_int_multithread_test.c b/test/uio_cic2_int_multithread_test.c
+index 0d9f126..15db958 100755
+--- a/test/uio_cic2_int_multithread_test.c
++++ b/test/uio_cic2_int_multithread_test.c
+@@ -287,7 +287,7 @@ void *wait_inthread_for_interrupt(void *arg)
+ 	}
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	thread_arg_t thread_arg[MAX_NUM_THREADS];
+ 	int ret, err;
+diff --git a/test/uio_int_test.c b/test/uio_int_test.c
+index 7095a0a..e0ba5a9 100644
+--- a/test/uio_int_test.c
++++ b/test/uio_int_test.c
+@@ -161,7 +161,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_uio;
+ 	int ret;
+diff --git a/test/uio_mem_test.c b/test/uio_mem_test.c
+index aad13ac..3cdba37 100644
+--- a/test/uio_mem_test.c
++++ b/test/uio_mem_test.c
+@@ -121,7 +121,7 @@ err_exit1:
+ 	return ret;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_map;
+ 	int ret;
+--
+2.36.0
+
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb +4 -0
index dc17a1e9..41270042 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "Test code for user space IO (UIO) driver"
 include uio-module-drv.inc
+SRC_URI += "file://0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch"
+
 PR = "r1"
 COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
@@ -33,3 +35,5 @@ do_install:append:ti33x () {
 do_install:append:ti43x () {
         install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
 }
+
+CLEANBROKEN = "1"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
Signature · 4 lines
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964
#3 lore raw
Quoted 11 lines · Denys Dmytriyenko
Quoted 4 lines · Ryan Eatmon via lists.yoctoproject.org

Was this patch sent to the upstream repository maintainer? This seems like a very basic change that should work for all compilers and so should be pushed upstream.

If only the upstream project was still alive:

https://git.ti.com/cgit/keystone-linux/uio-module-drv/

This code is used for PRU using UIO on AM3/BBB, AM4, AM5 and DRA7.

Yeah, I'm realizing that now and attempting to manually make the same changes and commit them. Then we can change the SRCREV to point to the new version.

Quoted 131 lines
Quoted 130 lines · Khem Raj
Quoted 123 lines
---
  ...-instead-of-int8_t-in-main-signature.patch | 89 +++++++++++++++++++
  .../uio-module-drv/uio-module-drv-test_git.bb |  4 +
  2 files changed, 93 insertions(+)

create mode 100644 meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch

meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch new file +89 -0
new file mode 100644
index 00000000..172ed7cb
@@ -0,0 +1,89 @@
+From 972b8514cc99e76508363d2304bb13c27df99cd6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 1 May 2022 09:39:42 -0700
+Subject: [PATCH] tests: Use char instead of int8_t in main signature
+
+int8_t is a define in C99 which is flagged by C compiler ( clang )
+
+Fixes errors like below
+
+pruss_uio_test.c:264:6: error: second parameter of 'main' (argument array) must be of type 'char **'
+void main (int32_t argc, int8_t **argv)
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ test/gen_ipc_int.c                       | 2 +-
+ test/prussdrv_test/test/pruss_uio_test.c | 2 +-
+ test/uio_cic2_int_multithread_test.c     | 2 +-
+ test/uio_int_test.c                      | 2 +-
+ test/uio_mem_test.c                      | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test/gen_ipc_int.c b/test/gen_ipc_int.c
+index 2be3a9d..313c76a 100644
+--- a/test/gen_ipc_int.c
++++ b/test/gen_ipc_int.c
+@@ -26,7 +26,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int size;
+ 	char *map ;
+diff --git a/test/prussdrv_test/test/pruss_uio_test.c b/test/prussdrv_test/test/pruss_uio_test.c
+index 5af4a2c..7391fbd 100644
+--- a/test/prussdrv_test/test/pruss_uio_test.c
++++ b/test/prussdrv_test/test/pruss_uio_test.c
+@@ -261,7 +261,7 @@ int bsp_init()
+
+ }
+
+-void main (int32_t argc, int8_t **argv)
++void main (int32_t argc, char **argv)
+ {
+     int ret_val;
+
+diff --git a/test/uio_cic2_int_multithread_test.c b/test/uio_cic2_int_multithread_test.c
+index 0d9f126..15db958 100755
+--- a/test/uio_cic2_int_multithread_test.c
++++ b/test/uio_cic2_int_multithread_test.c
+@@ -287,7 +287,7 @@ void *wait_inthread_for_interrupt(void *arg)
+ 	}
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	thread_arg_t thread_arg[MAX_NUM_THREADS];
+ 	int ret, err;
+diff --git a/test/uio_int_test.c b/test/uio_int_test.c
+index 7095a0a..e0ba5a9 100644
+--- a/test/uio_int_test.c
++++ b/test/uio_int_test.c
+@@ -161,7 +161,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_uio;
+ 	int ret;
+diff --git a/test/uio_mem_test.c b/test/uio_mem_test.c
+index aad13ac..3cdba37 100644
+--- a/test/uio_mem_test.c
++++ b/test/uio_mem_test.c
+@@ -121,7 +121,7 @@ err_exit1:
+ 	return ret;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+ 	int  fd_map;
+ 	int ret;
+--
+2.36.0
+
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb +4 -0
index dc17a1e9..41270042 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "Test code for user space IO (UIO) driver"
  include uio-module-drv.inc
+SRC_URI += "file://0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch"
+
  PR = "r1"
  COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
@@ -33,3 +35,5 @@ do_install:append:ti33x () {
  do_install:append:ti43x () {
          install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
  }
+
+CLEANBROKEN = "1"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
author
#4 lore raw
Quoted 12 lines · Ryan Eatmon
Quoted 8 lines · Denys Dmytriyenko
Quoted 4 lines · Ryan Eatmon via lists.yoctoproject.org

Was this patch sent to the upstream repository maintainer? This seems like a very basic change that should work for all compilers and so should be pushed upstream.

If only the upstream project was still alive:

Quoted 7 lines
Quoted 3 lines

https://git.ti.com/cgit/keystone-linux/uio-module-drv/

This code is used for PRU using UIO on AM3/BBB, AM4, AM5 and DRA7.

Yeah, I'm realizing that now and attempting to manually make the same changes and commit them. Then we can change the SRCREV to point to the new version.

Thanks

Quoted 137 lines
Quoted 123 lines
Quoted 123 lines · Khem Raj
Quoted 120 lines
---
  ...-instead-of-int8_t-in-main-signature.patch | 89 +++++++++++++++++++
  .../uio-module-drv/uio-module-drv-test_git.bb |  4 +
  2 files changed, 93 insertions(+)

create mode 100644 meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch

meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test/0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch new file +89 -0
new file mode 100644
index 00000000..172ed7cb
@@ -0,0 +1,89 @@
+From 972b8514cc99e76508363d2304bb13c27df99cd6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 1 May 2022 09:39:42 -0700
+Subject: [PATCH] tests: Use char instead of int8_t in main signature
+
+int8_t is a define in C99 which is flagged by C compiler ( clang )
+
+Fixes errors like below
+
+pruss_uio_test.c:264:6: error: second parameter of 'main' (argument array) must be of type 'char **'
+void main (int32_t argc, int8_t **argv)
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ test/gen_ipc_int.c                       | 2 +-
+ test/prussdrv_test/test/pruss_uio_test.c | 2 +-
+ test/uio_cic2_int_multithread_test.c     | 2 +-
+ test/uio_int_test.c                      | 2 +-
+ test/uio_mem_test.c                      | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test/gen_ipc_int.c b/test/gen_ipc_int.c
+index 2be3a9d..313c76a 100644
+--- a/test/gen_ipc_int.c
++++ b/test/gen_ipc_int.c
+@@ -26,7 +26,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+   int size;
+   char *map ;
+diff --git a/test/prussdrv_test/test/pruss_uio_test.c b/test/prussdrv_test/test/pruss_uio_test.c
+index 5af4a2c..7391fbd 100644
+--- a/test/prussdrv_test/test/pruss_uio_test.c
++++ b/test/prussdrv_test/test/pruss_uio_test.c
+@@ -261,7 +261,7 @@ int bsp_init()
+
+ }
+
+-void main (int32_t argc, int8_t **argv)
++void main (int32_t argc, char **argv)
+ {
+     int ret_val;
+
+diff --git a/test/uio_cic2_int_multithread_test.c b/test/uio_cic2_int_multithread_test.c
+index 0d9f126..15db958 100755
+--- a/test/uio_cic2_int_multithread_test.c
++++ b/test/uio_cic2_int_multithread_test.c
+@@ -287,7 +287,7 @@ void *wait_inthread_for_interrupt(void *arg)
+   }
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+   thread_arg_t thread_arg[MAX_NUM_THREADS];
+   int ret, err;
+diff --git a/test/uio_int_test.c b/test/uio_int_test.c
+index 7095a0a..e0ba5a9 100644
+--- a/test/uio_int_test.c
++++ b/test/uio_int_test.c
+@@ -161,7 +161,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
+              + end->tv_nsec - start->tv_nsec;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+   int  fd_uio;
+   int ret;
+diff --git a/test/uio_mem_test.c b/test/uio_mem_test.c
+index aad13ac..3cdba37 100644
+--- a/test/uio_mem_test.c
++++ b/test/uio_mem_test.c
+@@ -121,7 +121,7 @@ err_exit1:
+   return ret;
+ }
+
+-void main(int32_t argc, int8_t **argv)
++void main(int32_t argc, char **argv)
+ {
+   int  fd_map;
+   int ret;
+--
+2.36.0
+
meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb +4 -0
index dc17a1e9..41270042 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "Test code for user space IO (UIO) driver"
  include uio-module-drv.inc
+SRC_URI += "file://0001-tests-Use-char-instead-of-int8_t-in-main-signature.patch"
+
  PR = "r1"
  COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
@@ -33,3 +35,5 @@ do_install:append:ti33x () {
  do_install:append:ti43x () {
          install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
  }
+
+CLEANBROKEN = "1"
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS

--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS