Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp309400rdb; Sat, 19 Aug 2023 02:40:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuAEkeP/RJ9Hb2Etay8liD3K1ahj/tlbKgcGnRIXVa69hFiL04oCSntuc3PxZc9Mc5WPse X-Received: by 2002:a05:6a20:6a05:b0:140:cb66:73aa with SMTP id p5-20020a056a206a0500b00140cb6673aamr2197231pzk.3.1692438051258; Sat, 19 Aug 2023 02:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692438051; cv=none; d=google.com; s=arc-20160816; b=tkHwveoGjYCExhZYRxtYyTQ5ese9nIN09Jj71nEhtnLtcC15vvQxCTTWP0BFUrjueV /Bjx8ry89ImmQOK7J4FCokV53ztOqtZDuXRaoVt/s2eYaV8KA/rWy5hF73NiLts3enBM o4YMX//gbf7Nt98tFHRwF18t4C2+pNraE4sLandFe/vB2Z515BtB6gidq1y//L7B+XqK 3BRY4h/UaW3IYCqyqEXlKKDaPgmhCJ3TDfEw34nL6DuFrgh9Oj5WXrH6/KzSMhSn9mgL FSqwlns6tSU2AUOW4C/tia62zwM8cnUbwgx1njxK/eKlaYQXerFPAm/5w+OaQShNcMHl 6LSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/z+EjJkLqGm29qUa024LuIQFu2LgSEuQ1rU/vcQEXBw=; fh=fDZIxE49BgCQCl5PBS6YMr2fvXD9OS45/JPh9pNgEIQ=; b=ydi8/bOPKjvadcAq1EhAZV3OGQxZW8DBXsiXqZsS00jBKQoELHg+1Z7YdavwCOhOtG STq8UvSMqaDd9zDTCNtuAobCIxjq19qzwHIDa39rFcyCNonZASz5odxCDg0yg+tXcuR1 wMr5rAqSMg52SSsA14sx4xlg1EOa7YUPjxq7ExGZyfHAZ/ZGapGQnX47IKwwsW1R7u9I smZTlUnIFsE0l927gyIu8XrD3QP+cZmKaOMGtdjYLUi1M9IMPRaCNhH0YQcsrlrb0Ewk 3KL3doQfWAZA6xzRdX7D3aDHWWWeACiguyJqa7PlZLFTrJFW+4sT6TSqoFxo+9cz5BDa Y64g== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ca20-20020a056a02069400b0055c4c9cc005si3495838pgb.499.2023.08.19.02.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 02:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE1852C6FE; Sat, 19 Aug 2023 01:28:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349375AbjHQKNY (ORCPT + 99 others); Thu, 17 Aug 2023 06:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243791AbjHQKMw (ORCPT ); Thu, 17 Aug 2023 06:12:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F11E2D5A for ; Thu, 17 Aug 2023 03:12:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B191566191 for ; Thu, 17 Aug 2023 10:12:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9085C433C7; Thu, 17 Aug 2023 10:12:47 +0000 (UTC) Date: Thu, 17 Aug 2023 11:12:45 +0100 From: Catalin Marinas To: Arnd Bergmann Cc: Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Tiezhu Yang , loongarch@lists.linux.dev, WANG Xuerui , Huacai Chen , Arnd Bergmann , Nathan Chancellor , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH] asm-generic: partially revert "Unify uapi bitsperlong.h for arm64, riscv and loongarch" Message-ID: References: <20230811204930.1529925-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230811204930.1529925-1-arnd@kernel.org> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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 Fri, Aug 11, 2023 at 10:49:07PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Unifying the asm-generic headers across 32-bit and 64-bit architectures > based on the compiler provided macros was a good idea and appears to work > with all user space, but it caused a regression when building old kernels > on systems that have the new headers installed in /usr/include, as this > combination trips an inconsistency in the kernel's own tools/include > headers that are a mix of userspace and kernel-internal headers. > > This affects kernel builds on arm64, riscv64 and loongarch64 systems that > might end up using the "#define __BITS_PER_LONG 32" default from the old > tools headers. Backporting the commit into stable kernels would address > this, but it would still break building kernels without that backport, > and waste time for developers trying to understand the problem. > > arm64 build machines are rather common, and on riscv64 this can also > happen in practice, but loongarch64 is probably new enough to not > be used much for building old kernels, so only revert the bits > for arm64 and riscv. > > Link: https://lore.kernel.org/all/20230731160402.GB1823389@dev-arch.thelio-3990X/ > Reported-by: Nathan Chancellor > Fixes: 8386f58f8deda ("asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch") > Signed-off-by: Arnd Bergmann For arm64: Acked-by: Catalin Marinas