aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-10-25 04:06:13 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-25 18:10:17 -0400
commitde48844398f81cfdf087d56e12c920d620dae8d5 (patch)
treeb5fa6f7def2bcd53f5b044fc8d632b79654f5d08 /lib/Kconfig.debug
parentc67c36e4b86872ac875716d502748b84b2541de5 (diff)
Permit silencing of __deprecated warnings.
The __deprecated marker is quite useful in highlighting the remnants of old APIs that want removing. However, it is quite normal for one or more years to pass, before the (usually ancient, bitrotten) code in question is either updated or deleted. Thus, like __must_check, add a Kconfig option that permits the silencing of this compiler warning. This change mimics the ifdef-ery and Kconfig defaults of MUST_CHECK as closely as possible. Signed-off-by: Jeff Garzik <jgarzik@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1faa5087dc86..1e5f207b9074 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -9,6 +9,14 @@ config PRINTK_TIME
9 operations. This is useful for identifying long delays 9 operations. This is useful for identifying long delays
10 in kernel startup. 10 in kernel startup.
11 11
12config ENABLE_WARN_DEPRECATED
13 bool "Enable __deprecated logic"
14 default y
15 help
16 Enable the __deprecated logic in the kernel build.
17 Disable this to suppress the "warning: 'foo' is deprecated
18 (declared at kernel/power/somefile.c:1234)" messages.
19
12config ENABLE_MUST_CHECK 20config ENABLE_MUST_CHECK
13 bool "Enable __must_check logic" 21 bool "Enable __must_check logic"
14 default y 22 default y