On 24.11.2023 10:40, Nicola Vetrini wrote: > in xen/lib.h and xen/sort.h there are definitions of the functions > bsearch and sort that have no prior declarations, and therefore are > subject to a violation of MISRA C Rule 8.4. > > I'm wondering whether it would be preferred > > 1. to put a declaration just before the definition, in lib.h and sort.h > 2. deviate these functions, as their signatures are well-known and > somewhat standardized
Seeing that so far no-one else has replied to this: My take is "neither". It is the very nature of extern gnu_inline functions to work like this. Jan