Thread (1 message) 1 message, 1 author, 2014-07-17

Re: [PATCH] iw_cxgb4: fix for 64-bit integer division

From: David Miller <hidden>
Date: 2014-07-17 23:52:30
Also in: linux-rdma

From: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
Date: Thu, 17 Jul 2014 22:44:42 +0400
Hello.

On 07/17/2014 09:01 PM, Hariprasad Shenai wrote:
quoted
Fixed error introduced in commit id 7730b4c (" cxgb4/iw_cxgb4: work
request
logging feature") while compiling on 32 bit architecture reported by
kbuild.
quoted
Signed-off-by: Hariprasad Shenai <redacted>
---
  drivers/infiniband/hw/cxgb4/device.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
quoted
diff --git a/drivers/infiniband/hw/cxgb4/device.c
b/drivers/infiniband/hw/cxgb4/device.c
index df1f1b5..bb0de61 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
[...]
quoted
@@ -150,7 +151,7 @@ static int wr_log_show(struct seq_file *seq, void
*v)
  	int prev_ts_set = 0;
  	int idx, end;

-#define ts2ns(ts) ((ts) * dev->rdev.lldi.cclk_ps / 1000)
+#define ts2ns(ts) div64_ul((ts) * dev->rdev.lldi.cclk_ps , 1000)
   Don't need space before comma.
I killed the space when applying this patch, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help