dmerror: export configuration so that subprograms don't have to reinit
authorDarrick J. Wong <djwong@kernel.org>
Tue, 20 Jul 2021 01:09:13 +0000 (18:09 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 8 Aug 2021 14:59:59 +0000 (22:59 +0800)
commitab9b671c554960fde00658ff1b1122960e010db0
treebde0edc5561c662cfafd6517453cc9624a49eed8
parent9c1f3149271f556c031b6a348acfae5ce47ce18f
dmerror: export configuration so that subprograms don't have to reinit

Export the dmerror configuration variables so that subprograms don't
have to reinitialize the configuration in their own subprograms before
calling the helpers.  In the next patch (where we allow dmerror for log
and rt devices) it will become important to avoid these
reinitializations.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/dmerror
src/dmerror