Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159807069
D57584.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D57584.id.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/args.h
===================================================================
--- /dev/null
+++ sys/compat/linuxkpi/common/include/linux/args.h
@@ -0,0 +1,17 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2026 The FreeBSD Foundation
+ */
+
+#ifndef _LINUXKPI_LINUX_ARGS_H_
+#define _LINUXKPI_LINUX_ARGS_H_
+
+#define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, __count, ...) \
+ __count
+#define COUNT_ARGS(X...) \
+ __COUNT_ARGS(, ##X, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
+
+#define CONCATENATE(a, b) __CONCAT(a, b)
+
+#endif /* _LINUXKPI_LINUX_ARGS_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 19, 11:34 AM (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34075403
Default Alt Text
D57584.id.diff (644 B)
Attached To
Mode
D57584: linuxkpi: Define `COUNT_ARGS()` and `CONCATENATE()`
Attached
Detach File
Event Timeline
Log In to Comment