Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2017 08:09:43 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322830 - head/sys/dev/mlx5/mlx5_ib
Message-ID:  <201708240809.v7O89hxF062238@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Aug 24 08:09:42 2017
New Revision: 322830
URL: https://svnweb.freebsd.org/changeset/base/322830

Log:
  Compile fixes for LINT on 32-bit platforms.
  
  MFC after:		2 weeks
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
  head/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c

Modified: head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c	Thu Aug 24 08:02:26 2017	(r322829)
+++ head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c	Thu Aug 24 08:09:42 2017	(r322830)
@@ -856,7 +856,7 @@ static struct ib_ucontext *mlx5_ib_alloc_ucontext(stru
 	else if (reqlen == sizeof(struct mlx5_ib_alloc_ucontext_req_v2))
 		ver = 2;
 	else {
-		mlx5_ib_err(dev, "request malformed, reqlen: %ld\n", reqlen);
+		mlx5_ib_err(dev, "request malformed, reqlen: %ld\n", (long)reqlen);
 		return ERR_PTR(-EINVAL);
 	}
 

Modified: head/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c	Thu Aug 24 08:02:26 2017	(r322829)
+++ head/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c	Thu Aug 24 08:09:42 2017	(r322830)
@@ -29,6 +29,8 @@
 #include <rdma/ib_umem.h>
 #include "mlx5_ib.h"
 
+CTASSERT(sizeof(uintptr_t) == sizeof(unsigned long));
+
 /* @umem: umem object to scan
  * @addr: ib virtual address requested by the user
  * @count: number of PAGE_SIZE pages covered by umem
@@ -40,7 +42,7 @@
 void mlx5_ib_cont_pages(struct ib_umem *umem, u64 addr, int *count, int *shift,
 			int *ncont, int *order)
 {
-	uintptr_t tmp;
+	unsigned long tmp;
 	unsigned long m;
 	int i, k;
 	u64 base = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708240809.v7O89hxF062238>