testing: nvdimm: make struct class structures constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 14:02:12 +0000 (16:02 +0200)
committerIra Weiny <ira.weiny@intel.com>
Wed, 11 Oct 2023 16:04:28 +0000 (09:04 -0700)
commitdd6cad2dcb581b2b15997b6e8d50de64644c3011
treec99fcfbaf638fda0a901e4b118f532af5a76e51b
parentfd86eff33898f8ec2381620be32b06ee57f9adf8
testing: nvdimm: make struct class structures constant

Now that the driver core allows for struct class to be in read-only
memory, we should make all 'class' structures declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at runtime.

Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/2023100611-platinum-galleria-ceb3@gregkh
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
tools/testing/nvdimm/test/ndtest.c
tools/testing/nvdimm/test/nfit.c