Received: by 10.213.65.68 with SMTP id h4csp320473imn; Tue, 3 Apr 2018 21:58:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx480nMzw6qu2JYtQ7ikK+5RPLc6mmfaOFZiuYzlyKnyUyCKj9vGq7X1H9x9Q0aMP8ZZXrPUx X-Received: by 2002:a17:902:3e5:: with SMTP id d92-v6mr17445206pld.104.1522817884629; Tue, 03 Apr 2018 21:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522817884; cv=none; d=google.com; s=arc-20160816; b=K3qHEQyx1jjYtuU+IfrDm/U4Zhyu1czsztsjcFNW3shq+6zCYurj4Wt/KM74/kU2KG 8GvwvjPzzHx0n3N/3fJ/V1lke1a/Feg0WIcs2AbuZ3a4rW57H5KMur9Rl3YrEYFACU+k nCViE02ouHnxpl4sUaN+Kss0hRkPIf36y5zOdRMovx6UKtrixQcTqOy1hjBfNqNVubFs YyrEkRv+/rD+DAYMH+PcQVOUs9NK/Uk6pvtPe8NGmB+Y1nuSnFBDY7dDZANl3mF2HiMr q49FPP5ixW+tQLKFefO/VE4bJLRobxNDWdD3XIW7Ne2kon42aJVbro8N4QpP55SlAOr5 mYDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gZuSr9sxE3U3g0tWKUdeH+xkNPGuv/C9IcvmJ7cJrjY=; b=dixzxicev1kkEdlJZbSdJbieOm/9D50RFyagkh9mWXTvN04vyzjdA/uKR9alOmlFS0 pusR07uQ91OGeaJvaZojICxQ5eZlUBH4W5v5sm2KI/O+lj75xGNJ10dF2ziZofNc5O5X aEWwzOI9AZapyCrlS1FkPNwrsf/zADA+kVKVbt8a4HoPDfn8Do725oYZuZmAjICPPqkG 9ALLucZl7kVlN8ZWJ2iB2j3Vh6TadX10aHeXxuWiodmA9JPsrPcCIGmhpcuYoASetcs6 xw6AMZQ+O1PIiYshO+4ONNZsl13h0uX5ipVyds8Qwz9/rhZFHeTom3hcviBY/zCNRzAR P3hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=S2VP6g3e; 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 e91-v6si2197646plb.73.2018.04.03.21.57.49; Tue, 03 Apr 2018 21:58:04 -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=fail header.i=@gmail.com header.s=20161025 header.b=S2VP6g3e; 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 S1751704AbeDDE4j (ORCPT + 99 others); Wed, 4 Apr 2018 00:56:39 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:45597 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbeDDE4h (ORCPT ); Wed, 4 Apr 2018 00:56:37 -0400 Received: by mail-wr0-f195.google.com with SMTP id u11so20651832wri.12; Tue, 03 Apr 2018 21:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gZuSr9sxE3U3g0tWKUdeH+xkNPGuv/C9IcvmJ7cJrjY=; b=S2VP6g3e6L3QQfBZAwfyQh5aaNdzcKneJW2H5GxLsC/qRqM9XIndAqvpw1RgptiC0F Ki8HC1GvPvkHSD1yEzzmqb98ZtxdFQMEHzI90Ljc8Jb+uY6QoHQ85m7pwhNvoyqCbunh cSsNVGZFzUaH25AttflScqRXsB4sI7VraRrGzh/5DWOD5PdSxLwMERvM+ikGILkUshG+ rLLbuR040DkqY8pXXWGBIxxjBfI14D6u2ldenoSX6xtw5L//b7UneM1L6oeN65tMaqFz iV6ldOB0uAj/aQee/F4FrOpSR1MC+O8gRmolgg25eWlZh1QSuUVFyzp6+yEQluj45/70 t92Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=gZuSr9sxE3U3g0tWKUdeH+xkNPGuv/C9IcvmJ7cJrjY=; b=d8EI+/qgzta1zHVIHPW16JKTqI0DCAkvoF1Hfv9NYcZ2j7fHBoZsAzatC5EelfuGsI sCDvZhVlou0iHVMjdK0bxR0JQlhtA53lcqwvVtt5+B48do+dFBX2XaeMVJ4HdG6uNFAy TitmQU2wrx/n8jyA/55QeHIuUV41GWtLYR+od4Gl7wkz9VX4fx1NQpQNDyt8xbCJ6QYa pI1uwYmYcTcmhE1vAAi8ZgCRZPv/1DouM27o2f6nyQReWTJxyF3F2YkvE2xHRbYybzCv OeDD7uh/B7iwhpzGlTe/JxnEFN8TdTyZ8QOEpEa6OrcoNLGIlN+ips+N0uh4H1EbURhB iUMQ== X-Gm-Message-State: AElRT7HaKGZPkRKZoDyVZnNkmwtwzlQ99WuB4Jgbf79BMPFyhceDrQIk dAC5fquBXwytzt5tbRhVi8ia2g== X-Received: by 10.223.130.246 with SMTP id 109mr12359039wrc.45.1522817795672; Tue, 03 Apr 2018 21:56:35 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id t142sm3000967wmt.12.2018.04.03.21.56.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Apr 2018 21:56:35 -0700 (PDT) Date: Wed, 4 Apr 2018 06:56:32 +0200 From: Ingo Molnar To: Andrea Parri Cc: Jonathan Corbet , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, Andrew Morton Subject: Re: [RFC PATCH 0/3] Documentation/features: Provide and apply "features-refresh.sh" Message-ID: <20180404045632.uniwfrl32bjmsn5g@gmail.com> References: <1522774551-9503-1-git-send-email-andrea.parri@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522774551-9503-1-git-send-email-andrea.parri@amarulasolutions.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andrea Parri wrote: > In Ingo's words [1]: > > "[...] what should be done instead is to write a script that refreshes > all the arch-support.txt files in-place. [...] > > It's OK for the script to have various quirks for weirdly implemented > features and exceptions: i.e. basically whenever it gets a feature wrong, > we can just tweak the script with quirks to make it all work out of box. > > [...] But in the end there should only be a single new script: > > Documentation/features/scripts/features-refresh.sh > > ... which operates on the arch-support.txt files and refreshes them in > place, and which, after all the refreshes have been committed, should > produce an empty 'git diff' result." > > "[...] New features can then be added by basically just creating a > header-only arch-support.txt file, such as: > > triton:~/tip/Documentation/features> cat foo/bar/arch-support.txt > # > # Feature name: shiny new fubar kernel feature > # Kconfig: ARCH_USE_FUBAR > # description: arch supports the fubar feature > # > > And running Documentation/features/scripts/features-refresh.sh would > auto-generate the arch support matrix. [...] > > This way we soft- decouple the refreshing of the entries from the > introduction of the features, while still making it all easy to keep > sync and to extend." > > This RFC presents a first attempt to implement such a feature/script, and > applies it script on top of Arnd's: > > git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git arch-removal > > Patch 1/3 provides the "features-refresh.sh" script. Patch 2/3 removes the > "BPF-JIT" feature file and it creates header-only files for "cBPF-JIT" and > "eBPF-JIT". Patch 3/3 presents the results of running the script; this run > also printed to standard output the following warnings: > > WARNING: '__HAVE_ARCH_STRNCASECMP' is not a valid Kconfig > WARNING: 'Optimized asm/rwsem.h' is not a valid Kconfig > WARNING: '!ARCH_USES_GETTIMEOFFSET' is not a valid Kconfig > WARNING: '__HAVE_ARCH_PTE_SPECIAL' is not a valid Kconfig > > (I'm sending these patches with empty commit messagges, for early feedback: > I'll fill in these messages in subsequent versions if this makes sense...) > > Cheers, > Andrea > > Andrea Parri (3): > Documentation/features: Add script that refreshes the arch support status files in place > Documentation/features/core: Add arch support status files for 'cBPF-JIT' and 'eBPF-JIT' > Documentation/features: Refresh and auto-generate the arch support status files in place Ok, this series is really impressive at its RFC stage already! Beyond fixing those warnings, I'd also suggest another change: please make the new BPF features patch the last one, so that the 'refresh' patch shows how much original bit-rot we gathered recently. The 'new features' patch should then also include the result of also running the script, i.e. a single patch adding the base fields and the generated parts as well. That will be the usual development flow anyway - people won't do two-part patches just to show which bits are by hand and which are auto-generated. Thanks, Ingo