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 <willmcvicker@google.com>
Bug: 153478475
Test: compile, check crc
Change-Id: I512639a4f719037728ffbfa48e7b766510c7d726
This commit is contained in:
Will McVicker 2020-04-07 14:22:09 -07:00 committed by Will Mcvicker
parent 28551438a1
commit a4923652a4

View file

@ -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