Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:30309 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfDKOaz (ORCPT ); Thu, 11 Apr 2019 10:30:55 -0400 Subject: Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers References: <20190410155058.9437-1-joe.lawrence@redhat.com> <20190410155058.9437-2-joe.lawrence@redhat.com> From: Joe Lawrence Message-ID: <141bbc68-95a7-3444-08a5-3794b6dc84ce@redhat.com> Date: Thu, 11 Apr 2019 10:30:45 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada Cc: Linux Kernel Mailing List , live-patching@vger.kernel.org, Linux Kbuild mailing list , Jessica Yu , Jiri Kosina , Joao Moreira , Josh Poimboeuf , Konstantin Khlebnikov , Michael Matz , Miroslav Benes , Nicolai Stange , Petr Mladek 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 a/include/uapi/linux/livepatch.h b/include/uapi/linux/livepatch.h >> new file mode 100644 >> index 000000000000..bb86243de805 >> --- /dev/null >> +++ b/include/uapi/linux/livepatch.h >> @@ -0,0 +1,17 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ > > > In my understanding, UAPI headers should be licensed under: > > /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > > Good eye, that is an interesting licensing detail. Easy enough to update assuming Josh (original author) is fine with adding the modifier. >> + >> +/* >> + * 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 ".klp.rela." >> +#define KLP_SYM_PREFIX ".klp.sym." > > These do not depend on > Hmmm, types.h has been included since v1, but I just verified that removing it results in a clean build, so you are correct that it is (now) unnecessary. Thanks, -- Joe