File testing-nvdimm-asm-mce.h-is-only-available-on-x86.patch of Package nfit_test
From 9153ea34e230bd15557f5fc67a536d62a036e1a2 Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Thu, 28 Apr 2022 22:02:08 +0200
Subject: [PATCH] testing: nvdimm: asm/mce.h is only available on x86
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
tools/testing/nvdimm/test/nfit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index 0bc91ffee257..6900a64d4e3b 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -23,7 +23,9 @@
#include "nfit_test.h"
#include "../watermark.h"
+#ifdef CONFIG_foobar
#include <asm/mce.h>
+#endif
/*
* Generate an NFIT table to describe the following topology:
--
2.34.1