]> git.baikalelectronics.ru Git - kernel.git/commit
Permit silencing of __deprecated warnings.
authorJeff Garzik <jeff@garzik.org>
Thu, 25 Oct 2007 08:06:13 +0000 (04:06 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 25 Oct 2007 22:10:17 +0000 (15:10 -0700)
commitcc3268bc8d5a4e9a2349ea88825e5b7bca609408
treeb5fa6f7def2bcd53f5b044fc8d632b79654f5d08
parent82ad14d48a67f4a11432b3c88c1ba45c7eb84273
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>
include/linux/compiler.h
lib/Kconfig.debug