Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4022740rwb; Sat, 10 Dec 2022 02:00:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ETihCoBB5MITJ7PR3M5aFpZSoMmFDMSRUwqvUHjrDb/vuJbAuUUZp5qGaHTiFZI4MB/mU X-Received: by 2002:a17:906:1115:b0:7c1:1fcf:266c with SMTP id h21-20020a170906111500b007c11fcf266cmr7515293eja.14.1670666440638; Sat, 10 Dec 2022 02:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670666440; cv=none; d=google.com; s=arc-20160816; b=W+aRB32/YwwqOegVpjSO265r3ud5xy9dNKnhbP751X2ZyMuo3gvX7CC/cAND2v3SHm ZvWZ+q4hKQ3cCzDEI2NNxx3hkF9q9zRew2YddbshbaeTSVuT3ZwPBUm/iTe/XMH7v6d9 CGTFxDjSq6SCu2Ymc+JjqHkA/TRsTgVEhvKsa+VN9F9hxqGuMqDUUtU3zp4LCtzdehEx kRYCXgMAt+hYLp1jmRomSljP3wiRERlPsk/BrCblrPxaq2hfD8E9jB0BGg1OtJsI0kOD 6hDzZxnuQrI7oc591Jl++VEyRnf6DHL1UFnFKKqUulSY4m07eWR8oJyOO9RoOvn3Uhhl 0xiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=14DV5/lr84tdfRoq7Lj5QRksC+vvFTko4/JxijwvDcU=; b=GX1JpVS91K4gaM2aYxksnfcJj78EyqSLAM5pXE7DW8A8/9V279Q/k70IB+a+mYsioX nU6VsWj4QrvBbe9IJNS8FvzhwpjuxbkAP3TT1AUvjMSkhF7t8Jx1h3YRokvEfT7cQSC+ aDmr++FxmAJJPStOm7zXsxTR5/86NfaSGHUL94eZxP0VCuwh03BZF/fhuhF488kUDyJO yfPd9LOY2q7AG40PKSN9NESIM/K6eDc7eDUFMp1UYqukKUx9r7xtT12AxW5uqPLsG9pA loMCZbjmIW7PRfyp7EgNopcKIoTddhsvayY5TzGe+6wC0uh8EkIOm8Gmbve5ImhP/7FU ClgA== 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 xg5-20020a170907320500b007c0a9cff536si1722239ejb.510.2022.12.10.02.00.22; Sat, 10 Dec 2022 02:00:40 -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 S229830AbiLJJh5 (ORCPT + 75 others); Sat, 10 Dec 2022 04:37:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLJJhx (ORCPT ); Sat, 10 Dec 2022 04:37:53 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 43E69140C2 for ; Sat, 10 Dec 2022 01:37:51 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 2BA9bYaw021826; Sat, 10 Dec 2022 10:37:34 +0100 Date: Sat, 10 Dec 2022 10:37:34 +0100 From: Willy Tarreau To: Sven Schnelle Cc: "Paul E . McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] nolibc: add support for s390 Message-ID: <20221210093734.GE21743@1wt.eu> References: <20221209141939.3634586-1-svens@linux.ibm.com> <20221209141939.3634586-3-svens@linux.ibm.com> <20221210090728.GB21743@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 Sat, Dec 10, 2022 at 10:34:08AM +0100, Sven Schnelle wrote: > Whoops. One of my colleagues suggested that i should name the file > arch-390x.h. Reason for this is that the architecture name "s390" > describes the 31bit (compat) architecture mode in userspace, and "s390x" > the 64 bit mode. To make it a bit more complicated, the architecture in > the kernel is named "s390". That's because in the beginning the kernel > could run in 31bit or 64 bit mode, and there can be only one > architecture name. When support for running 31bit kernels was removed > years ago, the architecture name s390 was kept because renaming the > architecture would have been quite some fun. So in short: > > Kernel s390 == 64 bit only > Userspace s390 == 31 bit > Userspace s390x == 64 bit OK, that might be why it's always a bit confusing to me :-) > So i tried renaming the header file, noted that the Makefile just uses: > > nolibc_arch := $(patsubst arm64,aarch64,$(ARCH)) > arch_file := arch-$(nolibc_arch).h > > which would then need special handling. Obviously i failed to revert the > change completely during rebase. > > So it should be: > > >> +#elif defined(__s390x__) > >> +#include "arch-s390.h" > > I'm fine with both - either you fixing it up or me sending a v2. As you like. If you prefer to rename the file to s390x as your colleague suggested, I'll then ask you to send a v2. Otherwise either Paul or I can drop that 'x' in the #include. Thanks, Willy