From: Frederic Weisbecker Date: Fri, 25 Feb 2011 20:57:04 +0000 (+0100) Subject: perf: Fix missing strndup declaration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff9ae1babd8ce88c3f90db6278ea5f55bdcb4624;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git perf: Fix missing strndup declaration is included first without _GNU_SOURCE, so it ends up including without declaring strndup(). And further declarations, even with _GNU_SOURCE defined, are of course without effect. Therefore: util/strfilter.c: Dans la fonction «strfilter_node__new» : util/strfilter.c:134: attention : déclaration implicite de la fonction « «strndup» » util/strfilter.c:134: attention : incompatible implicit declaration of built-in function «strndup» make: *** [util/strfilter.o] Erreur 1 Just don't include ctype.h as it doesn't appear to be necessary anyway. Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi Cc: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/strfilter.c b/tools/perf/util/strfilter.c index 4064b7d708b8..834c8ebfe38e 100644 --- a/tools/perf/util/strfilter.c +++ b/tools/perf/util/strfilter.c @@ -1,4 +1,3 @@ -#include #include "util.h" #include "string.h" #include "strfilter.h"