northbridge/amd/amdmct: Use `static const` instead of `const static`
From ISO C99 standard: »The placement of a storage-class specifier
other than at the beginning of the declaration specifiers in a
declaration is an obsolescent feature.«
Found at <http://www.approxion.com/?p=41>.
The following command was used to make the change.
$ git grep -l 'const static' src/ | xargs sed -i 's/const static/static const/'
As asked by Bruce Griffith, the changes in `src/vendorcode` were
reverted as that is what AMD prefers.
The same change was done already for AMD Persimmon in the following
commit.
commit 824e192809
Author: Jens Rottmann <JRottmann@LiPPERTembedded.de>
Date: Wed Feb 20 21:24:20 2013 +0100
Persimmon: platform_cfg.h: Declare codec arrays as `static const`
Reviewed-on: http://review.coreboot.org/2474
Change-Id: I233c83fdc95ea4f83f7296c818547beb52366a3d
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3197
Tested-by: build bot (Jenkins)
Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
3aa58162e1
commit
42409e8732
|
@ -84,7 +84,7 @@ static void print_debug_dqs_pair(const char *str, u32 val, const char *str2, u32
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Warning: These must be located so they do not cross a logical 16-bit segment boundary!*/
|
/*Warning: These must be located so they do not cross a logical 16-bit segment boundary!*/
|
||||||
const static u32 TestPatternJD1a_D[] = {
|
static const u32 TestPatternJD1a_D[] = {
|
||||||
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW0-1, ALL-EVEN */
|
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW0-1, ALL-EVEN */
|
||||||
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2-3, ALL-EVEN */
|
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2-3, ALL-EVEN */
|
||||||
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW4-5, ALL-EVEN */
|
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW4-5, ALL-EVEN */
|
||||||
|
@ -122,7 +122,7 @@ const static u32 TestPatternJD1a_D[] = {
|
||||||
0x80808080,0x80808080,0x7F7F7F7F,0x7F7F7F7F, /* QW4-5, DQ7-ODD */
|
0x80808080,0x80808080,0x7F7F7F7F,0x7F7F7F7F, /* QW4-5, DQ7-ODD */
|
||||||
0x80808080,0x80808080,0x80808080,0x80808080 /* QW6-7, DQ7-ODD */
|
0x80808080,0x80808080,0x80808080,0x80808080 /* QW6-7, DQ7-ODD */
|
||||||
};
|
};
|
||||||
const static u32 TestPatternJD1b_D[] = {
|
static const u32 TestPatternJD1b_D[] = {
|
||||||
0x00000000,0x00000000,0x00000000,0x00000000, /* QW0,CHA-B, ALL-EVEN */
|
0x00000000,0x00000000,0x00000000,0x00000000, /* QW0,CHA-B, ALL-EVEN */
|
||||||
0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, /* QW1,CHA-B, ALL-EVEN */
|
0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, /* QW1,CHA-B, ALL-EVEN */
|
||||||
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2,CHA-B, ALL-EVEN */
|
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2,CHA-B, ALL-EVEN */
|
||||||
|
|
|
@ -50,19 +50,19 @@ static void mct_DisableDQSRcvEn_D(struct DCTStatStruc *pDCTstat);
|
||||||
|
|
||||||
/* Warning: These must be located so they do not cross a logical 16-bit
|
/* Warning: These must be located so they do not cross a logical 16-bit
|
||||||
segment boundary! */
|
segment boundary! */
|
||||||
const static u32 TestPattern0_D[] = {
|
static const u32 TestPattern0_D[] = {
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
};
|
};
|
||||||
const static u32 TestPattern1_D[] = {
|
static const u32 TestPattern1_D[] = {
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
};
|
};
|
||||||
const static u32 TestPattern2_D[] = {
|
static const u32 TestPattern2_D[] = {
|
||||||
0x12345678, 0x87654321, 0x23456789, 0x98765432,
|
0x12345678, 0x87654321, 0x23456789, 0x98765432,
|
||||||
0x59385824, 0x30496724, 0x24490795, 0x99938733,
|
0x59385824, 0x30496724, 0x24490795, 0x99938733,
|
||||||
0x40385642, 0x38465245, 0x29432163, 0x05067894,
|
0x40385642, 0x38465245, 0x29432163, 0x05067894,
|
||||||
|
|
|
@ -92,7 +92,7 @@ static void print_debug_dqs_pair(const char *str, u32 val, const char *str2, u32
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Warning: These must be located so they do not cross a logical 16-bit segment boundary!*/
|
/*Warning: These must be located so they do not cross a logical 16-bit segment boundary!*/
|
||||||
const static u32 TestPatternJD1a_D[] = {
|
static const u32 TestPatternJD1a_D[] = {
|
||||||
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW0-1, ALL-EVEN */
|
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW0-1, ALL-EVEN */
|
||||||
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2-3, ALL-EVEN */
|
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2-3, ALL-EVEN */
|
||||||
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW4-5, ALL-EVEN */
|
0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF, /* QW4-5, ALL-EVEN */
|
||||||
|
@ -130,7 +130,7 @@ const static u32 TestPatternJD1a_D[] = {
|
||||||
0x80808080,0x80808080,0x7F7F7F7F,0x7F7F7F7F, /* QW4-5, DQ7-ODD */
|
0x80808080,0x80808080,0x7F7F7F7F,0x7F7F7F7F, /* QW4-5, DQ7-ODD */
|
||||||
0x80808080,0x80808080,0x80808080,0x80808080 /* QW6-7, DQ7-ODD */
|
0x80808080,0x80808080,0x80808080,0x80808080 /* QW6-7, DQ7-ODD */
|
||||||
};
|
};
|
||||||
const static u32 TestPatternJD1b_D[] = {
|
static const u32 TestPatternJD1b_D[] = {
|
||||||
0x00000000,0x00000000,0x00000000,0x00000000, /* QW0,CHA-B, ALL-EVEN */
|
0x00000000,0x00000000,0x00000000,0x00000000, /* QW0,CHA-B, ALL-EVEN */
|
||||||
0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, /* QW1,CHA-B, ALL-EVEN */
|
0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, /* QW1,CHA-B, ALL-EVEN */
|
||||||
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2,CHA-B, ALL-EVEN */
|
0x00000000,0x00000000,0x00000000,0x00000000, /* QW2,CHA-B, ALL-EVEN */
|
||||||
|
|
|
@ -49,19 +49,19 @@ static void mct_DisableDQSRcvEn_D(struct DCTStatStruc *pDCTstat);
|
||||||
|
|
||||||
/* Warning: These must be located so they do not cross a logical 16-bit
|
/* Warning: These must be located so they do not cross a logical 16-bit
|
||||||
segment boundary! */
|
segment boundary! */
|
||||||
const static u32 TestPattern0_D[] = {
|
static const u32 TestPattern0_D[] = {
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa,
|
||||||
};
|
};
|
||||||
const static u32 TestPattern1_D[] = {
|
static const u32 TestPattern1_D[] = {
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
0x55555555, 0x55555555, 0x55555555, 0x55555555,
|
||||||
};
|
};
|
||||||
const static u32 TestPattern2_D[] = {
|
static const u32 TestPattern2_D[] = {
|
||||||
0x12345678, 0x87654321, 0x23456789, 0x98765432,
|
0x12345678, 0x87654321, 0x23456789, 0x98765432,
|
||||||
0x59385824, 0x30496724, 0x24490795, 0x99938733,
|
0x59385824, 0x30496724, 0x24490795, 0x99938733,
|
||||||
0x40385642, 0x38465245, 0x29432163, 0x05067894,
|
0x40385642, 0x38465245, 0x29432163, 0x05067894,
|
||||||
|
|
Loading…
Reference in New Issue