All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] kconfig: warn of unhandled characters in Kconfig commands
@ 2015-07-10  8:25 ` Andreas Ruprecht
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Ruprecht @ 2015-07-10  8:25 UTC (permalink / raw)
  To: Ulf Magnusson
  Cc: Paul Bolle, Valentin Rothberg, rafael.j.wysocki, linux-kbuild,
	linux-kernel, hengelein Stefan, linux, Michal Marek,
	Andreas Ruprecht

This patchset changes the lexer file to emit a warning if any unhandled
characters are found in the input. So far, Kconfig options like

 +config FOO
    bool
    [...]

(note the wrong '+'!) were parsed without a warning. As simply adding a
warning for '.' produces lots of warnings as occasionally '---help---'
is used instead of 'help' (and thus '-' is recognized as an unhandled
character), we need to handle '---help---' separately.

Changes to v1:
	- add '---help---' in zconf.gperf instead of special casing
	  it in zconf.l

Changes to v2:
	- Do no constify char parameter to warn_ignored_character
	- Shorten rule definitions for '.'

Andreas Ruprecht (2):
  kconfig: warn of unhandled characters in Kconfig commands
  kconfig: Regenerate shipped zconf.{hash,lex}.c files

 scripts/kconfig/zconf.gperf          |   1 +
 scripts/kconfig/zconf.hash.c_shipped |  58 ++++---
 scripts/kconfig/zconf.l              |  20 ++-
 scripts/kconfig/zconf.lex.c_shipped  | 325 +++++++++++++++++------------------
 4 files changed, 204 insertions(+), 200 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-12  1:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-10  8:25 [PATCH v3 0/2] kconfig: warn of unhandled characters in Kconfig commands Andreas Ruprecht
2015-07-10  8:25 ` Andreas Ruprecht
2015-07-10  8:25 ` [PATCH v3 1/2] " Andreas Ruprecht
2015-07-10  8:25   ` Andreas Ruprecht
2015-07-12  1:46   ` Ulf Magnusson
2015-07-10  8:25 ` [PATCH v3 2/2] kconfig: Regenerate shipped zconf.{hash,lex}.c files Andreas Ruprecht
2015-07-10  8:25   ` Andreas Ruprecht
2015-07-11 15:56 ` [PATCH v3 0/2] kconfig: warn of unhandled characters in Kconfig commands Ulf Magnusson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.