diff options
author | Enrico Weigelt <info@metux.net> | 2020-12-15 17:35:31 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2020-12-15 21:47:45 -0800 |
commit | 5ae96d779ff3eeb2977919ff311a6c8849943c2d (patch) | |
tree | 02b49934c388664bd97bab1f47261fe728bdaaf9 /drivers/nvdimm/core.c | |
parent | 9a7e3d7f056831a6193d6d737fb7a26dfdceb04b (diff) | |
download | linux-5ae96d779ff3eeb2977919ff311a6c8849943c2d.tar.bz2 |
libnvdimm: Cleanup include of badblocks.h
* drivers/nvdimm/core.c doesn't use anything from badblocks.h on its own,
thus including it isn't needed. There's indeed indirect use, via funcs
in nd.h, but this one already includes badblocks.h.
* drivers/nvdimm/claim.c calls stuff from badblocks.h and therefore should
include it on its own (instead of relying any other header doing that)
* drivers/nvdimm/btt.h doesn't really need anything from badblocks.h and
can easily live with a forward declaration of struct badblocks (just
having pointers to it, but not dereferencing it anywhere)
Signed-off-by: Enrico Weigelt <info@metux.net>
Link: https://lore.kernel.org/r/20201215163531.21446-1-info@metux.net
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/core.c')
-rw-r--r-- | drivers/nvdimm/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c index c21ba0602029..7de592d7eff4 100644 --- a/drivers/nvdimm/core.c +++ b/drivers/nvdimm/core.c @@ -3,7 +3,6 @@ * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. */ #include <linux/libnvdimm.h> -#include <linux/badblocks.h> #include <linux/suspend.h> #include <linux/export.h> #include <linux/module.h> |