Re: [PATCH v2] kasan: fix clang compilation warning due to stack protector

2020-05-29 Thread Marco Elver
On Fri, 29 May 2020 at 21:12, Andrey Konovalov wrote: > > KASAN uses a single cc-option invocation to disable both conserve-stack > and stack-protector flags. The former flag is not present in Clang, which > causes cc-option to fail, and results in stack-protector being enabled. > > Fix by using s

[PATCH v2] kasan: fix clang compilation warning due to stack protector

2020-05-29 Thread Andrey Konovalov
KASAN uses a single cc-option invocation to disable both conserve-stack and stack-protector flags. The former flag is not present in Clang, which causes cc-option to fail, and results in stack-protector being enabled. Fix by using separate cc-option calls for each flag. Also collect all flags in a