[PATCH] lib: term: add missing headers, license and copyright
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Jul 16 04:56:31 PDT 2024
The file was split off from commands/edit.c, so it should carry same
copyright and license.
Also it depended so far on linux/kernel.h being transitively included,
so let's include the parts that we need directly.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
lib/term.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/term.c b/lib/term.c
index 64dd5e430478..97e3360fbb00 100644
--- a/lib/term.c
+++ b/lib/term.c
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-FileCopyrightText: © 2007 Sascha Hauer <s.hauer at pengutronix.de>, Pengutronix
+
+#include <linux/kstrtox.h>
+#include <linux/minmax.h>
#include <console.h>
#include <term.h>
--
2.39.2
More information about the barebox
mailing list