Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5872921yba; Thu, 11 Apr 2019 07:31:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxklPIvkxcKrdGHcBffQLAUiiWvFUTGVKDg9cbgj/f9JPGk39eP+Ho35snLYE6lmPRv2uDy X-Received: by 2002:a17:902:407:: with SMTP id 7mr51429709ple.62.1554993107860; Thu, 11 Apr 2019 07:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554993107; cv=none; d=google.com; s=arc-20160816; b=wIqidzb+zbg7AVMtuZ7d9fB7AHKGj9iU629iM3AbnME8MmG699iH0CxgO5JhZRYB30 YLJ8jB+Don2326T7+cxT1s7HcyKC6ncjU+DH8/I+vo47dGeldcWbtoxjgVCDDAlryp5M RbY2X4kyxtnK/uX7PGFH7Y2M/nEH2mR8Sr827KsM33kufPA5SePsEJGagFvK9Was+U0E oFM/DncoTEeaTsAAzV9kvc/oCpluvsKgD88XY6t9SCaKyKbbtUJ0il9g2Ib/tjGU8U9n YrltJjNogy3fxWG0ODqywcX5O/HOBcyw8VgOJDRa4bwUpx/G3fxrHSr9UlxdGVbMOuMN lM5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0z/oNkULS8I+TH9vVClcM8EzehRLfuqkTR1Y6MlKcXo=; b=nxB4en6Zct8CJJmuLBhuej0rcrjwS70bSAbtlkEHtKpnw/E2oPpByb0JewqXWSocVu 1qOx7lSkLQUUWsuZ8q3390wCPdbdEouRp1DbIg/CwJJsDysoMm7Nyhts/tfD24jaQ7n+ 2/Gi4bC8WiyjpTi9y/vphCftYujlK4Q1hWmSFI0SwM5pFgipneR5eIqYh4QveC1ceuRp 5ay3HRMZ40V8oD3if4rd5ZDtBMv5IWxRG7ur3RzNltfqWxdbkdVISX/qW3FV+rFBB+Wr ucN9myb+wXNJHSn9XXD27p7K3pdoY+tFpzFgK3Jz97dVof0vnptZgBbvGwx5dvViFmA1 JCRA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si35071565pgb.274.2019.04.11.07.31.30; Thu, 11 Apr 2019 07:31:47 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726646AbfDKOaz (ORCPT + 99 others); Thu, 11 Apr 2019 10:30:55 -0400 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 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5DE7E3065416; Thu, 11 Apr 2019 14:30:49 +0000 (UTC) Received: from [10.18.17.208] (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C50095D9CD; Thu, 11 Apr 2019 14:30:45 +0000 (UTC) Subject: Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers 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 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 11 Apr 2019 14:30:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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