msrtool: fix build with gcc 10.

[   84s] /usr/lib/gcc/i586-suse-linux/10/../../../../i586-suse-linux/bin/ld: msrutils.o:(.bss+0x0): multiple definition of `PresentTypes'; msrtool.o:(.bss+0x14): first defined here
[   84s] /usr/lib/gcc/i586-suse-linux/10/../../../../i586-suse-linux/bin/ld: msrutils.o:(.bss+0x4): multiple definition of `MsrTypes'; msrtool.o:(.bss+0x18): first defined here

There should be typedefs, not variable definitions.

Change-Id: I663a011e9f1fc169126570d5eac7abe82d204a90
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49648
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
Michal Suchanek 2021-01-18 15:58:35 +01:00 committed by Patrick Georgi
parent e05f81a3e0
commit be5cc7da5f
1 changed files with 2 additions and 2 deletions

View File

@ -18,14 +18,14 @@
#define HEXCHARS "0123456789abcdefABCDEF" #define HEXCHARS "0123456789abcdefABCDEF"
enum { typedef enum {
MSRTYPE_RDONLY, MSRTYPE_RDONLY,
MSRTYPE_RDWR, MSRTYPE_RDWR,
MSRTYPE_WRONLY, MSRTYPE_WRONLY,
MSRTYPE_EOT MSRTYPE_EOT
} MsrTypes; } MsrTypes;
enum { typedef enum {
PRESENT_RSVD, PRESENT_RSVD,
PRESENT_DEC, PRESENT_DEC,
PRESENT_BIN, PRESENT_BIN,