]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
perf spark: Fix includes and add SPDX
authorIan Rogers <irogers@google.com>
Thu, 10 Jul 2025 23:51:16 +0000 (16:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Jul 2025 19:36:40 +0000 (12:36 -0700)
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>
tools/perf/util/spark.c
tools/perf/util/spark.h

index 70272a8b81a65d23238ebf8d830221ab5d2eb50b..65ca253cc22e2448c057dac6d9934dfc13092229 100644 (file)
@@ -1,9 +1,7 @@
-#include <stdio.h>
-#include <limits.h>
-#include <string.h>
-#include <stdlib.h>
+// SPDX-License-Identifier: GPL-2.0
 #include "spark.h"
-#include "stat.h"
+#include <limits.h>
+#include <linux/kernel.h>
 
 #define SPARK_SHIFT 8
 
index 25402d7d7a645a5584d9ea006caceb71bf86d8e8..78597c38ef35392d2fef406bda6e6d1229a5dcdc 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef SPARK_H
 #define SPARK_H 1