Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

From: Josh Poimboeuf
Date: Fri Sep 06 2024 - 13:00:20 EST


On Fri, Sep 06, 2024 at 09:56:06AM -0400, Joe Lawrence wrote:
> In the case of klp-diff.c, adding #include <string.h> will provide the
> memmem prototype. For both files, I needed to #define _GNU_SOURCE for
> that prototype though.
>
> For the other complaint, I just set struct instruction *dest_insn = NULL
> at the top of the for loop, but perhaps the code could be refactored to
> clarify the situation to the compiler if you prefer not to do that.

Thanks! I'll get these fixed up.

--
Josh