[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1456141787-18143-1-git-send-email-emmanuel.grumbach@intel.com>
Date: Mon, 22 Feb 2016 13:49:47 +0200
From: Emmanuel Grumbach <emmanuel.grumbach@...el.com>
To: netdev@...r.kernel.org
Cc: linux-wireless@...r.kernel.org,
Emmanuel Grumbach <emmanuel.grumbach@...el.com>
Subject: [PATCH] codel: cast the output of MS2TIME to codel_time_t
This will allow to pass the typecheck in the comparators:
codel_time_{after,before}
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@...el.com>
---
include/net/codel.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/codel.h b/include/net/codel.h
index 267e702..0d92e39 100644
--- a/include/net/codel.h
+++ b/include/net/codel.h
@@ -62,7 +62,7 @@
typedef u32 codel_time_t;
typedef s32 codel_tdiff_t;
#define CODEL_SHIFT 10
-#define MS2TIME(a) ((a * NSEC_PER_MSEC) >> CODEL_SHIFT)
+#define MS2TIME(a) ((codel_time_t)((a * NSEC_PER_MSEC) >> CODEL_SHIFT))
static inline codel_time_t codel_get_time(void)
{
--
2.5.0
Powered by blists - more mailing lists