tools/bootconfig: Fix a build error accroding to undefined fallthrough
PATCH 1/1 tools/bootconfig: Fix a build error accroding to undefined fallthrough
Since the "fallthrough" is defined only in the kernel, building lib/bootconfig.c as a part of user-space tools causes a build error.
Add a dummy fallthrough to avoid the build error.
--- tools/bootconfig/include/linux/bootconfig.h | 4 ++++ 1 file changed, 4 insertions(+)
tools/bootconfig/include/linux/bootconfig.h +4 -0
@@ -4,4 +4,8 @@#include "../../../../include/linux/bootconfig.h" +#ifndef fallthrough +# define fallthrough +#endif +#endif
Hi Steve,
Can you pick at least this fix since it is a critical bug?
Thank you,
Quoted 27 lines · On Thu, 13 May 2021 12:06:33 +0900 Masami Hiramatsu <[email protected]> wrote:
Since the "fallthrough" is defined only in the kernel, building
lib/bootconfig.cas a part of user-space tools causes a build error.Add a dummy fallthrough to avoid the build error.
Fixes 4c1ca831adb1 ("Revert "lib: Revert use of fallthrough pseudo-keyword in lib/"")Signed-off-by Masami Hiramatsu <[email protected]>--- tools/bootconfig/include/linux/bootconfig.h | 4 ++++ 1 file changed, 4 insertions(+)tools/bootconfig/include/linux/bootconfig.h +4
-0@@ -4,4 +4,8 @@#include "../../../../include/linux/bootconfig.h" +#ifndef fallthrough +# define fallthrough +#endif +#endif
Signature · 1 line
Masami Hiramatsu <[email protected]>
Yeah, I have it cued up too. Can it wait till next week?
--Steve
Quoted 38 lines · Masami Hiramatsu
Hi Steve,
Can you pick at least this fix since it is a critical bug?
Thank you,
Quoted 8 lines · On Thu, 13 May 2021 12:06:33 +0900 Masami Hiramatsu <[email protected]> wrote:
Since the "fallthrough" is defined only in the kernel, building
lib/bootconfig.cas a part of user-space tools causes a build error.Add a dummy fallthrough to avoid the build error.
Fixes 4c1ca831adb1 ("Revert "lib: Revert use of fallthroughpseudo-keyword in
lib/"")Review
Quoted 6 lines
Signed-off-by Masami Hiramatsu <[email protected]>--- tools/bootconfig/include/linux/bootconfig.h | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/tools/bootconfig/include/linux/bootconfig.hQuoted 13 lines
index
078cbd2ba651..de7f30f99af3100644tools/bootconfig/include/linux/bootconfig.h +4
-0@@ -4,4 +4,8 @@#include "../../../../include/linux/bootconfig.h" +#ifndef fallthrough +# define fallthrough +#endif +#endif
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity and top posting.
Quoted 1 line · On Thu, 20 May 2021 11:47:13 -0400 Steven Rostedt <[email protected]> wrote:
Yeah, I have it cued up too. Can it wait till next week?
Yes, of course. Sorry for interruption.
Thank you!
Quoted 46 lines
--Steve
Quoted 38 lines · Masami Hiramatsu
Hi Steve,
Can you pick at least this fix since it is a critical bug?
Thank you,
Quoted 8 lines · On Thu, 13 May 2021 12:06:33 +0900 Masami Hiramatsu <[email protected]> wrote:
Since the "fallthrough" is defined only in the kernel, building
lib/bootconfig.cas a part of user-space tools causes a build error.Add a dummy fallthrough to avoid the build error.
Fixes 4c1ca831adb1 ("Revert "lib: Revert use of fallthroughpseudo-keyword in
lib/"")Review
Quoted 6 lines
Signed-off-by Masami Hiramatsu <[email protected]>--- tools/bootconfig/include/linux/bootconfig.h | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/tools/bootconfig/include/linux/bootconfig.hQuoted 13 lines
index
078cbd2ba651..de7f30f99af3100644tools/bootconfig/include/linux/bootconfig.h +4
-0@@ -4,4 +4,8 @@#include "../../../../include/linux/bootconfig.h" +#ifndef fallthrough +# define fallthrough +#endif +#endif Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity and top posting.
Signature · 1 line
Masami Hiramatsu <[email protected]>