Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp153015yba; Fri, 12 Apr 2019 20:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8UCWXGj+fh2tdD2dlQeI2UnW6AC9MIJw/lrAfyi0li7WHSWh8ABFONvvcqhSoDl/7VfzF X-Received: by 2002:a63:8548:: with SMTP id u69mr57982599pgd.85.1555125088805; Fri, 12 Apr 2019 20:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555125088; cv=none; d=google.com; s=arc-20160816; b=yf5UJwIS8eUpm1XbzdUDw3PusEvJxIxQ2uY/lgNZm4SH2hsGcfCNyUF0lqMMFmV/BF yB4ydxYTfOd570jN80trR1bCYqF2Ikm3jcrhlTKl0mxvsiFPtm7SB0JFXw0hK7GHkvTc cOIlITo1foSPKXiuuNZR/dOcdpjzqmpeFdFtWe/K8WASzPRM2iV8gq+Z6eujZ3yIBBIn 0EMKqqY8Oz6H5XD64ItC+g2IqzVNezW7dYc8cnyUx2Ew4RFOpDX8O/HVLaBeQZHBSKYv IIXJJBjRyCJYYS2UBu5ChFnYE3RME/wXtsmOTsquioRvGLjygRmZoMYSL2mp+Rfhsok+ aaXQ== 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=CLQ9mjeWaq68e20HbY29AnsgCf3DOiy8XcyUG1NuJVg=; b=HuaP4IM3Q21QQz/2xqOLz8ZEASwxFXYBYfEaJuPA2uOpTFmgSuK6cDz3BQZsOcPb/k QnKz7N8MtFpdUNhMQgnhvfDR0YTvDPH0TFMKbf+54YOnLXF5DZ/ta+nnn5kLdKUA34Zl E5P0904yY5yFQ4fCc/2bH1q8ICZP+nC6w/YCuAQJ7uu5YMHUeZ4Ve/9HMHUWr/dQZYzj k5OtTXCrANHGedl6WwpWYSYAJ4FCfzMp8BHxI4bJKDiNb0sY037r7QbNOW0gFP5wgNIu tJBRb5Yjb9LBssSv30ey3Yrn//NKCA8UwUN0UX9dorTXOAxfDeWzDGho+HkUKDmq1Idm Ciyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=L7kNXcSQ; 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 z72si38313368pgd.401.2019.04.12.20.11.12; Fri, 12 Apr 2019 20:11:28 -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=L7kNXcSQ; 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 S1727148AbfDMDKT (ORCPT + 99 others); Fri, 12 Apr 2019 23:10:19 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:23682 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbfDMDKS (ORCPT ); Fri, 12 Apr 2019 23:10:18 -0400 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x3D3A6XG031464; Sat, 13 Apr 2019 12:10:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x3D3A6XG031464 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555125007; bh=CLQ9mjeWaq68e20HbY29AnsgCf3DOiy8XcyUG1NuJVg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L7kNXcSQyKvcpYKCfzpZfPmaB1XaNjXRYsK2Sd/jogdhHcUXhh+HUDZaj33Fo82KW qtb17RUtSdLFEtuIw90g7FnS70xAkfb9JO84e1B/jwqJq3orXsmetj6F/TVDkMsnA4 SKxtYJpAb5tO0C7aVxorpVXB6nriaP99Sjxta35E9aC/lExupgoKqHZnawCUOEzO0S rD2bXMBWAKllGo++6gNqA+AA37CWMu0F0A+g4YBowglnD+XB4nG3bpetsHmyM8nDVe CPherjz/7+CM/NkBw/QzHVB0AURnmNKdYwaaEuEIFtMTvBsOKq6tHnP7RaIayr2xs6 Of5zdqFaJv3yg== X-Nifty-SrcIP: [209.85.217.49] Received: by mail-vs1-f49.google.com with SMTP id o10so6645626vsp.12; Fri, 12 Apr 2019 20:10:06 -0700 (PDT) X-Gm-Message-State: APjAAAVwfvSXfHu0VybbEy1KjqbtEsTaaa8M6YVfJxM/OM3B/Cn7VNdQ +at5BnSPvXv4v1ydw8lHlB3nFXa8wUZmnKEy4M4= X-Received: by 2002:a67:f714:: with SMTP id m20mr34822158vso.211.1555125005533; Fri, 12 Apr 2019 20:10:05 -0700 (PDT) MIME-Version: 1.0 References: <20190408212855.233198-1-joel@joelfernandes.org> <20190412180014.GA175945@google.com> In-Reply-To: From: Masahiro Yamada Date: Sat, 13 Apr 2019 12:09:29 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 1/2] Provide in-kernel headers to make extending kernel easier To: Daniel Colascione 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 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? > 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. > I am not sure about the tar command though. > > > > commit f55f2328bb28a8517620518c5d124f5194673309 > Author: Andrzej Pietrasiewicz > Date: Fri Aug 17 14:03:19 2018 +0200 > > kbuild: make sorting initramfs contents independent of locale > > > > > > > > > -- > Best Regards > Masahiro Yamada -- Best Regards Masahiro Yamada