From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] lib: term: add missing headers, license and copyright
Date: Tue, 16 Jul 2024 13:56:31 +0200 [thread overview]
Message-ID: <20240716115631.1953903-1-a.fatoum@pengutronix.de> (raw)
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@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@pengutronix.de>, Pengutronix
+
+#include <linux/kstrtox.h>
+#include <linux/minmax.h>
#include <console.h>
#include <term.h>
--
2.39.2
next reply other threads:[~2024-07-16 11:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-16 11:56 Ahmad Fatoum [this message]
2024-07-19 6:21 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240716115631.1953903-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox