aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-01-12 06:21:42 +0100
committerElyes Haouas <ehaouas@noos.fr>2023-01-17 04:23:49 +0000
commit24769421cd1df4f58a8addce16ff9c46080ba1ba (patch)
treef88a0af9a0ee4b367f4891bf34ce3f1a8b25ab0c /src/vendorcode
parent4d661eebe95b06acae7d99777ed36ba56a560112 (diff)
treewide: Fix old-style declarations
Replace old style declaration "const static" with "static const". This to enable "Wold-style-declaration" command option. Change-Id: I757632befed1854f422daaf4dfea58281b16e2f5 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71841 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/amd/pi/Lib/amdlib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vendorcode/amd/pi/Lib/amdlib.c b/src/vendorcode/amd/pi/Lib/amdlib.c
index a5f6898c3f..cc742301d6 100644
--- a/src/vendorcode/amd/pi/Lib/amdlib.c
+++ b/src/vendorcode/amd/pi/Lib/amdlib.c
@@ -58,16 +58,16 @@ RDATA_GROUP (G1_PEICC)
#define FILECODE LIB_AMDLIB_FILECODE
-BOOLEAN
STATIC
+BOOLEAN
GetPciMmioAddress (
OUT UINT64 *MmioAddress,
OUT UINT32 *MmioSize,
IN AMD_CONFIG_PARAMS *StdHeader
);
-VOID
STATIC
+VOID
LibAmdGetDataFromPtr (
IN ACCESS_WIDTH AccessWidth,
IN CONST VOID *Data,
@@ -150,8 +150,8 @@ WriteIo32 (
__outdword (Address, Data);
}
-AMDLIB_OPTIMIZE
STATIC
+AMDLIB_OPTIMIZE
UINT64 SetFsBase (
UINT64 address
)
@@ -163,8 +163,8 @@ UINT64 SetFsBase (
return hwcr;
}
-AMDLIB_OPTIMIZE
STATIC
+AMDLIB_OPTIMIZE
VOID
RestoreHwcr (
UINT64
@@ -961,8 +961,8 @@ LibAmdPciPoll (
*
* @retval TRUE MmioAddress/MmioSize are valid
*/
-BOOLEAN
STATIC
+BOOLEAN
GetPciMmioAddress (
OUT UINT64 *MmioAddress,
OUT UINT32 *MmioSize,
@@ -1300,8 +1300,8 @@ LibAmdGetPackageType (
* @param[out] TempDataMask typecast data
*/
-VOID
STATIC
+VOID
LibAmdGetDataFromPtr (
IN ACCESS_WIDTH AccessWidth,
IN CONST VOID *Data,