Skip to contentSkip to conversation

perf arm pmu: Add missing linux/string.h header

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 9, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw
Commit-ID:  af1db7f6b7323ab9f7beffe6028f421f4c398e7f
Gitweb:     https://git.kernel.org/tip/af1db7f6b7323ab9f7beffe6028f421f4c398e7f
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 5 Feb 2019 13:51:16 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 6 Feb 2019 10:00:38 -0300

perf arm pmu: Add missing linux/string.h header

It uses strstarts(), that is defined in linux/string.h but that was being including by sheer luck, indirectly, fix it.

Cc Adrian Hunter <[email protected]>
Cc Dongjiu Geng <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Kim Phillips <[email protected]>
Cc Mathieu Poirier <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Suzuki Poulouse <[email protected]>
Cc Will Deacon <[email protected]>
---
 tools/perf/arch/arm/util/pmu.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/arm/util/pmu.c +1 -0
index e047571e6080..64a677b518d0 100644
@@ -7,6 +7,7 @@
 #include <string.h>
 #include <linux/coresight-pmu.h>
 #include <linux/perf_event.h>
+#include <linux/string.h>
 
 #include "cs-etm.h"
 #include "arm-spe.h"