Re: [PATCH net-next v4] net: skb: prevent the split of kfree_skb_reason() by gcc

From: Florian Weimer
Date: Mon Aug 22 2022 - 04:02:25 EST


* Menglong Dong:

> /*
> * Used by functions that use '__builtin_return_address'. These function
> * don't want to be splited or made inline, which can make
> * the '__builtin_return_address' got unexpected address.
> */
> #define __fix_address noinline __noclone

You need something on the function *declaration* as well, to inhibit
sibcalls.

Thanks,
Florian