Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

From: Christophe Leroy
Date: Mon Jul 04 2022 - 08:34:16 EST




Le 04/07/2022 à 13:45, Peter Zijlstra a écrit :
> On Wed, Jun 29, 2022 at 06:30:23PM +0000, Christophe Leroy wrote:
>
>
>> The problem is that that function has size 0:
>>
>> 00000000000003d0 l F .text 0000000000000000
>> qdisc_root_sleeping_lock.part.0
>
> I'm somewhat confused; how is an empty STT_FUNC a valid construct on
> Power?

So am I. It is likely not a valid construct, but that's what GCC seems
to generate when you call annotate_unreachable().