diff options
Diffstat (limited to '0011-rombios-Avoid-using-K-R-function-syntax.patch')
-rw-r--r-- | 0011-rombios-Avoid-using-K-R-function-syntax.patch | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/0011-rombios-Avoid-using-K-R-function-syntax.patch b/0011-rombios-Avoid-using-K-R-function-syntax.patch deleted file mode 100644 index 0bd761f..0000000 --- a/0011-rombios-Avoid-using-K-R-function-syntax.patch +++ /dev/null @@ -1,74 +0,0 @@ -From 24487fec3bbebbc1fd3f00d16bca7fb0f56a5f30 Mon Sep 17 00:00:00 2001 -From: Andrew Cooper <andrew.cooper3@citrix.com> -Date: Fri, 18 Aug 2023 10:47:46 +0100 -Subject: [PATCH 11/55] rombios: Avoid using K&R function syntax - -Clang-15 complains: - - tcgbios.c:598:25: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] - void tcpa_calling_int19h() - ^ - void - -C2x formally removes K&R syntax. The declarations for these functions in -32bitprotos.h are already ANSI compatible. Update the definitions to match. - -Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> -Acked-by: Jan Beulich <jbeulich@suse.com> -(cherry picked from commit a562afa5679d4a7ceb9cb9222fec1fea9a61f738) ---- - tools/firmware/rombios/32bit/tcgbios/tcgbios.c | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c -index fa22c4460a..ad0eac0d20 100644 ---- a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c -+++ b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c -@@ -595,7 +595,7 @@ static void tcpa_add_measurement(uint32_t pcrIndex, - /* - * Add measurement to log about call of int 19h - */ --void tcpa_calling_int19h() -+void tcpa_calling_int19h(void) - { - tcpa_add_measurement(4, EV_ACTION, 0); - } -@@ -603,7 +603,7 @@ void tcpa_calling_int19h() - /* - * Add measurement to log about retuning from int 19h - */ --void tcpa_returned_int19h() -+void tcpa_returned_int19h(void) - { - tcpa_add_measurement(4, EV_ACTION, 1); - } -@@ -611,7 +611,7 @@ void tcpa_returned_int19h() - /* - * Add event separators for PCRs 0 to 7; specs 8.2.3 - */ --void tcpa_add_event_separators() -+void tcpa_add_event_separators(void) - { - uint32_t pcrIndex = 0; - while (pcrIndex <= 7) { -@@ -624,7 +624,7 @@ void tcpa_add_event_separators() - /* - * Add a wake event to the log - */ --void tcpa_wake_event() -+void tcpa_wake_event(void) - { - tcpa_add_measurement_to_log(6, - EV_ACTION, -@@ -659,7 +659,7 @@ void tcpa_add_bootdevice(uint32_t bootcd, uint32_t bootdrv) - * Add measurement to the log about option rom scan - * 10.4.3 : action 14 - */ --void tcpa_start_option_rom_scan() -+void tcpa_start_option_rom_scan(void) - { - tcpa_add_measurement(2, EV_ACTION, 14); - } --- -2.42.0 - |