Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2018 16:39:26 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342631 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201812301639.wBUGdQkn075270@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Dec 30 16:39:26 2018
New Revision: 342631
URL: https://svnweb.freebsd.org/changeset/base/342631

Log:
  Fix 32bit gcc builds after r342625.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/src/linux_compat.c

Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_compat.c	Sun Dec 30 15:58:18 2018	(r342630)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c	Sun Dec 30 16:39:26 2018	(r342631)
@@ -540,7 +540,7 @@ linux_cdev_pager_populate(vm_object_t vm_obj, vm_pinde
 		struct vm_fault vmf;
 
 		/* fill out VM fault structure */
-		vmf.virtual_address = (void *)IDX_TO_OFF(pidx);
+		vmf.virtual_address = (void *)(uintptr_t)IDX_TO_OFF(pidx);
 		vmf.flags = (fault_type & VM_PROT_WRITE) ? FAULT_FLAG_WRITE : 0;
 		vmf.pgoff = 0;
 		vmf.page = NULL;



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