kconfig: clean up header inclusion
authorBoris Kolpackov <boris@codesynthesis.com>
Mon, 23 Nov 2020 09:38:18 +0000 (11:38 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 11:04:09 +0000 (12:04 +0100)
- Add missing includes.
- Remove no longer necessary includes.

Signed-off-by: Boris Kolpackov <boris@codesynthesis.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/conf.c
config/confdata.c
config/lexer.l
config/symbol.c

index a27f48ce4aac0da8e66e7afff64954eab3ea0839..1f9dbc05de95d196bc9f7df0144be9836df82bfd 100644 (file)
@@ -11,7 +11,6 @@
 #include <time.h>
 #include <unistd.h>
 #include <getopt.h>
-#include <sys/stat.h>
 #include <sys/time.h>
 #include <errno.h>
 
index d635eff8b8390385474f5f9128866727eb902286..99664fd2de23bb15dc29dd6d1897a0dcc1a6f60a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <sys/mman.h>
 #include <sys/stat.h>
+#include <sys/types.h>
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
index 8b0fd8f121139968a5562263ec89affcf044f18c..2ee9f31f9ccf6317c5134613b2bd6f2cbdb8c468 100644 (file)
@@ -12,7 +12,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "lkc.h"
 #include "parser.tab.h"
index ffa3ec65cc907ac1f72a66755ae39aabc09d6e6c..fe38e6fd2c2a4555adfcd78a135e977c78aa4ac4 100644 (file)
@@ -3,11 +3,11 @@
  * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
  */
 
+#include <sys/types.h>
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
 #include <regex.h>
-#include <sys/utsname.h>
 
 #include "lkc.h"