]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kconfig: clean up header inclusion
authorBoris Kolpackov <boris@codesynthesis.com>
Mon, 23 Nov 2020 09:38:18 +0000 (11:38 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 8 Dec 2020 14:31:29 +0000 (23:31 +0900)
- Add missing includes.
- Remove no longer necessary includes.

Signed-off-by: Boris Kolpackov <boris@codesynthesis.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/conf.c
scripts/kconfig/confdata.c
scripts/kconfig/lexer.l
scripts/kconfig/symbol.c

index f6e548b8f79556a2a799358730459686bd002f2f..db03e2f45de4202496f466b8ad5b9418690de09f 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 a39d93e3c6ae8d34f617b835d8ebcf5900cbad89..2568dbe16ed64a328ea219c16b2af407992adaa3 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 240109f965aeb72362226845a4364294924c607a..9c22cb5546734a80f27d8ee22fc7dba585c00ec4 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"