This function is not called outside of the source file where it's
defined. There's no need to export it.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
virCgroupV2Register;
# util/vircgroupv2devices.h
-virCgroupV2DevicesAttachProg;
virCgroupV2DevicesAvailable;
virCgroupV2DevicesCreateProg;
virCgroupV2DevicesDetectProg;
}
-int
+static int
virCgroupV2DevicesAttachProg(virCgroupPtr group,
int mapfd,
size_t max)
}
-int
-virCgroupV2DevicesAttachProg(virCgroupPtr group G_GNUC_UNUSED,
- int mapfd G_GNUC_UNUSED,
- size_t max G_GNUC_UNUSED)
-{
- virReportSystemError(ENOSYS, "%s",
- _("cgroups v2 BPF devices not supported "
- "with this kernel"));
- return -1;
-}
-
-
int
virCgroupV2DevicesDetectProg(virCgroupPtr group G_GNUC_UNUSED)
{
virCgroupV2DevicesAvailable(virCgroupPtr group)
G_GNUC_NO_INLINE;
-int
-virCgroupV2DevicesAttachProg(virCgroupPtr group,
- int mapfd,
- size_t max);
-
int
virCgroupV2DevicesDetectProg(virCgroupPtr group);