From: Čestmír Kalina <ckalina(a)redhat.com>
kabi: rename RH_KABI_USE2 to RH_KABI_USE_SPLIT
Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=2024595
Upstream Status: RHEL only
commit f46fa6e690b97a7088f40f1a8add998b40e39026
Author: Jiri Benc <jbenc(a)redhat.com>
Date: Wed, 1 Apr 2020 13:04:06 -0400
Similarly to RH_KABI_REPLACE2 being renamed to RH_KABI_REPLACE and made more
generic, do the same with RH_KABI_USE2.
RH-Signed-off-by: Jiri Benc <jbenc(a)redhat.com>
Signed-off-by: Čestmír Kalina <ckalina(a)redhat.com>
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/include/linux/rh_kabi.h b/include/linux/rh_kabi.h
index blahblah..blahblah 100644
--- a/include/linux/rh_kabi.h
+++ b/include/linux/rh_kabi.h
@@ -286,7 +286,7 @@
* Macros for breaking up a reserved element into two smaller chunks using
* an anonymous struct inside an anonymous union.
*/
-# define RH_KABI_USE2(n, _new1, _new2) RH_KABI_REPLACE(_RH_KABI_RESERVE(n), struct{
_new1; _new2; })
+# define RH_KABI_USE_SPLIT(n, ...) RH_KABI_REPLACE_SPLIT(_RH_KABI_RESERVE(n),
__VA_ARGS__)
/*
* We tried to standardize on Red Hat reserved names. These wrappers
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1530