summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2018-03-29 19:53:56 +0000
committerbrooks <brooks@FreeBSD.org>2018-03-29 19:53:56 +0000
commitbb1ff01c45c009f573ceab5cdfedcd3b8bc8d8b2 (patch)
tree8bb665019cb04b78fd0f675a4037cd3d9287ecab /share
parentb26dff771d448945c86a9576f29e2cdbbe34d1e3 (diff)
downloadFreeBSD-src-bb1ff01c45c009f573ceab5cdfedcd3b8bc8d8b2.zip
FreeBSD-src-bb1ff01c45c009f573ceab5cdfedcd3b8bc8d8b2.tar.gz
MFC r328522:
Create deprecation management functions. gone_in(majar, msg); If we're running in FreeBSD major, tell the user this code may be deleted soon. If we're running in FreeBSD major - 1, the the user is deprecated and will be gone in major. Otherwise say nothing. gone_in_dev(dev, major, msg) Just like gone_in, except use device_printf. New tunable / sysctl debug.oboslete_panic: 0 - don't panic, 1 - panic in major or newer , 2 - panic in major - 1 or newer default: 0 if NO_OBSOLETE_CODE is defined, then both of these turn into compile time errors when building for major. Add options NO_OBSOLETE_CODE to kernel build system. This lets us tag code that's going away so users know it will be gone, as well as automatically manage things. Differential Review: https://reviews.freebsd.org/D13818
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud