Re: [PATCH] xen/arm: ffa: fix build with clang

2025-01-08 Thread Andrew Cooper
On 08/01/2025 3:45 pm, Alejandro Vallejo wrote: > Hi, > > On Wed Jan 8, 2025 at 3:23 PM GMT, Stewart Hildebrand wrote: >> It appears the variable ffa_fw_version is only used in ffa.c. Was there >> any rationale for exporting the symbol in 2f9f240a5e87 ("xen/arm: ffa: >> Fine granular call support")

Re: [PATCH] xen/arm: ffa: fix build with clang

2025-01-08 Thread Stewart Hildebrand
On 1/8/25 11:34, Bertrand Marquis wrote: > Hi, > >> On 8 Jan 2025, at 16:45, Alejandro Vallejo >> wrote: >> >> Hi, >> >> On Wed Jan 8, 2025 at 3:23 PM GMT, Stewart Hildebrand wrote: >>> Clang 16 reports: >>> >>> In file included from arch/arm/tee/ffa.c:72: >>> arch/arm/tee/ffa_private.h:329:17:

Re: [PATCH] xen/arm: ffa: fix build with clang

2025-01-08 Thread Bertrand Marquis
Hi, > On 8 Jan 2025, at 16:45, Alejandro Vallejo > wrote: > > Hi, > > On Wed Jan 8, 2025 at 3:23 PM GMT, Stewart Hildebrand wrote: >> Clang 16 reports: >> >> In file included from arch/arm/tee/ffa.c:72: >> arch/arm/tee/ffa_private.h:329:17: error: 'used' attribute ignored on a >> non-definit

Re: [PATCH] xen/arm: ffa: fix build with clang

2025-01-08 Thread Alejandro Vallejo
Hi, On Wed Jan 8, 2025 at 3:23 PM GMT, Stewart Hildebrand wrote: > Clang 16 reports: > > In file included from arch/arm/tee/ffa.c:72: > arch/arm/tee/ffa_private.h:329:17: error: 'used' attribute ignored on a > non-definition declaration [-Werror,-Wignored-attributes] > extern uint32_t __ro_after_

Re: [PATCH] xen/arm: ffa: fix build with clang

2025-01-08 Thread Bertrand Marquis
Hi Stewart, Thanks a lot for the finding and the fix :-) > On 8 Jan 2025, at 16:23, Stewart Hildebrand > wrote: > > Clang 16 reports: > > In file included from arch/arm/tee/ffa.c:72: > arch/arm/tee/ffa_private.h:329:17: error: 'used' attribute ignored on a > non-definition declaration [-Werr

[PATCH] xen/arm: ffa: fix build with clang

2025-01-08 Thread Stewart Hildebrand
Clang 16 reports: In file included from arch/arm/tee/ffa.c:72: arch/arm/tee/ffa_private.h:329:17: error: 'used' attribute ignored on a non-definition declaration [-Werror,-Wignored-attributes] extern uint32_t __ro_after_init ffa_fw_version; ^ Remove the attribute from the header