Re: [PATCH] Revert "time: add weak annotation to timer_read_counter declaration"

2023-01-12 Thread Tom Rini
On Thu, Jan 05, 2023 at 01:08:47AM +0100, Harald Seiler wrote: > This reverts commit 65ba7add0d609bbd035b8d42fafdaf428ac24751. > > A weak extern is a nasty sight to behold: If the symbol is never > defined, on ARM, the linker will replace the function call with a NOP. > This behavior isn't well d

Re: [PATCH] Revert "time: add weak annotation to timer_read_counter declaration"

2023-01-11 Thread Rob Herring
On Wed, Jan 4, 2023 at 6:09 PM Harald Seiler wrote: > > This reverts commit 65ba7add0d609bbd035b8d42fafdaf428ac24751. > > A weak extern is a nasty sight to behold: If the symbol is never > defined, on ARM, the linker will replace the function call with a NOP. > This behavior isn't well documented

[PATCH] Revert "time: add weak annotation to timer_read_counter declaration"

2023-01-04 Thread Harald Seiler
This reverts commit 65ba7add0d609bbd035b8d42fafdaf428ac24751. A weak extern is a nasty sight to behold: If the symbol is never defined, on ARM, the linker will replace the function call with a NOP. This behavior isn't well documented but there are at least some hints to it [1]. When timer_read_co