Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2018 14:42:14 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r339996 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201811011442.wA1EgE7H091464@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Nov  1 14:42:14 2018
New Revision: 339996
URL: https://svnweb.freebsd.org/changeset/base/339996

Log:
  MFC r339923:
  Implement __KERNEL_DIV_ROUND_UP() function macro in the LinuxKPI.
  
  Approved by:		re (kib)
  Submitted by:		Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:		Mellanox Technologies

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h	Thu Nov  1 14:24:12 2018	(r339995)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h	Thu Nov  1 14:42:14 2018	(r339996)
@@ -131,6 +131,7 @@
 #undef PTR_ALIGN
 #define	PTR_ALIGN(p, a)		((__typeof(p))ALIGN((uintptr_t)(p), (a)))
 #define	DIV_ROUND_UP(x, n)	howmany(x, n)
+#define	__KERNEL_DIV_ROUND_UP(x, n)	howmany(x, n)
 #define	DIV_ROUND_UP_ULL(x, n)	DIV_ROUND_UP((unsigned long long)(x), (n))
 #define	FIELD_SIZEOF(t, f)	sizeof(((t *)0)->f)
 



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