]> git.pld-linux.org Git - packages/xen.git/blame - gcc10.patch
- removed obsolete part of gcc10 patch
[packages/xen.git] / gcc10.patch
CommitLineData
36ddb7bd
JR
1--- xen-4.13.0/tools/xenpmd/Makefile.orig 2019-12-17 14:23:09.000000000 +0000
2+++ xen-4.13.0/tools/xenpmd/Makefile 2020-01-22 22:13:16.564873608 +0000
3@@ -3,6 +3,7 @@
4
5 CFLAGS += -Werror
6 CFLAGS += $(CFLAGS_libxenstore)
7+CFLAGS += -Wno-error=format-truncation
8
9 LDLIBS += $(LDLIBS_libxenstore)
10
11--- xen-4.13.1/tools/firmware/etherboot/Config~ 2020-05-14 14:19:32.000000000 +0200
12+++ xen-4.13.1/tools/firmware/etherboot/Config 2020-06-07 17:14:49.704183136 +0200
13@@ -7,3 +7,5 @@
14
15 CFLAGS += -UCONSOLE_SERIAL
16 CFLAGS += -DCONSOLE_SERIAL=1
17+
18+CFLAGS += -Wno-error=array-bounds -Wno-error=enum-conversion
19--- xen-4.13.1/stubdom/Makefile~ 2020-06-07 17:54:17.000000000 +0200
20+++ xen-4.13.1/stubdom/Makefile 2020-06-07 17:57:37.373200925 +0200
21@@ -232,6 +232,7 @@
22 patch -d $@ -p1 < vtpm-cmake-Wextra.patch
23 patch -d $@ -p1 < vtpm-implicit-fallthrough.patch
24 patch -d $@ -p1 < vtpm_TPM_ChangeAuthAsymFinish.patch
25+ patch -d $@ -p1 < vtpm-gcc10.patch
26 mkdir $@/build
27 cd $@/build; CC=${CC} $(CMAKE) .. -DCMAKE_C_FLAGS:STRING="-std=c99 -DTPM_NO_EXTERN $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -Wno-declaration-after-statement"
28 touch $@
29--- xen-4.13.1/stubdom/vtpm-gcc10.patch~ 2020-06-07 17:54:17.000000000 +0200
30+++ xen-4.13.1/stubdom/vtpm-gcc10.patch 2020-06-07 17:57:37.373200925 +0200
31@@ -0,0 +1,47 @@
32+--- tpm_emulator-x86_64/tpm/tpm_emulator_extern.h~ 2011-12-20 19:30:06.000000000 +0100
33++++ tpm_emulator-x86_64/tpm/tpm_emulator_extern.h 2020-06-07 17:52:04.278217629 +0200
34+@@ -29,7 +29,7 @@
35+ TPM_LOG_ERROR
36+ };
37+
38+-void (*tpm_log)(int priority, const char *fmt, ...);
39++extern void (*tpm_log)(int priority, const char *fmt, ...);
40+
41+ #if defined(_WIN32) || defined(_WIN64)
42+ #define __BFILE__ ((strrchr(__FILE__, '\\') ? : __FILE__ - 1) + 1)
43+@@ -44,27 +44,27 @@
44+ #define error(fmt, ...) tpm_log(TPM_LOG_ERROR, "%s:%d: Error: " fmt "\n", \
45+ __BFILE__, __LINE__, ## __VA_ARGS__)
46+ /* initialization */
47+-int (*tpm_extern_init)(void);
48+-void (*tpm_extern_release)(void);
49++extern int (*tpm_extern_init)(void);
50++extern void (*tpm_extern_release)(void);
51+
52+ /* memory allocation */
53+
54+-void* (*tpm_malloc)(size_t size);
55++extern void* (*tpm_malloc)(size_t size);
56+
57+-void (*tpm_free)(/*const*/ void *ptr);
58++extern void (*tpm_free)(/*const*/ void *ptr);
59+
60+ /* random numbers */
61+
62+-void (*tpm_get_extern_random_bytes)(void *buf, size_t nbytes);
63++extern void (*tpm_get_extern_random_bytes)(void *buf, size_t nbytes);
64+
65+ /* usec since last call */
66+
67+-uint64_t (*tpm_get_ticks)(void);
68++extern uint64_t (*tpm_get_ticks)(void);
69+
70+ /* file handling */
71+
72+-int (*tpm_write_to_storage)(uint8_t *data, size_t data_length);
73+-int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
74++extern int (*tpm_write_to_storage)(uint8_t *data, size_t data_length);
75++extern int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
76+
77+ #endif /* _TPM_EMULATOR_EXTERN_H_ */
78+
79--- xen-4.13.1/stubdom/vtpmmgr/vtpmmgr.h.orig 2020-06-07 18:20:43.261215712 +0200
80+++ xen-4.13.1/stubdom/vtpmmgr/vtpmmgr.h 2020-06-07 18:20:56.731170041 +0200
81@@ -50,11 +50,6 @@
82 #define RSA_KEY_SIZE 0x0800
83 #define RSA_CIPHER_SIZE (RSA_KEY_SIZE / 8)
84
85-enum {
86- TPM1_HARDWARE = 1,
87- TPM2_HARDWARE,
88-} tpm_version;
89-
90 struct tpm_hardware_version {
91 int hw_version;
92 };
93--- xen-4.13.1/stubdom/vtpmmgr/vtpmmgr.c~ 2020-05-14 14:19:32.000000000 +0200
94+++ xen-4.13.1/stubdom/vtpmmgr/vtpmmgr.c 2020-06-07 18:23:14.950766928 +0200
95@@ -45,6 +45,11 @@
96 #include "vtpmmgr.h"
97 #include "tcg.h"
98
99+enum {
100+ TPM1_HARDWARE = 1,
101+ TPM2_HARDWARE,
102+} tpm_version;
103+
104 struct tpm_hardware_version hardware_version = {
105 .hw_version = TPM1_HARDWARE,
106 };
This page took 0.054111 seconds and 4 git commands to generate.