aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-06-17 18:43:01 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-06-24 16:47:09 +0000
commit72a6197df998bb6aa36cf33aa44f6d5b50247537 (patch)
tree8e8c4dac6c0d8ccb1cbf93dc7ac559572cc90811
parentb55cc81fcf9718887a51b22f1436f6cc369fa47b (diff)
linuxkpi: Define `ULL()`
It simply appends "ULL" to its argument. The amdgpu DRM driver used it at some point in the development cycle of Linux 6.14 but the use case was dropped later. Let's still add it to linuxkpi because it will help if we need to do a git bisect in drm-kmod. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57703
-rw-r--r--sys/compat/linuxkpi/common/include/linux/const.h12
-rw-r--r--sys/compat/linuxkpi/common/include/vdso/const.h12
2 files changed, 24 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/const.h b/sys/compat/linuxkpi/common/include/linux/const.h
new file mode 100644
index 000000000000..298d195addc2
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/const.h
@@ -0,0 +1,12 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2026 The FreeBSD Foundation
+ */
+
+#ifndef _LINUXKPI_LINUX_CONST_H
+#define _LINUXKPI_LINUX_CONST_H
+
+#include <vdso/const.h>
+
+#endif /* _LINUXKPI_LINUX_CONST_H */
diff --git a/sys/compat/linuxkpi/common/include/vdso/const.h b/sys/compat/linuxkpi/common/include/vdso/const.h
new file mode 100644
index 000000000000..de88abd39537
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/vdso/const.h
@@ -0,0 +1,12 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2026 The FreeBSD Foundation
+ */
+
+#ifndef _LINUXKPI_VDSO_CONST_H
+#define _LINUXKPI_VDSO_CONST_H
+
+#define ULL(x) (x ## ULL)
+
+#endif /* _LINUXKPI_VDSO_CONST_H */