hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/tools/perf/util/strfilter.c
....@@ -1,10 +1,12 @@
11 // SPDX-License-Identifier: GPL-2.0
2
-#include "util.h"
32 #include "string2.h"
43 #include "strfilter.h"
54
65 #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>
810
911 /* Operators */
1012 static const char *OP_and = "&"; /* Logical AND */
....@@ -37,8 +39,7 @@
3739 {
3840 const char *p;
3941
40
- while (isspace(*s)) /* Skip spaces */
41
- s++;
42
+ s = skip_spaces(s);
4243
4344 if (*s == '\0') {
4445 p = s;