vircgroupv2devices: Unexport virCgroupV2DevicesAttachProg()

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>
This commit is contained in:
Michal Privoznik 2020-01-06 15:05:05 +01:00
parent 3e3cad5238
commit ff878fe77c
3 changed files with 1 additions and 19 deletions

View File

@ -1734,7 +1734,6 @@ virCgroupV1Register;
virCgroupV2Register; virCgroupV2Register;
# util/vircgroupv2devices.h # util/vircgroupv2devices.h
virCgroupV2DevicesAttachProg;
virCgroupV2DevicesAvailable; virCgroupV2DevicesAvailable;
virCgroupV2DevicesCreateProg; virCgroupV2DevicesCreateProg;
virCgroupV2DevicesDetectProg; virCgroupV2DevicesDetectProg;

View File

@ -274,7 +274,7 @@ virCgroupV2DevicesLoadProg(int mapfd)
} }
int static int
virCgroupV2DevicesAttachProg(virCgroupPtr group, virCgroupV2DevicesAttachProg(virCgroupPtr group,
int mapfd, int mapfd,
size_t max) size_t max)
@ -591,18 +591,6 @@ virCgroupV2DevicesAvailable(virCgroupPtr group G_GNUC_UNUSED)
} }
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 int
virCgroupV2DevicesDetectProg(virCgroupPtr group G_GNUC_UNUSED) virCgroupV2DevicesDetectProg(virCgroupPtr group G_GNUC_UNUSED)
{ {

View File

@ -28,11 +28,6 @@ bool
virCgroupV2DevicesAvailable(virCgroupPtr group) virCgroupV2DevicesAvailable(virCgroupPtr group)
G_GNUC_NO_INLINE; G_GNUC_NO_INLINE;
int
virCgroupV2DevicesAttachProg(virCgroupPtr group,
int mapfd,
size_t max);
int int
virCgroupV2DevicesDetectProg(virCgroupPtr group); virCgroupV2DevicesDetectProg(virCgroupPtr group);