diff options
| author | Christoph Hellwig <[email protected]> | 2019-08-18 11:05:55 +0200 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-08-20 09:41:35 -0300 |
| commit | fdc029b19dfd190840d23e5c70bd231140b0e4a4 (patch) | |
| tree | e8b116322db2a5211c2c4d6f5c18a57e16c368d0 /tools | |
| parent | 0c385190392d8c7128fb7517b3c676e19c7b8808 (diff) | |
memremap: remove the dev field in struct dev_pagemap
The dev field in struct dev_pagemap is only used to print dev_name in two
places, which are at best nice to have. Just remove the field and thus
the name in those two messages.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Tested-by: Bharata B Rao <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/testing/nvdimm/test/iomap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c index cd040b5abffe..3f55f2f99112 100644 --- a/tools/testing/nvdimm/test/iomap.c +++ b/tools/testing/nvdimm/test/iomap.c @@ -132,7 +132,6 @@ void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap) if (!nfit_res) return devm_memremap_pages(dev, pgmap); - pgmap->dev = dev; if (!pgmap->ref) { if (pgmap->ops && (pgmap->ops->kill || pgmap->ops->cleanup)) return ERR_PTR(-EINVAL); |