Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2069818rwd; Fri, 9 Jun 2023 06:20:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ohoSzMMsBtcvpRJtz/TebF1ZJJfs6PkT5EWXuZ3dLsw9xEEJRBc+zpBGsb4yuWRSY8ZLP X-Received: by 2002:a17:90a:19c4:b0:258:b097:f692 with SMTP id 4-20020a17090a19c400b00258b097f692mr1172115pjj.43.1686316829034; Fri, 09 Jun 2023 06:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686316829; cv=none; d=google.com; s=arc-20160816; b=U69gtep1PDXmnh/9HdxIcuFjHtjU70x71sueR7ozN6cuZ9qoLTqnR5RLkHCnfEEkFl D+64wSdfcBDFb1dXxDCk0pTV9QuOBw4evezUoa3G3r7k4Q0T8ARY6tKUfokBo58MQWe2 TSHU31RoqOrmYkBR76dwhiYz8D+2Hs/3Of1S6Np/5J5BT9Yjp1ipTSvQHa34RJhpRsPZ IobN3v2H6aJ5CpIlO+kSbgvNgwOZjoST/R63hgofZFO+93+bTdcIZBCBGwjQuiMYYZc7 +8OTSd2RdRsiYMjai2xXtsYs9mB4VuqrJyQZuN3pMi3T/pYRsYNYGWCSQygNFheldNkz D0Ww== 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 :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=kbHE3XRdGFwNcRgC2nUbLzCPNFZoJRcRytE94RX0+zU=; b=FeM+k6KXDz7+mPTQVBaXUTzMQx1mJS8bNLBmApPKX42Rjebrq/H63xWfg18luELFbz 2VrqTuvf/Q4mkXZJ6RUjfU0pBvnfSJ+HJATG9yCJqj8yxJrJ47qKdQrPnnj35fCMcCee L9kHcuMKiUjf/QhSo53fRsyt0i10nwaHJky5jbZ/8oSrHjTk6/D6bBYhTs60YnFKDltk sKZDUKmPwnw4eGT2QDLJIBhE81oUC7/ESaFrdQxS3RPZygja2EIcsaqM/tq7BrwheAOp yrTOlQSU4A6BMAQp7LqT53HV/iBnJFnI2F+xiwHp+cymuK/fb8Yz7ve6EdOSqTVxoHdL /3Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=npo+qrCH; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a17090a19d200b0024769a264fcsi4348820pjj.10.2023.06.09.06.20.13; Fri, 09 Jun 2023 06:20:29 -0700 (PDT) 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; dkim=pass header.i=@xry111.site header.s=default header.b=npo+qrCH; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240670AbjFINFT (ORCPT + 99 others); Fri, 9 Jun 2023 09:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbjFINFR (ORCPT ); Fri, 9 Jun 2023 09:05:17 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC9EF2D70; Fri, 9 Jun 2023 06:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1686315913; bh=hT63nSeqfXe+w/wcTH/EVqDDlEdDBDYjRZhYbxbpM9E=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=npo+qrCHsIrTavth6RFp9whOgzBlVXmzRzYXUH+dxBlx16fsDq62B5M0BsrtN4VtJ 1fdfpCWNVPfQBRPxlsk/T5jnywsDDxzlQF9T3tubgjW3v4DrYce6kTsX/rRJiWMx5i hBEItCRBrPuBf/r8DMY+d6WFyBryIiRnxabHdAlU= Received: from [192.168.124.11] (unknown [113.140.11.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 48AE16638D; Fri, 9 Jun 2023 09:05:09 -0400 (EDT) Message-ID: <5de9d69817138f2ccae0867b5ccb602dcfa007a3.camel@xry111.site> Subject: Re: [RFC PATCH] asm-generic: Unify uapi bitsperlong.h From: Xi Ruoyao To: Tiezhu Yang , Arnd Bergmann Cc: Linux-Arch , linux-s390@vger.kernel.org, llvm@lists.linux.dev, linux-ia64@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-parisc@vger.kernel.org, x86@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, loongarch@lists.linux.dev, linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongson-kernel@lists.loongnix.cn Date: Fri, 09 Jun 2023 21:05:07 +0800 In-Reply-To: References: <1683615903-10862-1-git-send-email-yangtiezhu@loongson.cn> <76d3be65-91df-7969-5303-38231a7df926@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, 2023-06-09 at 14:50 +0800, Tiezhu Yang wrote: /* snip */ > > > > In musl, the documentation states that at least gcc-3.4 or > > > > clang-3.2 are required, which probably predate the > > > > __SIZEOF_LONG__ macro. Indeed, I've digged some history and __SIZEOF_LONG__ was added into GCC- 4.3 (in 2008). And I didn't realize the bitsperlong.h in tools directory is a copy from uapi. > > > > On the other hand, musl was only > > > > released in 2011, and building musl itself explicitly > > > > does not require kernel uapi headers, so this may not > > > > be too critical. > Only arm64, riscv and loongarch belong to the newer architectures > which are related with this change, I am not sure it is necessary > to "unify" uapi bitsperlong.h for them. At least it will stop the engineers working on "the next architecture" from adding an unneeded bitsperlong.h :). --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University