Message ID | 20151014022802.34443.2455.stgit@dwillia2-desk3.jf.intel.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c index 9b6ac57c6e73..e85848caf8d2 100644 --- a/drivers/nvdimm/core.c +++ b/drivers/nvdimm/core.c @@ -400,7 +400,7 @@ static int nd_pi_nop_generate_verify(struct blk_integrity_iter *iter) int nd_integrity_init(struct gendisk *disk, unsigned long meta_size) { struct blk_integrity bi; - struct blk_integrity_profile profile = { + static struct blk_integrity_profile profile = { .name = "ND-PI-NOP", .generate_fn = nd_pi_nop_generate_verify, .verify_fn = nd_pi_nop_generate_verify,
Move the profile in nd_integrity_init() off the stack, now the blk_integrity_register() no longer allocates storage to duplicate the profile. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- drivers/nvdimm/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)