Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108031776
D35168.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D35168.diff
View Options
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -800,17 +800,14 @@
int dmd_pass;
};
-#define _DRIVER_MODULE_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, NAME, ...) \
- NAME
-
-#define _EARLY_DRIVER_MODULE_ORDERED(name, busname, driver, devclass, \
- evh, arg, order, pass) \
- \
+#define EARLY_DRIVER_MODULE_ORDERED(name, busname, driver, evh, arg, \
+ order, pass) \
+ \
static struct driver_module_data name##_##busname##_driver_mod = { \
evh, arg, \
#busname, \
(kobj_class_t) &driver, \
- devclass, \
+ NULL, \
pass \
}; \
\
@@ -822,57 +819,18 @@
DECLARE_MODULE(name##_##busname, name##_##busname##_mod, \
SI_SUB_DRIVERS, order)
-#define EARLY_DRIVER_MODULE_ORDERED7(name, busname, driver, evh, arg, \
- order, pass) \
- _EARLY_DRIVER_MODULE_ORDERED(name, busname, driver, NULL, evh, \
- arg, order, pass)
-
-#define EARLY_DRIVER_MODULE_ORDERED8(name, busname, driver, devclass, \
- evh, arg, order, pass) \
- _EARLY_DRIVER_MODULE_ORDERED(name, busname, driver, &devclass, \
- evh, arg, order, pass)
-
-#define EARLY_DRIVER_MODULE_ORDERED(...) \
- _DRIVER_MODULE_MACRO(__VA_ARGS__, EARLY_DRIVER_MODULE_ORDERED8, \
- EARLY_DRIVER_MODULE_ORDERED7)(__VA_ARGS__)
-
-#define EARLY_DRIVER_MODULE7(name, busname, driver, devclass, evh, arg, pass) \
- EARLY_DRIVER_MODULE_ORDERED8(name, busname, driver, devclass, \
- evh, arg, SI_ORDER_MIDDLE, pass)
-
-#define EARLY_DRIVER_MODULE6(name, busname, driver, evh, arg, pass) \
- EARLY_DRIVER_MODULE_ORDERED7(name, busname, driver, evh, arg, \
+#define EARLY_DRIVER_MODULE(name, busname, driver, evh, arg, pass) \
+ EARLY_DRIVER_MODULE_ORDERED(name, busname, driver, evh, arg, \
SI_ORDER_MIDDLE, pass)
-#define EARLY_DRIVER_MODULE(...) \
- _DRIVER_MODULE_MACRO(__VA_ARGS__, INVALID, \
- EARLY_DRIVER_MODULE7, EARLY_DRIVER_MODULE6)(__VA_ARGS__)
-
-#define DRIVER_MODULE_ORDERED7(name, busname, driver, devclass, evh, arg,\
- order) \
- EARLY_DRIVER_MODULE_ORDERED8(name, busname, driver, devclass, \
- evh, arg, order, BUS_PASS_DEFAULT)
-
-#define DRIVER_MODULE_ORDERED6(name, busname, driver, evh, arg, order) \
- EARLY_DRIVER_MODULE_ORDERED7(name, busname, driver, evh, arg, \
+#define DRIVER_MODULE_ORDERED(name, busname, driver, evh, arg, order) \
+ EARLY_DRIVER_MODULE_ORDERED(name, busname, driver, evh, arg, \
order, BUS_PASS_DEFAULT)
-#define DRIVER_MODULE_ORDERED(...) \
- _DRIVER_MODULE_MACRO(__VA_ARGS__, INVALID, \
- DRIVER_MODULE_ORDERED7, DRIVER_MODULE_ORDERED6)(__VA_ARGS__)
-
-#define DRIVER_MODULE6(name, busname, driver, devclass, evh, arg) \
- EARLY_DRIVER_MODULE7(name, busname, driver, devclass, evh, arg, \
+#define DRIVER_MODULE(name, busname, driver, evh, arg) \
+ EARLY_DRIVER_MODULE(name, busname, driver, evh, arg, \
BUS_PASS_DEFAULT)
-#define DRIVER_MODULE5(name, busname, driver, evh, arg) \
- EARLY_DRIVER_MODULE6(name, busname, driver, evh, arg, \
- BUS_PASS_DEFAULT)
-
-#define DRIVER_MODULE(...) \
- _DRIVER_MODULE_MACRO(__VA_ARGS__, INVALID, INVALID, \
- DRIVER_MODULE6, DRIVER_MODULE5)(__VA_ARGS__)
-
/**
* Generic ivar accessor generation macros for bus drivers
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 5:57 PM (20 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16018324
Default Alt Text
D35168.diff (3 KB)
Attached To
Mode
D35168: *DRIVER_MODULE*: Remove the compat shims to accept the devclass argument.
Attached
Detach File
Event Timeline
Log In to Comment