[PATCH] IB/iser: use sector_div instead of do_div

2015-11-20 Thread Arnd Bergmann
iv64.h:224:22: warning: passing argument 1 of '__div64_32' from incompatible pointer type This changes the code to use sector_div instead, which always produces optimal code. Signed-off-by: Arnd Bergmann diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/u

[PATCH 02/25] IB/mthca, net/mlx4: remove counting semaphores

2015-10-27 Thread Arnd Bergmann
vents_wq, ret = __mlx4_use_events(cmd) >= 0); return ret; } Cc: Roland Dreier Cc: Eli Cohen Cc: Yevgeny Petrilin Cc: net...@vger.kernel.org Cc: linux-rdma@vger.kernel.org Signed-off-by: Arnd Bergmann Conflicts: drivers/net/mlx4/cmd.c drivers/net/mlx4/mlx4.h --- drive

Re: [PATCH] IB/core: avoid 32-bit warning

2015-10-07 Thread Arnd Bergmann
On Wednesday 07 October 2015 16:19:27 Sagi Grimberg wrote: > On 10/7/2015 3:29 PM, Arnd Bergmann wrote: > > The INIT_UDATA() macro requires a pointer or unsigned long argument for > > both input and output buffer, and all callers had a cast from when > > the code was

[PATCH] IB/core: avoid 32-bit warning

2015-10-07 Thread Arnd Bergmann
ning: cast to pointer from integer of different size [-Wint-to-pointer-cast] This makes the code behave as before by adding back the cast to unsigned long. Signed-off-by: Arnd Bergmann Fixes: 565197dd8fb1 ("IB/core: Extend ib_uverbs_create_cq") diff --git a/drivers/infiniband/core/uve

[PATCH] RDMA/cxgb4: re-fix 32-bit build warning

2015-10-07 Thread Arnd Bergmann
iver in different places, and accidentally reverted once more. This puts the correct version back in place. Signed-off-by: Arnd Bergmann Fixes: 6198dd8d7a6a7 ("iw_cxgb4: 32b platform fixes") diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 026b91ebd

Re: [PATCH] RDMA/nes: Remove unused field sent_ts

2015-02-03 Thread Arnd Bergmann
t systems in year 2038 and > beyond. > > Signed-off-by: Tina Ruchandani > Acked-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] mlx5: avoid build warnings on 32-bit

2015-01-13 Thread Arnd Bergmann
On Tuesday 13 January 2015 18:28:03 Eli Cohen wrote: > On Tue, Jan 13, 2015 at 05:08:06PM +0100, Arnd Bergmann wrote: > > Hi Arnd, > wouldn't it work by casting to uintptr_t instead of unsigned long? > These are the same on all architectures that Linux can run on, but

[PATCH] infiniband: mlx5: avoid a compile-time warning

2015-01-13 Thread Arnd Bergmann
5/mem.c: In function 'mlx5_ib_cont_pages': infiniband/hw/mlx5/mem.c:84:143: warning: comparison of distinct pointer types lacks a cast m = min(m, find_first_bit(&tmp, sizeof(tmp))); This patch changes the driver to use min_t to make it behave the same way on all architectures. S

[PATCH] mlx5: avoid build warnings on 32-bit

2015-01-13 Thread Arnd Bergmann
ointer to integer of different size [-Wpointer-to-int-cast] The code is in fact safe, so we can shut up the warning by adding extra type casts. Signed-off-by: Arnd Bergmann diff --git a/drivers/net/ethernet/mellanox/mlx5/core/debugfs.c b/drivers/net/ethernet/mellanox/mlx5/core/debugfs.

Re: [PATCH 0/5] of_platform_driver and OF_DEVICE removal

2013-04-22 Thread Arnd Bergmann
gt; Compile tested on powerpc and sparc. > Acked-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] RDMA/cxgb4: Add default_llseek to debugfs files.

2010-09-29 Thread Arnd Bergmann
On Wednesday 29 September 2010 21:21:14 Roland Dreier wrote: > > > The main difference between default_llseek and generic_file_llseek > > is that default_llseek doesn't care about the maximum file size > > of the underlying file system, which is ULONG_MAX on debugfs, > > so they are equivalent

Re: [PATCH] RDMA/cxgb4: Add default_llseek to debugfs files.

2010-09-29 Thread Arnd Bergmann
On Wednesday 29 September 2010 19:19:32 Roland Dreier wrote: > > @@ -182,6 +182,7 @@ static const struct file_operations qp_debugfs_fops = { > > .open= qp_open, > > .release = qp_release, > > .read= debugfs_read, > > +.llseek = default_llseek, > > }; > > I think

Re: linux-next: manual merge of the bkl-llseek tree with the infiniband tree

2010-09-29 Thread Arnd Bergmann
On Wednesday 29 September 2010, Stephen Rothwell wrote: > Today's linux-next merge of the bkl-llseek tree got a conflict in > drivers/infiniband/hw/cxgb4/device.c between commit > 9e8d1fa3420f489da8a5da47c026511aa71fa50b ("RDMA/cxgb4: debugfs files for > dumping active stags") from the infiniband t

[PATCH 04/18] ib/qib: use generic_file_llseek

2010-07-07 Thread Arnd Bergmann
When the default llseek action gets changed to no_llseek, all file systems relying on the current behaviour need to set explicit .llseek operations. In case of qib_fs, we want the files to be seekable, so generic_file_llseek fits best. Signed-off-by: Arnd Bergmann Cc: Roland Dreier Cc: Sean