Re: [PATCHv4 3/3] samples: add sample live patching module

Petr Mladek
2014-11-27T17:05:18Z

On Tue 2014-11-25 11:15:09, Seth Jennings wrote:
> Add a sample live patching module.
>
> Signed-off-by: Seth Jennings <sjenning@redhat.com>
> ---
> MAINTAINERS | 1 +
> samples/Kconfig | 7 +++
> samples/livepatch/Makefile | 1 +
> samples/livepatch/livepatch-sample.c | 87 ++++++++++++++++++++++++++++++++++++
> 4 files changed, 96 insertions(+)
> create mode 100644 samples/livepatch/Makefile
> create mode 100644 samples/livepatch/livepatch-sample.c

[...]

> diff --git a/samples/livepatch/Makefile b/samples/livepatch/Makefile
> new file mode 100644
> index 0000000..7f1cdc1
> --- /dev/null
> +++ b/samples/livepatch/Makefile
> @@ -0,0 +1 @@
> +obj-$(CONFIG_SAMPLE_LIVE_PATCHING) += livepatch-sample.o
> diff --git a/samples/livepatch/livepatch-sample.c b/samples/livepatch/livepatch-sample.c
> new file mode 100644
> index 0000000..21f159d

The Makefile is ignored because there is missing:

diff --git a/samples/Makefile b/samples/Makefile
index 1a60c62e2045..f00257bcc5a7 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -1,4 +1,4 @@
# Makefile for Linux samples code

-obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ \
+obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/

Best Regards,
Petr