diff options
author | Michal Suchanek <msuchanek@suse.de> | 2021-01-18 15:58:35 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-21 11:02:01 +0000 |
commit | be5cc7da5f909cc0c8384a77777645caa8478879 (patch) | |
tree | 0d206f1d79ed154fb0ebc99e73026bfce62cc364 | |
parent | e05f81a3e0e51e7e1d8b907399a6ac887cee37fe (diff) |
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>
-rw-r--r-- | util/msrtool/msrtool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/msrtool/msrtool.h b/util/msrtool/msrtool.h index f5e6738c5c..e4a44f45c1 100644 --- a/util/msrtool/msrtool.h +++ b/util/msrtool/msrtool.h @@ -18,14 +18,14 @@ #define HEXCHARS "0123456789abcdefABCDEF" -enum { +typedef enum { MSRTYPE_RDONLY, MSRTYPE_RDWR, MSRTYPE_WRONLY, MSRTYPE_EOT } MsrTypes; -enum { +typedef enum { PRESENT_RSVD, PRESENT_DEC, PRESENT_BIN, |