kernel/tools/perf/util/strfilter.c
.. .. @@ -1,10 +1,12 @@ 1 1 // SPDX-License-Identifier: GPL-2.0 2 -#include "util.h"3 2 #include "string2.h" 4 3 #include "strfilter.h" 5 4 6 5 #include <errno.h> 7 -#include "sane_ctype.h"6 +#include <stdlib.h>7 +#include <linux/ctype.h>8 +#include <linux/string.h>9 +#include <linux/zalloc.h>8 10 9 11 /* Operators */ 10 12 static const char *OP_and = "&"; /* Logical AND */ .. .. @@ -37,8 +39,7 @@ 37 39 { 38 40 const char *p; 39 41 40 - while (isspace(*s)) /* Skip spaces */41 - s++;42 + s = skip_spaces(s);42 43 43 44 if (*s == '\0') { 44 45 p = s;