aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Allen <[email protected]>2024-06-06 20:33:13 +0000
committerBorislav Petkov (AMD) <[email protected]>2024-06-09 23:44:05 +0200
commitf4c0cd1870afd57181e8087c6cf8da3d7fa2cebe (patch)
tree9703cb5c61a2925befb719dac0304c5ae954764b
parente0372d6969bca2bc57e1a24129473694ff65641c (diff)
RAS/AMD/FMPM: Use atl internal.h for INVALID_SPA
Both the AMD ATL and the FMPM driver define INVALID_SPA. Include the definition from the ATL internal.h header in the FMPM driver. Signed-off-by: John Allen <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/ras/amd/fmpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ras/amd/fmpm.c b/drivers/ras/amd/fmpm.c
index 271dfad05d68..90de737fbc90 100644
--- a/drivers/ras/amd/fmpm.c
+++ b/drivers/ras/amd/fmpm.c
@@ -56,6 +56,8 @@
#include "../debugfs.h"
+#include "atl/internal.h"
+
#define INVALID_CPU UINT_MAX
/* Validation Bits */
@@ -116,8 +118,6 @@ static struct fru_rec **fru_records;
/* system physical addresses array */
static u64 *spa_entries;
-#define INVALID_SPA ~0ULL
-
static struct dentry *fmpm_dfs_dir;
static struct dentry *fmpm_dfs_entries;