[Accel-config] Re: [PATCH] accel-config/test: Remove unused global variable ms_timeout

Ramesh Thomas <ramesh.thomas at intel.com> Thu, 28 Apr 2022 14:48:12 -0700
Newsgroups dev.linux.lists.accel-config
Message-ID <[email protected]>
This gives compilation error

/usr/local/bin/ld: dsa_test.o: in function `main':
/home/rt/dsa/idxd-config/test/dsa_test.c:687: undefined reference to 
`ms_timeout'
/usr/local/bin/ld: dsa.o: in function `dsa_wait_noop':
/home/rt/dsa/idxd-config/test/dsa.c:617: undefined reference to `ms_timeout'
/usr/local/bin/ld: dsa.o: in function `dsa_wait_batch':
/home/rt/dsa/idxd-config/test/dsa.c:664: undefined reference to `ms_timeout'
/usr/local/bin/ld: dsa.o: in function `dsa_wait_drain':
/home/rt/dsa/idxd-config/test/dsa.c:679: undefined reference to `ms_timeout'
/usr/local/bin/ld: dsa.o: in function `dsa_wait_memcpy':
/home/rt/dsa/idxd-config/test/dsa.c:726: undefined reference to `ms_timeout'
/usr/local/bin/ld: dsa.o:/home/rt/dsa/idxd-config/test/dsa.c:782: more 
undefined references to `ms_timeout' follow
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:697: dsa_test] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/local/bin/ld: iaa_test.o: in function `main':
/home/rt/dsa/idxd-config/test/iaa_test.c:118: undefined reference to 
`ms_timeout'
/usr/local/bin/ld: iaa.o: in function `iax_wait_noop':
/home/rt/dsa/idxd-config/test/iaa.c:25: undefined reference to `ms_timeout'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:701: iaa_test] Error 1
make[1]: *** [Makefile:754: all-recursive] Error 1
make: *** [Makefile:532: all] Error 2



On 4/28/2022 8:49 AM, Dave Jiang wrote:
> ms_timeout is not used by anything. Remove.
> 
> Signed-off-by: Dave Jiang <dave.jiang(a)intel.com>
> ---
>   test/accel_test.c |    1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/test/accel_test.c b/test/accel_test.c
> index 84ab13e77fa5..24652c7c05d3 100644
> --- a/test/accel_test.c
> +++ b/test/accel_test.c
> @@ -15,7 +15,6 @@
>   #include <accfg/idxd.h>
>   #include "accel_test.h"
>   
> -unsigned int ms_timeout = 5000;
>   int debug_logging;
>   static int umwait_support;
>   
> 
> _______________________________________________
> Accel-config mailing list -- accel-config(a)lists.01.org
> To unsubscribe send an email to accel-config-leave(a)lists.01.org