Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp158175yba; Fri, 12 Apr 2019 20:21:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkPaTn/sSPAyzSH2bM2kfGdkk5zTMRbbsOKIk4Jl4vE8H0TBaWacs2ZY+c8Wy/120cpsg2 X-Received: by 2002:a63:1c6:: with SMTP id 189mr58127804pgb.22.1555125681010; Fri, 12 Apr 2019 20:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555125681; cv=none; d=google.com; s=arc-20160816; b=Z7B0iyw0JROtrvJx18uXgQRgJd6mqhHxNqfbDndUMSbFvRwd9srE3GtVd/cGjeFlYP 6TgvkynnpvJVWHsj+Jf8vsNYXC4i/Epai75Zbsq7BS8Al5HNJfh1DeXZtCPgbBGm1fwM Nh2FbFa/nPcJ5H7xF1Ybr+HfEfSWs9gCI/GOkZgAE80QIPydcb1vGqUf0dsVku7u+8dn UpZ3sblSbev+xSh0SfS/2hPAEZbnkDu5tAhK9JPJA9Ipgr4qDvyn2MrNdEqiLLUv63VY JC6Ji1SRx64hkNGEejs+O8rpvzVLdPn6uybErGl11SYxfZNA23p/f02UZiFTKSA8nrzO 9q4w== 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; bh=qAmpE3G0oOsflpcYUOecHLM2RaT+tXXFiDXT/2FM05k=; b=GVTFfl/G/FDwT73MKqLJk8FdrAgKK8AECx04rVaODKF3dwn5yuOcIExzyTSFtVPQnE k1zhlI8u01CHIe2PCvhwd0Lumv8lCbh3Szl/hinvEQsV9uNJX3HoIp0BXs7BMeokVrWs 2iALTmDrfBq4cS9doSZRB5I0oCOnAS0X4ndbUNIahSBdjrlEKV3+DQJot005o4fHNp2p dPbUB254nSNaMTOgFiXmRMyhjIPNgU5nsdGLW0iZtxJ3HvUKVHBhQTqnROtI2mnmdYJj Wb0FQ8HmeA14DaHWRogqRfJFpL+dPQD/4R504H9Mlei5a3S7o40VijMfie/KxiEACwmA paDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aSBOYv2S; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si37128927pgj.47.2019.04.12.20.21.00; Fri, 12 Apr 2019 20:21:20 -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=@google.com header.s=20161025 header.b=aSBOYv2S; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfDMDTC (ORCPT + 99 others); Fri, 12 Apr 2019 23:19:02 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:33584 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbfDMDTB (ORCPT ); Fri, 12 Apr 2019 23:19:01 -0400 Received: by mail-vs1-f68.google.com with SMTP id a190so6684436vsd.0 for ; Fri, 12 Apr 2019 20:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qAmpE3G0oOsflpcYUOecHLM2RaT+tXXFiDXT/2FM05k=; b=aSBOYv2SXshliFLxSy4uYTsfmpZPFXrOFc84rPFriHb3qm3rzjl1mGUwpHCSxqcpxR g7jt3WCjgzBJ0+BqzTOcD3JPCxC2bB7Vk7UHUwtlBMsRdNPK4Okp5IGmSG5OrBFjy8eJ N/HDnZiJP2nyUmMBtxy5DSbTT7IPjR+YH+SYQeo8MnKl6DH/4yVWJnWSG0WT/X6rrMKp 33an5f/Pu5geWlAzxi0fCXCgcZzftxzxNEbtgoH0S2exKJT+vKWD+/56L7pZ0HNggAZD kvFy94aRQtKN0sgRclWG9E+ub3DntOG94yjGRovBiWAejeltQ9aZqa2tEXAnjOfdOAhA bW1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qAmpE3G0oOsflpcYUOecHLM2RaT+tXXFiDXT/2FM05k=; b=b3it2ILiPOTB0E2EhQEf73EBriVqR8kSpfuE48eZa0gP1KS6MAJSObmHwAtNwspBGE EblYzTjS/16ZZ8wPpoZt/KOyjnwwvH5pzSpWuwpR/uYLfh9uMY4W1Sg34pnZKxyAnh11 BTp4FtLFuHUlBzrxdBiQihghNwUTinGtS3Fml1tD3QR3/6xFaLaiSm2BioM/JLO2J4U+ mdKbgbi9fuFaEl7VbV4chvZoDBDyl/qcQbYpg24e8BS+s6fpxK6xtOdlYkGq2vc/oOyT sgt+hxPrRkKWQDTD8E5jrAJrDSlbJEtW8kTdiSgZ4sYIcm8M9hzUc9VHZKF9kp3uXKQm xGdg== X-Gm-Message-State: APjAAAX7ZXarRGiXxC6OXR1i4O02jlT9eabO5UNWWE+OLxoRX7ZTS98o ZDuNi6thkhI4qd4kmGRqfxjky00ZbQvfJ+MDiVOWnw== X-Received: by 2002:a67:e9c8:: with SMTP id q8mr31353496vso.120.1555125540368; Fri, 12 Apr 2019 20:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20190408212855.233198-1-joel@joelfernandes.org> <20190412180014.GA175945@google.com> In-Reply-To: From: Daniel Colascione Date: Fri, 12 Apr 2019 20:18:49 -0700 Message-ID: Subject: Re: [PATCH v6 1/2] Provide in-kernel headers to make extending kernel easier To: Masahiro Yamada Cc: Joel Fernandes , Linux Kernel Mailing List , Andrew Morton , Alexei Starovoitov , atish patra , Dan Williams , Dietmar Eggemann , Greg Kroah-Hartman , Guenter Roeck , Jonathan Corbet , Karim Yaghmour , Kees Cook , "Cc: Android Kernel" , "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Manoj Rao , Masami Hiramatsu , Qais Yousef , Randy Dunlap , Steven Rostedt , Shuah Khan , Yonghong Song 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 Fri, Apr 12, 2019 at 8:10 PM Masahiro Yamada wrote: > > On Sat, Apr 13, 2019 at 11:58 AM Masahiro Yamada > wrote: > > > > On Sat, Apr 13, 2019 at 10:53 AM Daniel Colascione wrote: > > > > > > On Fri, Apr 12, 2019 at 6:49 PM Masahiro Yamada > > > wrote: > > > > > > > > On Sat, Apr 13, 2019 at 3:02 AM Joel Fernandes wrote: > > > > > > > > > > > > > > > > +extern char kernel_headers_data; > > > > > > > +extern char kernel_headers_data_end; > > > > > > > + > > > > > > > +static ssize_t > > > > > > > +ikheaders_read_current(struct file *file, char __user *buf, > > > > > > > > > > > > Could you stretch this line ? > > > > > > It will still fit in 80-cols. > > > > > > > > > > > > (This is a coding style error in kernel/configs.c) > > > > > > > > > > It takes 87 cols if I expand, so I'll leave it as is. > > > > > > > > > > > > > > > > > Sorry if what I said was unclear. > > > > > > > > Since I just did not a good reason to put > > > > "static ssize_t" in the previous line, > > > > I meant like follows: > > > > > > > > > > > > [Before] > > > > static ssize_t > > > > ikheaders_read_current(struct file *file, char __user *buf, > > > > size_t len, loff_t *offset) > > > > > > > > > > > > > > > > [After] > > > > static ssize_t ikheaders_read_current(struct file *file, char __user *buf, > > > > size_t len, loff_t *offset) > > > > > > > > > > > > (takes 74-cols.) > > > > > > > > > > > > (I am sending this from Gmail, so I am not sure > > > > how it will look like from you...) > > > > > > > > > > > > Anyway, it is super-bikeshedding stuff. > > > > It is OK as-is. > > > > > > > > > > What about sorting the files for determinism? > > > > > > Do you mean the order of files in the tar archive? Yes. > > I think it is a good idea for reproducible build. > > > > > > > > It looks like the tar command supports --sort=name option, > > but I did not test it at all. > > > > > > > > Perhaps, the sorting policy could be affected by locale. > > We saw it for the 'find' command. > > > 'sort' command is affected by locale. It should be independent of locale if you set LC_ALL=C in the environment while running it.