Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5895430rwl; Mon, 9 Jan 2023 01:02:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXuJoZWXVDP94K4mSiHkgkIMgvdTyWEZvI78MLKMtiZDczO3DsyCOL3jNMZpMR1h9DeujrWf X-Received: by 2002:a17:906:8492:b0:7ad:8f6f:806d with SMTP id m18-20020a170906849200b007ad8f6f806dmr56404388ejx.24.1673254951746; Mon, 09 Jan 2023 01:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673254951; cv=none; d=google.com; s=arc-20160816; b=zU0GWLhhnBeqv2+R53kqmw5Pgqx7JErD/OtOvQOVMp6BCuz95c1kI2sZkGDhrmB6k4 fOal9NpGGW8Dqw/s2E8o7gyccFeKZ2uOv/QlSLOJwCpRNxqk+VTFmC14aNnPb+5B6zCU Q4xCUOZEB1Wz4xmDofjviTrCaD8LOiyu7jH/rYoPEp3zS8jHpyPEDf4Tj4GidLtWfGUI 2t860/25D+sD9JjK3RkhqchlEukWbiZRBsi/Qy4ZZyzSrs0H/NOsoZGr2fUMd0vKKnFn m8oL4JOJqoctl2HloiFFv9lHEQkMUebs7cTtd4NLdfumSCFWVJFBtL9UajOxujVYI41g dXLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=Ylqlj/3s/ZOKBO0DUo93okoqB5TNdMvjB+/JOyr72JY=; b=KtDmvCs2NnHYHVCd7VtYpsS8sLOHF+x1fSz6xijE2gzrVBth4Eiq0ycpLZEloQkRYY ZsueKewACvg+BRWAlX9oQTwXShsYnUfr4PKpaGtXzCA25Ah42Fy2cSncQ+WSqhwa+jf/ KBn4cowVlByu1xvp3y1ea/Vkyzj5iPYCoTGANbKeDoGlGDJc/ACKlvh7SWiy5z5suMK5 /taxn+/S0SHbnFseSSYp4R4Whj7SWlR8VSy+AjvKSB5fBiLufBr0t6rce/SEY8ByUSRL Y1LWzdE6m2M/TjHkm7zkPVjxsmRyFjQIAq0Da3/phKFqB8Xd/UZNSdaZHObxDPsEjXvW natg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va28-20020a17090711dc00b007806a130086si6776487ejb.302.2023.01.09.01.02.18; Mon, 09 Jan 2023 01:02:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236325AbjAIIOu (ORCPT + 54 others); Mon, 9 Jan 2023 03:14:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233106AbjAIIOl (ORCPT ); Mon, 9 Jan 2023 03:14:41 -0500 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FB676457; Mon, 9 Jan 2023 00:14:37 -0800 (PST) Received: by a3.inai.de (Postfix, from userid 25121) id 1BED758957AAE; Mon, 9 Jan 2023 09:14:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 5306160BC6B00; Mon, 9 Jan 2023 09:14:34 +0100 (CET) Date: Mon, 9 Jan 2023 09:14:34 +0100 (CET) From: Jan Engelhardt To: Jiri Slaby cc: Stephen Hemminger , netdev@vger.kernel.org, David Ahern , Jonathan Corbet , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Borislav Petkov , "Paul E. McKenney" , Andrew Morton , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Muchun Song , Akhmat Karakotov , Antoine Tenart , Xin Long , Juergen Gross , Hans de Goede , Nathan Fontenot , "Martin K. Petersen" , Suma Hegde , Chen Yu , William Breathitt Gray , Xie Yongji , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Arnd Bergmann , Alexandre Ghiti , Chuck Lever , Jeff Layton , Paul Gortmaker , Nikolay Aleksandrov , Sebastian Andrzej Siewior , Menglong Dong , Petr Machata , Daniel Borkmann , Roopa Prabhu , Yuwei Wang , Shakeel Butt , Kuniyuki Iwashima , Kees Cook , Stefano Garzarella , Florian Fainelli , Wang Qing , Yu Zhe , "open list:DOCUMENTATION" , open list , "open list:MIPS" , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , "open list:NETFILTER" , "open list:NETFILTER" Subject: Re: [PATCH net-next] Remove DECnet support from kernel In-Reply-To: <07786498-2209-3af0-8d68-c34427049947@kernel.org> Message-ID: References: <20220818004357.375695-1-stephen@networkplumber.org> <07786498-2209-3af0-8d68-c34427049947@kernel.org> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 2023-01-09 08:04, Jiri Slaby wrote: > On 18. 08. 22, 2:43, Stephen Hemminger wrote: >> DECnet is an obsolete network protocol > > this breaks userspace. Some projects include linux/dn.h: > > https://codesearch.debian.net/search?q=include.*linux%2Fdn.h&literal=0 > > I found Trinity fails to build: > net/proto-decnet.c:5:10: fatal error: linux/dn.h: No such file or directory > 5 | #include > > Should we provide the above as empty files? Not a good idea. There may be configure tests / code that merely checks for dn.h existence without checking for specific contents/defines. If you provide empty files, this would fail to build: #include "config.h" #ifdef HAVE_LINUX_DN_H # include #endif int main() { #ifdef HAVE_LINUX_DN_H socket(AF_DECNET, 0, DNPROTO_NSP); // or whatever #else ... #endif } So, with my distro hat on, outright removing header files feels like the slightly lesser of two evils. Given the task to port $arbitrary software between operating systems, absent header files is something more or less "regularly" encountered, so one could argue we are "trained" to deal with it. But missing individual defines is a much deeper dive into the APIs and software to patch it out.