[PATCH 1/2] kernel: cobalt: Fix up elf_hwcap

Jan Kiszka jan.kiszka at siemens.com
Wed Jan 27 07:15:10 CET 2021


On 27.01.21 07:13, Jan Kiszka via Xenomai wrote:
> On 27.01.21 06:43, Greg Gallagher via Xenomai wrote:
>> Update elf_hwcap to ELF_HWCAP, this will work for newer 5.4 kernels
>>
> 
> I assume you mean "also work" - or does it break on certain older
> kernels? Just asking before consulting our CI. ;)
> 

...and the same pattern exists on ARM.

Jan

>> Signen-off-by: Greg Gallagher <greg at embeddedgreg.com>
>> ---
>>  kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h b/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
>> index b7e3f52f2..291c9e5f0 100644
>> --- a/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
>> +++ b/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
>> @@ -23,7 +23,7 @@
>>  #include <asm/xenomai/uapi/fptest.h>
>>  #include <asm/hwcap.h>
>>  
>> -#define have_fp (elf_hwcap & HWCAP_FP)
>> +#define have_fp (ELF_HWCAP & HWCAP_FP)
>>  
>>  static inline int fp_kernel_supported(void)
>>  {
>>
> 
> Jan
> 

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list