From patchwork Thu Oct 29 15:51:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Kolpackov X-Patchwork-Id: 11866735 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9725B6A2 for ; Thu, 29 Oct 2020 15:52:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7D72320838 for ; Thu, 29 Oct 2020 15:52:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728558AbgJ2Pwm (ORCPT ); Thu, 29 Oct 2020 11:52:42 -0400 Received: from codesynthesis.com ([142.44.161.217]:46804 "EHLO codesynthesis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728172AbgJ2Pwl (ORCPT ); Thu, 29 Oct 2020 11:52:41 -0400 Received: from brak.codesynthesis.com (unknown [105.184.207.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id 7FE1E5F6C0; Thu, 29 Oct 2020 15:52:40 +0000 (UTC) Received: by brak.codesynthesis.com (Postfix, from userid 1000) id BFD2E1A800C4; Thu, 29 Oct 2020 17:52:36 +0200 (SAST) From: Boris Kolpackov To: Masahiro Yamada Cc: Luis Chamberlain , linux-kbuild@vger.kernel.org, Boris Kolpackov Subject: [PATCH 1/2] kconfig: make lkc.h self-sufficient #include-wise Date: Thu, 29 Oct 2020 17:51:51 +0200 Message-Id: <20201029155152.2467-2-boris@codesynthesis.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201029155152.2467-1-boris@codesynthesis.com> References: <20201029155152.2467-1-boris@codesynthesis.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Signed-off-by: Boris Kolpackov --- scripts/kconfig/lkc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 8454649..3e2c70e 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h @@ -6,6 +6,10 @@ #ifndef LKC_H #define LKC_H +#include +#include +#include + #include "expr.h" #ifdef __cplusplus From patchwork Thu Oct 29 15:51:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Kolpackov X-Patchwork-Id: 11866737 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18D1A6A2 for ; Thu, 29 Oct 2020 15:52:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F39BD20825 for ; Thu, 29 Oct 2020 15:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728483AbgJ2Pww (ORCPT ); Thu, 29 Oct 2020 11:52:52 -0400 Received: from codesynthesis.com ([142.44.161.217]:46810 "EHLO codesynthesis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbgJ2Pww (ORCPT ); Thu, 29 Oct 2020 11:52:52 -0400 Received: from brak.codesynthesis.com (unknown [105.184.207.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id DABF55F6C4; Thu, 29 Oct 2020 15:52:50 +0000 (UTC) Received: by brak.codesynthesis.com (Postfix, from userid 1000) id 456981A800C4; Thu, 29 Oct 2020 17:52:47 +0200 (SAST) From: Boris Kolpackov To: Masahiro Yamada Cc: Luis Chamberlain , linux-kbuild@vger.kernel.org, Boris Kolpackov Subject: [PATCH 2/2] kconfig: clean up header inclusion Date: Thu, 29 Oct 2020 17:51:52 +0200 Message-Id: <20201029155152.2467-3-boris@codesynthesis.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201029155152.2467-1-boris@codesynthesis.com> References: <20201029155152.2467-1-boris@codesynthesis.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org - Add missing includes. - Remove no longer necessary includes. - Separate non-portable header includes for easier porting. Signed-off-by: Boris Kolpackov --- scripts/kconfig/conf.c | 6 +++--- scripts/kconfig/confdata.c | 4 +++- scripts/kconfig/lexer.l | 1 - scripts/kconfig/symbol.c | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index f6e548b..74974df 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -9,12 +9,12 @@ #include #include #include -#include #include -#include -#include #include +#include +#include + #include "lkc.h" static void conf(struct menu *menu); diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index a39d93e..64344b9 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -3,7 +3,7 @@ * Copyright (C) 2002 Roman Zippel */ -#include +#include #include #include #include @@ -14,7 +14,9 @@ #include #include #include + #include +#include #include "lkc.h" diff --git a/scripts/kconfig/lexer.l b/scripts/kconfig/lexer.l index 240109f..9c22cb5 100644 --- a/scripts/kconfig/lexer.l +++ b/scripts/kconfig/lexer.l @@ -12,7 +12,6 @@ #include #include #include -#include #include "lkc.h" #include "parser.tab.h" diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index ffa3ec6..0e0f1cc 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -6,8 +6,9 @@ #include #include #include +#include // off_t + #include -#include #include "lkc.h"