libnvdimm/security: Consolidate 'security' operations
authorDan Williams <dan.j.williams@intel.com>
Tue, 27 Aug 2019 00:55:05 +0000 (17:55 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 29 Aug 2019 20:51:57 +0000 (13:51 -0700)
commit7b60422cb796d40431337becf2129fd9944b2f05
tree50cacd59a7d6691b0c2ff43a7705dcc46c2d98e5
parentbc4f2199ca3107809df96cf72f618b9559b00a21
libnvdimm/security: Consolidate 'security' operations

The security operations are exported from libnvdimm/security.c to
libnvdimm/dimm_devs.c, and libnvdimm/security.c is optionally compiled
based on the CONFIG_NVDIMM_KEYS config symbol.

Rather than export the operations across compile objects, just move the
__security_store() entry point to live with the helpers.

Acked-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/156686730515.184120.10522747907309996674.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/security.c