Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf spark: Fix includes and add SPDX

scnprintf is declared in linux/kernel.h, directly depend upon it.
Add missing SPDX comments.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250710235126.1086011-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Ian Rogers and committed by
Namhyung Kim
bcc7693a 679c098c

+4 -5
+3 -5
tools/perf/util/spark.c
··· 1 - #include <stdio.h> 2 - #include <limits.h> 3 - #include <string.h> 4 - #include <stdlib.h> 1 + // SPDX-License-Identifier: GPL-2.0 5 2 #include "spark.h" 6 - #include "stat.h" 3 + #include <limits.h> 4 + #include <linux/kernel.h> 7 5 8 6 #define SPARK_SHIFT 8 9 7
+1
tools/perf/util/spark.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef SPARK_H 2 3 #define SPARK_H 1 3 4