Re: [PATCH V3] arm64/cpufeature: Add get_arm64_ftr_reg_nowarn()

From: Anshuman Khandual
Date: Thu May 28 2020 - 03:47:14 EST




On 05/27/2020 05:55 PM, Will Deacon wrote:
> On Wed, 27 May 2020 15:34:36 +0530, Anshuman Khandual wrote:
>> There is no way to proceed when requested register could not be searched in
>> arm64_ftr_reg[]. Requesting for a non present register would be an error as
>> well. Hence lets just WARN_ON() when search fails in get_arm64_ftr_reg()
>> rather than checking for return value and doing a BUG_ON() instead in some
>> individual callers. But there are also caller instances that dont error out
>> when register search fails. Add a new helper get_arm64_ftr_reg_nowarn() for
>> such cases.
>
> Applied to arm64 (for-next/cpufeature), thanks!
>
> [1/1] arm64/cpufeature: Add get_arm64_ftr_reg_nowarn()
> https://git.kernel.org/arm64/c/3577dd37c703

Thanks Will, for changing the comment per Catalin.