Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5342312yba; Wed, 10 Apr 2019 17:34:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyewdQMIuNRgL2JEBy04PgtzepLygIiAx5Ds7LFhgUOHBmAR5WdQE43GiqA2CJDuDkauBuf X-Received: by 2002:a63:c45:: with SMTP id 5mr44436682pgm.385.1554942856692; Wed, 10 Apr 2019 17:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554942856; cv=none; d=google.com; s=arc-20160816; b=qyb5u3B+N53yxRmrG5/SYhA1tGs7iw14KMzG9X+t9T0eik7qtjD6YIi4B34LZ2VD+o 9T7qWTPX7/n7ScTYamp4bRUsKdZgDYd1LXr50V56QQvFRJIQS2SbZrD++HIgChXC5mO/ jcPnTboQq8zCB4VI7dO47KN2RUvLJS/WtzA0zdqBnU/QbPAIBCGK0hTdy7KZsl1R12UA zVV81X+GVqOTiUQ9VEz6t/nDyRbWy93WgZu0/mLfpWr7nwmHVbIPupxrCF/eb01A7JUN KjLE/3XrSxrtX6nNgPAlw5yWQ/XU1ZA3jeStbm8dPaWV3jl2H9j51hZeVr+8BUx4SpIm ujpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=i+LyFugYRsMsRKj5tpFQqnuRxx8s4uixGuB3ZKdR1fg=; b=DSCL9deIAVbvkYE4DDwQ5+z20kL4osQnkoyVA+5cPhh2WmASsSsSzEU4m6YSd+0IZG Cq2+NjiEBxAoml9B4YeLmyPkLhFiXon1XbArJVjKrWq5/LahIbEudClt9AafF6wQZfTm Iv3euVxIQ00DDnFZnQxpCPATRDVYY0L/ljt0JzPDR21r2hDYIr06yQeW9OiX7JT0n/Yf blgZlq1CZcEzbvYEoqd13FMfXO94xddE04Gue1hW2an0fKVupQMKgBjXAZtoEnV3G259 9LzQutcjYbXQLGWWGdotL+G+gzYMQ542rAn4aGrof3uDJPjwzdnK3NO0PwVVKPuPqAEL ZAqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hqiF9XR+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x206si34525535pgx.37.2019.04.10.17.34.00; Wed, 10 Apr 2019 17:34:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hqiF9XR+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726777AbfDKAdG (ORCPT + 99 others); Wed, 10 Apr 2019 20:33:06 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:17163 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfDKAdG (ORCPT ); Wed, 10 Apr 2019 20:33:06 -0400 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x3B0WwlL028763; Thu, 11 Apr 2019 09:32:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x3B0WwlL028763 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554942779; bh=i+LyFugYRsMsRKj5tpFQqnuRxx8s4uixGuB3ZKdR1fg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hqiF9XR+odZ8FifL+v/BrYDdr2aUbZrGT60A0hmMyWnqBPdtOYEa3Yh5ElRvV5f1C O8icpHlR4abzvmAf6KWmTZ8UzmROSU92HdgcsCycYh4tmlUuQYj+oNGiwrghMReMxg Q2rPUmIMNBW8E2d3vXyyBPX5ojKNrgAvWQIQIBkYOmKM707XX7g/h3zu0Xk7qsniKC Wm1vNnG0w3CJeP7fi4Iv/2rijAy1/+YCVMTHuuk+Hjjk3XMLq3sncipr4zY9Dlz14K 4IK3WgPXQ4PmbCWVIve5605zOpN2XJJCKTz+yGoWWAmMa3JsKHrD4YuUi1Pu9IbAxd HG80BvFoGV2VQ== X-Nifty-SrcIP: [209.85.217.53] Received: by mail-vs1-f53.google.com with SMTP id d8so2486055vsp.2; Wed, 10 Apr 2019 17:32:58 -0700 (PDT) X-Gm-Message-State: APjAAAUg0tlYS07RwVim4vBJA/1O4GgVbsfYP9+iMhqtxOor1xLlTJqh Gp0ELKxV8cwuS8VLpUl/fXzUixLE+T1jaMM2Ggk= X-Received: by 2002:a67:fbcc:: with SMTP id o12mr27346942vsr.60.1554942777514; Wed, 10 Apr 2019 17:32:57 -0700 (PDT) MIME-Version: 1.0 References: <20190410155058.9437-1-joe.lawrence@redhat.com> <20190410155058.9437-2-joe.lawrence@redhat.com> In-Reply-To: <20190410155058.9437-2-joe.lawrence@redhat.com> From: Masahiro Yamada Date: Thu, 11 Apr 2019 09:32:21 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers To: Joe Lawrence Cc: Linux Kernel Mailing List , live-patching@vger.kernel.org, Linux Kbuild mailing list , Jessica Yu , Jiri Kosina , Joao Moreira , Josh Poimboeuf , Konstantin Khlebnikov , Masahiro Yamada , Michael Matz , Miroslav Benes , Nicolai Stange , Petr Mladek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 by a newly > introduced klp-convert script. > > Signed-off-by: Josh Poimboeuf > Signed-off-by: Joao Moreira > Signed-off-by: Joe Lawrence > --- > MAINTAINERS | 1 + > include/linux/livepatch.h | 1 + > include/uapi/linux/livepatch.h | 17 +++++++++++++++++ > kernel/livepatch/core.c | 4 ++-- > 4 files changed, 21 insertions(+), 2 deletions(-) > create mode 100644 include/uapi/linux/livepatch.h > 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 */ > + > +/* > + * 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 > + > +#endif /* _UAPI_LIVEPATCH_H */ -- Best Regards Masahiro Yamada