diff options
author | Roman Bogorodskiy <bogorodskiy@gmail.com> | 2016-03-29 19:23:46 +0300 |
---|---|---|
committer | Roman Bogorodskiy <bogorodskiy@gmail.com> | 2016-03-29 19:26:47 +0300 |
commit | 4ed5937d71eda3150df55b4a8a28a9029f660105 (patch) | |
tree | 967f12e5bcecfc9e63bd22aca642b91991043e71 /src/util | |
parent | 801a5f65fa83f03eb8627875c670652cf8c30e4b (diff) | |
download | libvirt-4ed5937d71eda3150df55b4a8a28a9029f660105.tar.gz |
perf: fix build on non-Linux
* Sync stubbed functions with prototypes
* Add missing ATTRIBUTE_UNUSED where needed
Pushing under the build breaker rule.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/virperf.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/util/virperf.c b/src/util/virperf.c index 42eee850ba..9dc4e2562f 100644 --- a/src/util/virperf.c +++ b/src/util/virperf.c @@ -262,6 +262,7 @@ virPerfReadEvent(virPerfPtr perf, #else int virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED, + virPerfEventType type ATTRIBUTE_UNUSED, pid_t pid ATTRIBUTE_UNUSED) { virReportSystemError(ENXIO, "%s", @@ -271,7 +272,7 @@ virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED, int virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED, - int event ATTRIBUTE_UNUSED) + virPerfEventType type ATTRIBUTE_UNUSED) { virReportSystemError(ENXIO, "%s", _("Perf not supported on this platform")); @@ -279,15 +280,15 @@ virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED, } bool -virPerfEventIsEnabled(virPerfPtr perf, - virPerfEventType type) +virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED, + virPerfEventType type ATTRIBUTE_UNUSED) { return false; } int -virPerfGetEventFd(virPerfPtr perf, - virPerfEventType type) +virPerfGetEventFd(virPerfPtr perf ATTRIBUTE_UNUSED, + virPerfEventType type ATTRIBUTE_UNUSED) { virReportSystemError(ENXIO, "%s", _("Perf not supported on this platform")); @@ -295,9 +296,9 @@ virPerfGetEventFd(virPerfPtr perf, } int -virPerfReadEvent(virPerfPtr perf, - virPerfEventType type - uint64_t *value) +virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED, + virPerfEventType type ATTRIBUTE_UNUSED, + uint64_t *value ATTRIBUTE_UNUSED) { virReportSystemError(ENXIO, "%s", _("Perf not supported on this platform")); |