kern: Move devctl_systems[] out of sys/sys/devctl.h

The amd64-gcc12 build was failing with `error: 'devctl_systems' defined
but not used`.  Just move it to the C file where it's used.

PR:		271903
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2023-06-08 09:58:26 -04:00
parent d057b7aac8
commit f40cd16bfd
2 changed files with 23 additions and 23 deletions

View File

@ -53,6 +53,29 @@ static struct sysevent_group {
uint32_t id;
} sysevent_groups[MAX_SYSEVENT_GROUPS] = {};
static const char *devctl_systems[] = {
"ACPI",
"AEON",
"CAM",
"CARP",
"coretemp",
"DEVFS",
"device",
"ETHERNET",
"GEOM",
"HYPERV_NIC_VF",
"IFNET",
"INFINIBAND",
"KERNEL",
"nvme",
"PMU",
"RCTL",
"USB",
"VFS",
"VT",
"ZFS",
};
static void
sysevent_write(struct sysevent_group *se, const char *subsystem, const char *type,
const char *data)

View File

@ -13,29 +13,6 @@
* hook to send the message.
*/
static const char *devctl_systems[] = {
"ACPI",
"AEON",
"CAM",
"CARP",
"coretemp",
"DEVFS",
"device",
"ETHERNET",
"GEOM",
"HYPERV_NIC_VF",
"IFNET",
"INFINIBAND",
"KERNEL",
"nvme",
"PMU",
"RCTL",
"USB",
"VFS",
"VT",
"ZFS",
};
bool devctl_process_running(void);
void devctl_notify(const char *__system, const char *__subsystem,
const char *__type, const char *__data);