mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
hptmv: purge EOL release compatibility
Drop support for pre-FreeBSD 11 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/603 Differential Revision: https://reviews.freebsd.org/D35560
This commit is contained in:
parent
33f6a4e90f
commit
5d1c658b47
|
@ -636,19 +636,11 @@ hpt_status(SYSCTL_HANDLER_ARGS)
|
|||
|
||||
#define xhptregister_node(name) hptregister_node(name)
|
||||
|
||||
#if __FreeBSD_version >= 1100024
|
||||
#define hptregister_node(name) \
|
||||
SYSCTL_ROOT_NODE(OID_AUTO, name, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, \
|
||||
"Get/Set " #name " state root node"); \
|
||||
SYSCTL_OID(_ ## name, OID_AUTO, status, \
|
||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, \
|
||||
NULL, 0, hpt_status, "A", "Get/Set " #name " state")
|
||||
#else
|
||||
#define hptregister_node(name) \
|
||||
SYSCTL_NODE(, OID_AUTO, name, CTLFLAG_RW, 0, "Get/Set " #name " state root node"); \
|
||||
SYSCTL_OID(_ ## name, OID_AUTO, status, \
|
||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_MPSAFE, \
|
||||
NULL, 0, hpt_status, "A", "Get/Set " #name " state")
|
||||
#endif
|
||||
|
||||
|
||||
xhptregister_node(PROC_DIR_NAME);
|
||||
|
|
Loading…
Reference in a new issue