Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb9227c9 authored by Will McVicker's avatar Will McVicker Committed by Alistair Delva
Browse files

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: default avatarWill McVicker <willmcvicker@google.com>
Bug: 153478475
Test: compile, check crc
Change-Id: I512639a4f719037728ffbfa48e7b766510c7d726
(cherry picked from commit a4923652a413e10e66d4802637c9e433e6944fc7)
parent db03b1de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ struct ftrace_likely_data {
	unsigned long			constant;
};

#ifdef CONFIG_ENABLE_MUST_CHECK
#if defined(CONFIG_ENABLE_MUST_CHECK) && !defined(__GENKSYMS__)
#define __must_check		__attribute__((__warn_unused_result__))
#else
#define __must_check