Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1200923ybt; Sun, 14 Jun 2020 14:10:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw3RFrApDf2C45cA1uNh/zgUDlrlZFrBGVrn0HyujewM1InYDAk7ukPTGw4DCNeEUPniy7 X-Received: by 2002:a17:906:6dcf:: with SMTP id j15mr22412246ejt.270.1592169037183; Sun, 14 Jun 2020 14:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592169037; cv=none; d=google.com; s=arc-20160816; b=P7Tj+w0OZaWHYlLLoWhHQW3utoTyVYERPsGJFM/6nD81L8Q6C2UYuzMYDeeDIxWVwO fBz899AhxuVtYiVSGovwR5H4fu7dJGsm0INj2mKQpTDQhEY4jgBn04ZPtH99J6JsZ6mW ADfl0wkYvBUJ6d6nyZeY9Q5UJqorjy4AQ80JknxSA9iKmyrUv0HkTMpoiFuOihLKQlY7 AxGxD1iSOVp8Dn3tx8BbbPOLoWKGdBdS7ijDXZazRrYjbltD5uUkn6fuBwkc/k1q5DQG qdooC0GvwoG/ZyUWMQaRHf7Ei6Fj3kguxeA6KVzUDn55PugiharBDKEJLztiBuf4XYJ7 sdjg== 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:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=d9a2K8eXXRGQ9rjINYGWM5Wcl9Tsis+gLAbGLmPISng=; b=cG1DgKNlqvy04bev4/ZaIJauca9tM7SupZFBvjappknew/ckowcnFqsakZ7aaHjn6E vWj65nDUQ5MZwNRlgxYP8mx11OghKo+I6VucFCIFLa6XAfo2t/ZRUXbKftyWI56Oxeq0 vX23u52/mP67f3Va2UgDJ1qIyUjWZW5DyirKrNTq0i59N3y+g6Ha6m6iBOQeCtbNzOYF 8RKzKdpUHxsk2hU3iPXC4WtkrSisj6IDL3bxW9/jBUvhDDmO94eHt+Yr3NSFm3YJ6HBK 3UFiD+HGXCi+Mxwn9E/dqk/ymAZY/hbwK3wvHZBQcTf5yEOUkpqeZE7VlC7Z+zlyAIsa YDhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si7411605eji.407.2020.06.14.14.10.14; Sun, 14 Jun 2020 14:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727924AbgFNVIP (ORCPT + 99 others); Sun, 14 Jun 2020 17:08:15 -0400 Received: from a3.inai.de ([88.198.85.195]:39502 "EHLO a3.inai.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726844AbgFNVIO (ORCPT ); Sun, 14 Jun 2020 17:08:14 -0400 Received: by a3.inai.de (Postfix, from userid 25121) id 8928C58726429; Sun, 14 Jun 2020 23:08:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 70F1D60C2707A; Sun, 14 Jun 2020 23:08:08 +0200 (CEST) Date: Sun, 14 Jun 2020 23:08:08 +0200 (CEST) From: Jan Engelhardt To: David Howells cc: "Alexander A. Klimov" , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: Good idea to rename files in include/uapi/ ? In-Reply-To: <174102.1592165965@warthog.procyon.org.uk> Message-ID: References: <9feded75-4b45-2821-287b-af00ec5f910f@al2klimov.de> <174102.1592165965@warthog.procyon.org.uk> User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 2020-06-14 22:19, David Howells wrote: >Alexander A. Klimov wrote: > >> *Is it a good idea to rename files in include/uapi/ ?* > >Very likely not. If programs out there are going to be built on a >case-sensitive filesystem (which happens all the time), they're going to break >if you rename the headers. We're kind of stuck with them. Netfilter has precedent for removing old headers, e.g. 7200135bc1e61f1437dc326ae2ef2f310c50b4eb's ipt_ULOG.h. Even if kernels would not remove such headers, the iptables userspace code wants to be buildable with all kinds of kernels, including past releases, which do not have modern headers like xt_l2tp.h. The mantra for userspace programs is therefore "copy the headers" — because you never know what /usr/include/linux you get. iptables and iproute2 are two example codebases that employ this. And when headers do get copied, header removals from the kernel side are no longer a big deal either. A header file rename is no problem. We even have dummy headers already because of this... or related changes. Just look at xt_MARK.h, all it does is include xt_mark.h. Cf. 28b949885f80efb87d7cebdcf879c99db12c37bd . The boilerplate for xt_*h is quite high thanks to the miniscule splitting of headers. Does not feel right in this day and age.