Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-11 Thread Miroslav Benes
> >> + > >> +/* > >> + * livepatch.h - Kernel Live Patching Core > >> + * > >> + * Copyright (C) 2016 Josh Poimboeuf > >> + */ > >> + > >> +#ifndef _UAPI_LIVEPATCH_H > >> +#define _UAPI_LIVEPATCH_H > >> + > >> +#include > > > > > > Why is this include needed? > > > >> +#define KLP_RELA_PREFIX

Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-11 Thread Josh Poimboeuf
On Thu, Apr 11, 2019 at 10:30:45AM -0400, Joe Lawrence wrote: > On 4/10/19 8:32 PM, Masahiro Yamada wrote: > > On Thu, Apr 11, 2019 at 12:52 AM Joe Lawrence > > wrote: > > > > > > From: Josh Poimboeuf > > > > > > Define klp prefixes in include/uapi/linux/livepatch.h, and use them for > > >

Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-11 Thread Joe Lawrence
On 4/10/19 8:32 PM, Masahiro Yamada wrote: On Thu, Apr 11, 2019 at 12:52 AM Joe Lawrence wrote: From: Josh Poimboeuf Define klp prefixes in include/uapi/linux/livepatch.h, and use them for replacing hard-coded values in kernel/livepatch/core.c. [ ... snip ... ] >> diff --git

Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-10 Thread Masahiro Yamada
On Thu, Apr 11, 2019 at 12:52 AM Joe Lawrence wrote: > > From: Josh Poimboeuf > > Define klp prefixes in include/uapi/linux/livepatch.h, and use them for > replacing hard-coded values in kernel/livepatch/core.c. > > Update MAINTAINERS. > > Note: Add defines to uapi as these are also to be used

[PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Define klp prefixes in include/uapi/linux/livepatch.h, and use them for replacing hard-coded values in kernel/livepatch/core.c. Update MAINTAINERS. Note: Add defines to uapi as these are also to be used by a newly introduced klp-convert script. Signed-off-by: Josh