init: add global 'warned' state
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Feb 2018 17:11:31 +0000 (10:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Feb 2018 17:11:31 +0000 (10:11 -0700)
commit5ec3bc5401f354444bdc0ce3c240df664f50d520
treebb3b74e50324e422a4a2752f5b6fffda11787edb
parentb88beb60738e0ec936b3d0f5a09c315ebb654336
init: add global 'warned' state

In various places we spew a warning if some static variable
isn't set, but this still means it can happen once per job.
Add some global state to allow to track this globally instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
debug.h
init.c