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>
This commit is contained in:
Ian Rogers
2025-07-10 16:51:16 -07:00
committed by Namhyung Kim
parent 679c098cd2
commit bcc7693ad1
2 changed files with 4 additions and 5 deletions
+3 -5
View 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
+1
View File
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef SPARK_H
#define SPARK_H 1