[ccan] [PATCH] timer: remove unnecessary dependency on likely

David Gibson david at gibson.dropbear.id.au
Tue Jun 12 12:36:32 AEST 2018


On Fri, Jun 08, 2018 at 02:45:42AM +0000, Eric Wong wrote:
> I don't see likely/unlikely being used by ccan/timer or any of its
> dependencies right now.
> 
> Running `tools/ccanlint/ccanlint ccan/timer' reveals no regressions
> 
> Signed-off-by: Eric Wong <normalperson at yhbt.net>

Applied, thanks.

> ---
>  ccan/timer/_info   | 1 -
>  ccan/timer/timer.c | 1 -
>  2 files changed, 2 deletions(-)
> 
> diff --git a/ccan/timer/_info b/ccan/timer/_info
> index 9f5ec7a2..d76a7e67 100644
> --- a/ccan/timer/_info
> +++ b/ccan/timer/_info
> @@ -70,7 +70,6 @@ int main(int argc, char *argv[])
>  	if (strcmp(argv[1], "depends") == 0) {
>  		printf("ccan/array_size\n");
>  		printf("ccan/ilog\n");
> -		printf("ccan/likely\n");
>  		printf("ccan/list\n");
>  		printf("ccan/time\n");
>  		return 0;
> diff --git a/ccan/timer/timer.c b/ccan/timer/timer.c
> index 91f46393..84d7aa14 100644
> --- a/ccan/timer/timer.c
> +++ b/ccan/timer/timer.c
> @@ -2,7 +2,6 @@
>  #include <ccan/timer/timer.h>
>  #include <ccan/array_size/array_size.h>
>  #include <ccan/ilog/ilog.h>
> -#include <ccan/likely/likely.h>
>  #include <stdlib.h>
>  #include <stdio.h>
>  

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20180612/7c7e5339/attachment.sig>


More information about the ccan mailing list