projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0372d6
)
RAS/AMD/FMPM: Use atl internal.h for INVALID_SPA
author
John Allen
<john.allen@amd.com>
Thu, 6 Jun 2024 20:33:13 +0000
(20:33 +0000)
committer
Borislav Petkov (AMD)
<bp@alien8.de>
Sun, 9 Jun 2024 21:44:05 +0000
(23:44 +0200)
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 <john.allen@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link:
https://lore.kernel.org/r/20240606203313.51197-7-john.allen@amd.com
drivers/ras/amd/fmpm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ras/amd/fmpm.c
b/drivers/ras/amd/fmpm.c
index 271dfad05d6835cb5a52feccdcfd6abfcf1410c3..90de737fbc909780581068c82eff4ecfb291b7fb 100644
(file)
--- 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;