Re: [PATCH v4] docs: Explain the desired position of function attributes

From: Kees Cook
Date: Tue Oct 05 2021 - 10:58:37 EST


On Tue, Oct 05, 2021 at 10:28:40AM +0200, Miguel Ojeda wrote:
> On Tue, Oct 5, 2021 at 1:57 AM Jonathan Corbet <corbet@xxxxxxx> wrote:
> >
> > In this case I think we're as close as to consensus as things get. In
> > the absence of a strong reason to the contrary, I'll apply this before
> > too long.
>
> No strong reason, but there was the question about the `__malloc` in a
> separate line in the second example which seems to contradict the
> declaration and it is not explained otherwise (+ clang-format does it
> differently).

I'll send a v5 -- the "extern" also needs to be dropped.

--
Kees Cook