diff --git a/fixes_for_5.4.patch b/fixes_for_5.4.patch index 812a7b0..aabb254 100644 --- a/fixes_for_5.4.patch +++ b/fixes_for_5.4.patch @@ -105,3 +105,26 @@ Index: VirtualBox-6.0.12/src/VBox/Additions/linux/drm/vbox_main.c } int +Index: VirtualBox-6.0.12/include/iprt/cdefs.h +=================================================================== +--- VirtualBox-6.0.12.orig/include/iprt/cdefs.h ++++ VirtualBox-6.0.12/include/iprt/cdefs.h +@@ -1166,14 +1166,15 @@ + * Tell the compiler that we're falling through to the next case in a switch. + * @sa RT_FALL_THRU */ + #if RT_GNUC_PREREQ(7, 0) +-# define RT_FALL_THROUGH() __attribute__((fallthrough)) ++# define FALL_THROUGH __attribute__((__fallthrough__)) + #else +-# define RT_FALL_THROUGH() (void)0 ++# define FALL_THROUGH (void)0 + #endif + /** @def RT_FALL_THRU + * Tell the compiler that we're falling thru to the next case in a switch. + * @sa RT_FALL_THROUGH */ +-#define RT_FALL_THRU() RT_FALL_THROUGH() ++#define RT_FALL_THRU() FALL_THROUGH ++#define RT_FALL_THROUGH() FALL_THROUGH + + + /** @def RT_IPRT_FORMAT_ATTR diff --git a/virtualbox.changes b/virtualbox.changes index 204b2b6..82734e8 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 15 20:27:49 UTC 2019 - Larry Finger + +- Kernel 5.4.0-rc3 introduces a change in the way the compiler handles the fallthrough + attribute leading to build errors. File "fixes_for_5.4.patch" is modified to build correctly. + ------------------------------------------------------------------- Tue Oct 8 16:28:12 UTC 2019 - Stefan Dirsch