xref: /linux/scripts/kconfig/tests/warn_changed_input/Kconfig (revision 486b257357c23743d9729ea715136d105fff461e)
1# SPDX-License-Identifier: GPL-2.0
2
3config DEP
4	bool "DEP"
5	help
6	  Test dependency symbol for Kconfig warning coverage.
7	  This is used by the warn_changed_input selftest.
8	  It intentionally stays unset in the input fragment.
9	  The test checks how dependent user input is adjusted.
10
11config A
12	bool "A"
13	depends on DEP
14	help
15	  Test bool symbol for changed-input diagnostics.
16	  The input fragment requests this symbol as built-in.
17	  The unmet dependency on DEP forces the final value to n.
18	  The warning should report that downgrade.
19
20config NUM
21	int "NUM"
22	range 10 20
23	help
24	  Test integer symbol for changed-input diagnostics.
25	  The input fragment requests a value outside the allowed range.
26	  Kconfig resolves it to the constrained in-range value.
27	  The warning should report that adjustment.
28
29config HEX_RANGE
30	hex
31	range 0 0xfffffffffffffffe
32	default 0xffffffffffffffff
33
34config DUP
35	bool "DUP"
36	depends on DEP
37	help
38	  Test duplicate-definition handling for changed-input diagnostics.
39	  The input fragment requests this symbol as built-in.
40	  The duplicate definition below must not produce a duplicate warning.
41	  This keeps the warning output stable for repeated menu entries.
42
43config DUP
44	bool
45	depends on DEP
46