mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] lib: term: add missing headers, license and copyright
@ 2024-07-16 11:56 Ahmad Fatoum
  2024-07-19  6:21 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-16 11:56 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] lib: term: add missing headers, license and copyright
  2024-07-16 11:56 [PATCH] lib: term: add missing headers, license and copyright Ahmad Fatoum
@ 2024-07-19  6:21 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-07-19  6:21 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Tue, 16 Jul 2024 13:56:31 +0200, Ahmad Fatoum wrote:
> 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.
> 
> 
> [...]

Applied, thanks!

[1/1] lib: term: add missing headers, license and copyright
      https://git.pengutronix.de/cgit/barebox/commit/?id=77f5f3f7ee53 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-19  6:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-16 11:56 [PATCH] lib: term: add missing headers, license and copyright Ahmad Fatoum
2024-07-19  6:21 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox