From patchwork Thu Mar 15 06:25:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 131752 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp718726ljb; Wed, 14 Mar 2018 23:26:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELuvQGQ7cLznaHyIj5TNb24SvmBA5VQAM+Qbro9BPrHQaywopwPXll3FKciYbG5h8fXxwpDR X-Received: by 2002:a17:902:a60d:: with SMTP id u13-v6mr6730014plq.165.1521095170939; Wed, 14 Mar 2018 23:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521095170; cv=none; d=google.com; s=arc-20160816; b=qMuYtlYik2lKowGx7D3XPVuUre5DRKtpDqNbBt95rZnto7c8S7kZoVa/jhxRjRvsuS A/SW2M8L8XWzzX6RM79Z2InqgmEUFoKlo5pOrLRAopbRJOXP5sC585vFXUcJ6f0FRVgk dIaYkn8EyRhjXYIqvU55Vb+dwfE5TvsK2CxS4gsoIkmSxseiy1vq2NCa5CMRqy0CkhGq +3XZHzTmsFFKbokh7LFPcCsjg6Zco7/m8BQzZ8zVXGHoNFjKEcfYMliyq9BxKViIdvG0 a/p0qC8yygNLaTLnsjVhBZrEkRmTSsd0OH68u8NdevzLalDfgMdAL/wVAkGmN/2hov1E CC+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=mcHw93/eJ4bMRFlhcRc1BL5T5EHTrQRamU0EReTQL6s=; b=POsSemIRte5QmjZOBe0+R6kX0WI2YtVhVK/kJHtKCqiWDnnjJ8Oim3H9Xo4c5WQtzP 90Fu7NoqtzoCuMLv6ymip7GPtbq1MPupt4zCS/V1RkLG3YuDq+YprAfpiZU5tiqsvei6 1krLnYObSGazQM5HObjQvFX7j0Pe3kxU/ofh4Gja3qvw1dcPh19FdG9M3HCHYm+XGUkN qLS+2rxXzFvwoTrf6STikJ8b+/ttoBlzNzCn72VMUFKgDJwTf2FgwYNd+UDzXzYXs1JO nb7jLxBS6cyvC8S2F18zJiRAaWfuuuy7b0PCgytSox20L/FrdRDlP8Vg70vZrUV6vV4z xIFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xzkicxGO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si3310729pff.122.2018.03.14.23.26.10; Wed, 14 Mar 2018 23:26:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xzkicxGO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751864AbeCOG0F (ORCPT + 28 others); Thu, 15 Mar 2018 02:26:05 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:63149 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbeCOG0E (ORCPT ); Thu, 15 Mar 2018 02:26:04 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id w2F6PVED008255; Thu, 15 Mar 2018 15:25:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w2F6PVED008255 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1521095132; bh=mcHw93/eJ4bMRFlhcRc1BL5T5EHTrQRamU0EReTQL6s=; h=From:To:Cc:Subject:Date:From; b=xzkicxGOqQf+Y2fIRVSMIIvh+V+AmezSAzNMbxr0F+o01qOcZ50iS8SkjKGcwxEkh s5ARLqHYM/FPmQeC+htlu4dwcPTAO1ASrBaYhnCIto09KCKx0S93e/rCBF4nB7HFjK H/8eCvXsVuATv3Tv7kwvwQ9ep2V/JWM0dJD+hSoLf4twlpe90H81z9l2rQUyoT3KM+ eAaLxkiEVcBCnLvic/WXv5EU7/vnNB0KwzyA6WDNIkAQ2DtT16jVDWO82ZoqLkGlUl DQg6mMT90Jv1XRTIj8CsjG97HjYCysMqP/g1XHxlhl981WzEHYWOgSlssLSZ7sfTxx 27qFyw+Tktx4g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kconfig: do not include both curses.h and ncurses.h for nconfig Date: Thu, 15 Mar 2018 15:25:27 +0900 Message-Id: <1521095127-23067-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nconf.h includes and "ncurses.h", but it does not need to include both. Generally, it should fall back to curses.h only when ncurses.h is not found. But, looks like it has never happened; these includes have been here for many years since commit 692d97c380c6 ("kconfig: new configuration interface (nconfig)"), and nobody has complained about hard-coding of ncurses.h . Let's simply drop the curses.h inclusion. I replaced "ncurses.h" with since it does not exist in the local directory. Signed-off-by: Masahiro Yamada --- scripts/kconfig/nconf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.7.4 diff --git a/scripts/kconfig/nconf.h b/scripts/kconfig/nconf.h index 0d52617..9f6f21d 100644 --- a/scripts/kconfig/nconf.h +++ b/scripts/kconfig/nconf.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include @@ -24,8 +24,6 @@ #include #include -#include "ncurses.h" - #define max(a, b) ({\ typeof(a) _a = a;\ typeof(b) _b = b;\