Skip to content

Commit bdb6010

Browse files
rddunlapmasahir0y
authored andcommitted
kconfig: document Kconfig source file comments
I saw this type of Kconfig construct on LKML: config SYMBOOL #bool "prompt string" default y and wondered what it does. Then I wondered if '#' comments are even documented. They aren't, so add a little doc for that. Ah, good. kconfig says: arch/x86/Kconfig:2942:warning: config symbol defined without type Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent b2d00d7 commit bdb6010

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Documentation/kbuild/kconfig-language.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,12 @@ This sets the config program's title bar if the config program chooses
430430
to use it. It should be placed at the top of the configuration, before any
431431
other statement.
432432

433+
'#' Kconfig source file comment:
434+
435+
An unquoted '#' character anywhere in a source file line indicates
436+
the beginning of a source file comment. The remainder of that line
437+
is a comment.
438+
433439

434440
Kconfig hints
435441
-------------

0 commit comments

Comments
 (0)