Re: [PATCH] testing: nvdimm: make struct class structures constant

From: Ira Weiny
Date: Wed Oct 11 2023 - 11:53:45 EST


Greg Kroah-Hartman wrote:
> 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@xxxxxxxxx>
> Cc: Vishal Verma <vishal.l.verma@xxxxxxxxx>
> Cc: Dave Jiang <dave.jiang@xxxxxxxxx>
> Cc: Ira Weiny <ira.weiny@xxxxxxxxx>

Tested-by: Ira Weiny <ira.weiny@xxxxxxxxx>
Reviewed-by: Ira Weiny <ira.weiny@xxxxxxxxx>

> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> ---
> tools/testing/nvdimm/test/ndtest.c | 17 +++++++++--------
> tools/testing/nvdimm/test/nfit.c | 14 +++++++-------
> 2 files changed, 16 insertions(+), 15 deletions(-)