• Jeff Garzik's avatar
    Permit silencing of __deprecated warnings. · de488443
    Jeff Garzik authored
    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: default avatarJeff Garzik <jgarzik@redhat.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    de488443
compiler.h 4.7 KB