Date: Tue, 2 Jun 2020 12:23:04 +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: r361724 - in head/sys: compat/linuxkpi/common/include/linux sys Message-ID: <202006021223.052CN4xK039948@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Tue Jun 2 12:23:04 2020 New Revision: 361724 URL: https://svnweb.freebsd.org/changeset/base/361724 Log: Implement __is_constexpr() function macro in the LinuxKPI. Bump the FreeBSD version. MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h head/sys/sys/param.h Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/linux/kernel.h Tue Jun 2 10:19:45 2020 (r361723) +++ head/sys/compat/linuxkpi/common/include/linux/kernel.h Tue Jun 2 12:23:04 2020 (r361724) @@ -561,4 +561,7 @@ linux_ratelimited(linux_ratelimit_t *rl) ((num) > __max) ? SIZE_MAX : (__size + sizeof((ptr)->field[0]) * (num)); \ }) +#define __is_constexpr(x) \ + __builtin_constant_p(x) + #endif /* _LINUX_KERNEL_H_ */ Modified: head/sys/sys/param.h ============================================================================== --- head/sys/sys/param.h Tue Jun 2 10:19:45 2020 (r361723) +++ head/sys/sys/param.h Tue Jun 2 12:23:04 2020 (r361724) @@ -60,7 +60,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 1300096 /* Master, propagated to newvers */ +#define __FreeBSD_version 1300097 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006021223.052CN4xK039948>