Re: [PATCH v5 09/15] x86: Use an opaque type for functions not callable from C

From: Nick Desaulniers
Date: Thu Oct 14 2021 - 15:01:04 EST


On Thu, Oct 14, 2021 at 11:24 AM Sami Tolvanen <samitolvanen@xxxxxxxxxx> wrote:
>
> Anyway, I thought using a macro would make the code easier to
> understand. I'm happy to rename it to something that makes more sense,
> but also fine with switching to a simple extern u8[] if that's
> preferable.

Perhaps `extern u8 []`s with a comment that these symbols are
functions that aren't meant to be called from C, only asm (or compiler
generated code) would suffice?
--
Thanks,
~Nick Desaulniers