From patchwork Tue Dec 11 11:00:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 153442 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp477101ljp; Tue, 11 Dec 2018 03:04:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/XRRAJadtkYAei7jGA6ygHRSZ2uixpEfXjrhw7qF8B1yn9NssvkVvesjTqMpo2txY96QmNw X-Received: by 2002:a62:26c7:: with SMTP id m190mr16168306pfm.79.1544526241222; Tue, 11 Dec 2018 03:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544526241; cv=none; d=google.com; s=arc-20160816; b=V1snd1ZBoIdZ7IrFxL1dZo98IU44bAtF6OIpS6HzBwHsGQU0JIn6EV/jVUwqDrKUiG tcNZfOapaJiFZCxg2VQpRp04Aw7d5nlUAd9Zw8W3E+T88mFma/84NS6fGxyAy4UDqV/Q kcWe7LtixuPK14nmHJHXeNOl5WbUQe9qZBVwgqDijIEW3o56217vrUVms+jBaVT1L61R OFAHsgk1x4A/bCYY8ZjprimdKdl6sWz3KEgYNVUGE8SU34hK6WIxMe1uwZejmoY0s8iU nF9TVnqFwzRhgJzFYVm1emLnRFG/tbfyDU3kXoUyNhMIsNsSdIm2TCho9vToHkyDjJH8 3nuQ== 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; bh=Z/kHxnD36c3oVOGfo1iWK8KYD5sXAJ88UzOGKFNqvfQ=; b=tnfFQT3vys2FSB/YHePIKactrVRiazvKYK6szXEYTWgc3AkVl5xF7AdFSu22+aA3zf MB+E3ljISlRLEcaAdlBSqmNmzAkciCxVg1dXUXLZd41ve2lXLxOiKgVwcnv3rFHfHe8M AeoGKVEGoutOwsgVgqNoTmB7896XAMQ8qeLxi52BVny/MAigVGr1bqGAdNtaA8Rq1CwX 2Ss3SNrV0CugYN/Jc+BDPDPVUx5TKPnFcUjczM0mJFrKOClBs9EOjShnaD+n6ub22V6/ elEoMUsdCKmKSbTNpAX88eQBEWMD9YrK3juAJsaHknS53wqbpgN68BxPQyBqb3bUeMys yOYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lOb2hJb4; 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 28si15308374pfm.50.2018.12.11.03.04.00; Tue, 11 Dec 2018 03:04:01 -0800 (PST) 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=lOb2hJb4; 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 S1726644AbeLKLD6 (ORCPT + 31 others); Tue, 11 Dec 2018 06:03:58 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:40153 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbeLKLD4 (ORCPT ); Tue, 11 Dec 2018 06:03:56 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id wBBB1C5b017210; Tue, 11 Dec 2018 20:01:12 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com wBBB1C5b017210 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544526073; bh=Z/kHxnD36c3oVOGfo1iWK8KYD5sXAJ88UzOGKFNqvfQ=; h=From:To:Cc:Subject:Date:From; b=lOb2hJb4WTGHwsHZAMoJG6Axbi3gbyL/FI1KnvYeUbegRSTFmInqWEQMhaNjFFMUh IYRRTFww77M5vu8WEf0HR+iqrqAdNeZVQeoCQCCBhfjVtmzTRWwTDB2VESsENB2xnX 0f3UYJweUyciKDaiRjShBvhDY74qJYy8eBTk27i2WPWsWv5ESdFIfEucfQpTKXlPR0 V7ZHnwdADLDaG/cvFu9xTh4IqfxIdnrkg3v9hAI7b8yQ0JSOrfjVnBKw61MZK6vvse kY0FUQtdbpeoW9S46ipXyrWyDPQqPCcUMpU2IoCXo+MhYll8oE5Kj2v/pPKvv7dg8i sCJ5D+/UClOsg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ulf Magnusson , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-arch , "David S. Miller" , David Howells , Thomas Gleixner , Will Deacon , Wolfram Sang , Ingo Molnar , Geert Uytterhoeven , Herbert Xu , Michal Simek , linux-arm-kernel@lists.infradead.org Subject: [PATCH 00/27] kconfig: remove all reduce/shift conflicts, refactor lexer, fix various issues Date: Tue, 11 Dec 2018 20:00:43 +0900 Message-Id: <1544526070-16690-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 When I tryed to change something, I was often hit by annoying shift/reduce conflicts in the parser. The lexer and parser are too cluttered. So, I decided to clean-up now. - Fix all shift/reduce conflicts in the parser - Rewrite the lexer. The linear keyword search was removed. The number of states descreased from 6 to 4. - Fix various subtle issues Masahiro Yamada (27): kconfig: fix file name and line number of warn_ignored_character() kconfig: fix memory leak when EOF is encountered in quotation kconfig: require T_EOL to reduce visible statement kconfig: remove unneeded pattern matching to whitespaces kconfig: refactor pattern matching in STRING state kconfig: fix ambiguous grammar in terms of new lines kconfig: clean up EOF handling in the lexer kconfig: warn no new line at end of file kconfig: remove grammatically ambiguous "unexpected option" diagnostic kconfig: remove grammatically ambiguous option_error kconfig: remove redundant if_block rule kconfig: remove redundant menu_block rule kconfig: loosen the order of "visible" and "depends on" in menu entry kconfig: rename depends_list to comment_option_list kconfig: remove redundant token defines kconfig: use distinct tokens for type and default properties kconfig: refactor scanning and parsing "option" properties kconfig: use specific tokens instead of T_ASSIGN for assignments kconfig: use T_WORD instead of T_VARIABLE for variables microblaze: surround string default in Kconfig with double quotes treewide: surround file paths in Kconfig files with double quotes kconfig: ban the use of '.' and '/' in unquoted words kconfig: refactor end token rules kconfig: stop associating kconf_id with yylval kconfig: switch to ASSIGN_VAL state in the second lexer kconfig: update current_pos in the second lexer kconfig: remove keyword lookup table entirely arch/arm/Kconfig | 2 +- arch/arm/kvm/Kconfig | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/kvm/Kconfig | 2 +- arch/ia64/Kconfig | 2 +- arch/m68k/Kconfig | 6 +- arch/microblaze/Kconfig.platform | 2 +- arch/mips/kvm/Kconfig | 2 +- arch/openrisc/Kconfig | 2 +- arch/powerpc/Kconfig | 4 +- arch/powerpc/kvm/Kconfig | 2 +- arch/riscv/Kconfig | 2 +- arch/s390/Kconfig | 2 +- arch/s390/kvm/Kconfig | 2 +- arch/sh/Kconfig | 2 +- arch/sparc/Kconfig | 2 +- arch/x86/Kconfig | 2 +- arch/x86/kvm/Kconfig | 2 +- block/Kconfig | 2 +- crypto/Kconfig | 4 +- drivers/crypto/Kconfig | 2 +- drivers/gpu/drm/i915/Kconfig | 2 +- drivers/hwmon/Kconfig | 2 +- drivers/i2c/Kconfig | 6 +- drivers/pps/Kconfig | 4 +- drivers/ras/Kconfig | 2 +- drivers/thermal/Kconfig | 2 +- drivers/w1/Kconfig | 4 +- kernel/Kconfig.preempt | 2 +- lib/Kconfig.debug | 4 +- scripts/kconfig/kconf_id.c | 52 -------- scripts/kconfig/lkc.h | 19 +-- scripts/kconfig/menu.c | 43 +++--- scripts/kconfig/preprocess.c | 3 +- scripts/kconfig/zconf.l | 232 +++++++++++++++++--------------- scripts/kconfig/zconf.y | 280 ++++++++++++++++----------------------- security/Kconfig | 16 +-- security/integrity/Kconfig | 4 +- 38 files changed, 313 insertions(+), 414 deletions(-) delete mode 100644 scripts/kconfig/kconf_id.c -- 2.7.4