From a4923652a413e10e66d4802637c9e433e6944fc7 Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Tue, 7 Apr 2020 14:22:09 -0700 Subject: [PATCH] ANDROID: ignore compiler tag __must_check for GENKSYMS GENKSYMS shouldn't care about the __must_check compiler flag. So strip it out for GENKSYMS. Signed-off-by: Will McVicker Bug: 153478475 Test: compile, check crc Change-Id: I512639a4f719037728ffbfa48e7b766510c7d726 --- include/linux/compiler_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 3e44377b412c..65d69f67f41e 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -226,7 +226,7 @@ struct ftrace_likely_data { #define __section(S) __attribute__((__section__(#S))) -#ifdef CONFIG_ENABLE_MUST_CHECK +#if defined(CONFIG_ENABLE_MUST_CHECK) && !defined(__GENKSYMS__) #define __must_check __attribute__((warn_unused_result)) #else #define __must_check