提交 4ed5937d 编写于 作者: R Roman Bogorodskiy

perf: fix build on non-Linux

 * Sync stubbed functions with prototypes
 * Add missing ATTRIBUTE_UNUSED where needed

Pushing under the build breaker rule.
上级 801a5f65
...@@ -262,6 +262,7 @@ virPerfReadEvent(virPerfPtr perf, ...@@ -262,6 +262,7 @@ virPerfReadEvent(virPerfPtr perf,
#else #else
int int
virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED, virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type ATTRIBUTE_UNUSED,
pid_t pid ATTRIBUTE_UNUSED) pid_t pid ATTRIBUTE_UNUSED)
{ {
virReportSystemError(ENXIO, "%s", virReportSystemError(ENXIO, "%s",
...@@ -271,7 +272,7 @@ virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED, ...@@ -271,7 +272,7 @@ virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED,
int int
virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED, virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED,
int event ATTRIBUTE_UNUSED) virPerfEventType type ATTRIBUTE_UNUSED)
{ {
virReportSystemError(ENXIO, "%s", virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform")); _("Perf not supported on this platform"));
...@@ -279,15 +280,15 @@ virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED, ...@@ -279,15 +280,15 @@ virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED,
} }
bool bool
virPerfEventIsEnabled(virPerfPtr perf, virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type) virPerfEventType type ATTRIBUTE_UNUSED)
{ {
return false; return false;
} }
int int
virPerfGetEventFd(virPerfPtr perf, virPerfGetEventFd(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type) virPerfEventType type ATTRIBUTE_UNUSED)
{ {
virReportSystemError(ENXIO, "%s", virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform")); _("Perf not supported on this platform"));
...@@ -295,9 +296,9 @@ virPerfGetEventFd(virPerfPtr perf, ...@@ -295,9 +296,9 @@ virPerfGetEventFd(virPerfPtr perf,
} }
int int
virPerfReadEvent(virPerfPtr perf, virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type virPerfEventType type ATTRIBUTE_UNUSED,
uint64_t *value) uint64_t *value ATTRIBUTE_UNUSED)
{ {
virReportSystemError(ENXIO, "%s", virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform")); _("Perf not supported on this platform"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册