diff mbox series

testing: nvdimm: asm/mce.h is not needed in nfit.c

Message ID 20220429074334.21771-1-msuchanek@suse.de (mailing list archive)
State Accepted
Commit d43fae7c4d3e6dfee9d26287907dbe8e27ff8846
Headers show
Series testing: nvdimm: asm/mce.h is not needed in nfit.c | expand

Commit Message

Michal Suchanek April 29, 2022, 7:43 a.m. UTC
asm/mce.h is not available on arm, and it is not needed to build nfit.c.
Remove the include.

It was likely needed for COPY_MC_TEST

Fixes: 3adb776384f2 ("x86, libnvdimm/test: Remove COPY_MC_TEST")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 tools/testing/nvdimm/test/nfit.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Dan Williams April 29, 2022, 6:57 p.m. UTC | #1
On Fri, Apr 29, 2022 at 12:43 AM Michal Suchanek <msuchanek@suse.de> wrote:
>
> asm/mce.h is not available on arm, and it is not needed to build nfit.c.
> Remove the include.
>
> It was likely needed for COPY_MC_TEST
>
> Fixes: 3adb776384f2 ("x86, libnvdimm/test: Remove COPY_MC_TEST")
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>

Yup, good catch, applied.
diff mbox series

Patch

diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index 0bc91ffee257..b4743ba65b96 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -23,8 +23,6 @@ 
 #include "nfit_test.h"
 #include "../watermark.h"
 
-#include <asm/mce.h>
-
 /*
  * Generate an NFIT table to describe the following topology:
  *