[PATCH v2 07/19] powerpc/rtas: improve function information lookups
Nathan Lynch
nathanl at linux.ibm.com
Thu Feb 9 00:16:17 AEDT 2023
Michael Ellerman <mpe at ellerman.id.au> writes:
> Nathan Lynch via B4 Submission Endpoint
> <devnull+nathanl.linux.ibm.com at kernel.org> writes:
>> From: Nathan Lynch <nathanl at linux.ibm.com>
>>
>> The core RTAS support code and its clients perform two types of lookup
>> for RTAS firmware function information.
>>
> ...
>> diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
>> index 479a95cb2770..14fe79217c26 100644
>> --- a/arch/powerpc/include/asm/rtas.h
>> +++ b/arch/powerpc/include/asm/rtas.h
>> @@ -16,6 +16,93 @@
>> * Copyright (C) 2001 PPC 64 Team, IBM Corp
>> */
>>
>> +#define rtas_fnidx(x_) RTAS_FNIDX__ ## x_
>
> I'd prefer we just spelt it out in full, to aid grepability and
> cscope/tags etc.
OK.
More information about the Linuxppc-dev
mailing list