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@xxxxxxxxxxxxxx> --- 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@xxxxxxxxxxxxxx>, Pengutronix + +#include <linux/kstrtox.h> +#include <linux/minmax.h> #include <console.h> #include <term.h> -- 2.39.2