diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index becc2d1094237580901dfe0578ad63900cc77635..4d39a75551a0b4f56522ecf579225886d1565e15 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -850,7 +850,7 @@ int __weak strcmp_cpuid_str(const char *mapcpuid, const char *cpuid) */ int __weak get_cpuid(char *buffer __maybe_unused, size_t sz __maybe_unused) { - return -1; + return ENOSYS; /* Not implemented */ } static int write_cpuid(struct feat_fd *ff,