summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-18 11:20:19 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 12:01:55 -0400
commit767fe71b2d576762c77873021abd95c0a18538e3 (patch)
tree3814007fa878defa75b069351ddcbfd591854f5d /tools/perf
parent20a9ed280dde6292c529dfdaaf9ce743ef71bb1f (diff)
perf tools: Remove misplaced __maybe_unused in some functions
Those args _are_ being used. Link: http://lkml.kernel.org/n/tip-yi9s00ki1i1tcc704v042957@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/build-id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c
index b5c4892c2e18..9815a3b6667a 100644
--- a/tools/perf/util/build-id.c
+++ b/tools/perf/util/build-id.c
@@ -451,14 +451,14 @@ void disable_buildid_cache(void)
451} 451}
452 452
453static bool lsdir_bid_head_filter(const char *name __maybe_unused, 453static bool lsdir_bid_head_filter(const char *name __maybe_unused,
454 struct dirent *d __maybe_unused) 454 struct dirent *d)
455{ 455{
456 return (strlen(d->d_name) == 2) && 456 return (strlen(d->d_name) == 2) &&
457 isxdigit(d->d_name[0]) && isxdigit(d->d_name[1]); 457 isxdigit(d->d_name[0]) && isxdigit(d->d_name[1]);
458} 458}
459 459
460static bool lsdir_bid_tail_filter(const char *name __maybe_unused, 460static bool lsdir_bid_tail_filter(const char *name __maybe_unused,
461 struct dirent *d __maybe_unused) 461 struct dirent *d)
462{ 462{
463 int i = 0; 463 int i = 0;
464 while (isxdigit(d->d_name[i]) && i < SBUILD_ID_SIZE - 3) 464 while (isxdigit(d->d_name[i]) && i < SBUILD_ID_SIZE - 3)