ANDROID: kasan: fix has_attribute check on older GCC versions
A previously backported commit 8712cc72 ("BACKPORT: kasan: add CONFIG_KASAN_GENERIC and CONFIG_KASAN_SW_TAGS") introduced a __has_attribute(__no_sanitize_address__) check into include/linux/compiler-gcc.h. Unfortunately older GCCs (before version 5) don't support support this macro, which results in a compilation error. Fix by checking GCC version instead. The same fix was applied to the 4.14 common kernel during the backport, but was forgotten here. Signed-off-by:Andrey Konovalov <andreyknvl@google.com> Bug: 128674696 Bug: 142406440 Change-Id: I79cbc3fdc568c0d4905d296b8e5f979da5b41bbb
Loading
Please register or sign in to comment