Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1269111rwe; Sat, 27 Aug 2022 04:43:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7nRcJtVFLReGjrSnxTLffzEYMCa300eHIfNV3q5kT/sS3UFDIwwriXEIHromsGTJEoORnG X-Received: by 2002:a17:906:cc0c:b0:73d:d6ce:5d6b with SMTP id ml12-20020a170906cc0c00b0073dd6ce5d6bmr7006977ejb.24.1661600638580; Sat, 27 Aug 2022 04:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661600638; cv=none; d=google.com; s=arc-20160816; b=jogSNMZ/Mg9Xk7Q11Y2v4TBJXUprJl0hrDvtwHOuHrVe8bA7cVW0kLgm705sbK7VlQ ijiFCboJIacFA7p7ciThLN+MxAXlXMPNjQWUk+hFZlpa6zoy953B5CEFInXUcxMy5CiQ kkb/FxI2i7of9Qgthd4D74E6jRpy40cEy0wGgAO8YUj3wEcYiBTC5pX8CSHsP0OQ+7+8 vHjMVLr9bhS/VD6khYRYzR5S0xCyhh+lvVrmSiw+37EukOW2d3liJfdwsRuMfq8A0N5d o4MouUfK8W4/OlF1FRLC9xQVuUgdTD1HNkZlpg0nDj3QGmD+r5SAsBqYQ+U3A282+rmI kIuw== 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:dkim-signature; bh=aVuxalu5P1+XapIuqjdM8bU9Xz/L+P4hGuQ04daUvb4=; b=i3L9rSyk80D7ztZCNewIzQWb3VBoDyxHOGi/AR6C/F6R5Zc/KQl7HFzR/42ycZqwBi 35UOSCbFzLfxZFcJ48yaT2E45LEJycfBYGX0rgTs9O7vNL4boFHqtSyYH0KmzkubIAPB YiFWP6qBqmyOsODQwe08u6FWfMrxrMtsjJTNmstSI11Jt36OiLfO/PpIrQSgAV1w3eD9 uGSB4N6/f1puIWaa1uJPa4MHwKukYwAdBWIKFtU5cTvb+et9XBZZvLkuld3PIP5ZRcSX mcCvPq5zNj5gk9BVbTszOYEsFnWOafPJy2DPVvHH7KtuCJXRmvmjRYXpKhEe6WhXSnbt JoQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KL1PNAIf; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id zb11-20020a17090687cb00b0073d71b20f36si2488835ejb.428.2022.08.27.04.43.31; Sat, 27 Aug 2022 04:43:58 -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=@redhat.com header.s=mimecast20190719 header.b=KL1PNAIf; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234620AbiH0Liy (ORCPT + 99 others); Sat, 27 Aug 2022 07:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234595AbiH0Liw (ORCPT ); Sat, 27 Aug 2022 07:38:52 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44EA353D05 for ; Sat, 27 Aug 2022 04:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661600330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aVuxalu5P1+XapIuqjdM8bU9Xz/L+P4hGuQ04daUvb4=; b=KL1PNAIfWH/nEs96WfUvlReFG4TaT3rVi2WJVlTDWi3IMHuzVKGqtYA/NEq7vQtAzigJ9S aCv09nZNnVQVk1mAmuWXHKdw/YHU29IqNA+esmN1K5D6pKzhbAU54BYJ5+DjMzI0y6DRju DFonuWx9/rQdrOa7zAg8MFOHxayJAIo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-450-w-_pqjAkOMG6shxzxZynUQ-1; Sat, 27 Aug 2022 07:38:47 -0400 X-MC-Unique: w-_pqjAkOMG6shxzxZynUQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 53A2385A589; Sat, 27 Aug 2022 11:38:46 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 02DD0492C3B; Sat, 27 Aug 2022 11:38:45 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id 27RBcj6r019230; Sat, 27 Aug 2022 07:38:45 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id 27RBcjFT019226; Sat, 27 Aug 2022 07:38:45 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Sat, 27 Aug 2022 07:38:45 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Linus Torvalds cc: Brian Cain , linux-hexagon@vger.kernel.org, Geert Uytterhoeven , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Joel Fernandes , Linux Kernel Mailing List , Linux-Arch Subject: Re: [PATCH] provide arch_test_bit_acquire for architectures that define test_bit In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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, 26 Aug 2022, Linus Torvalds wrote: > On Fri, Aug 26, 2022 at 1:43 PM Mikulas Patocka wrote: > > > > I'm wondering why do the architectures redefine test_bit, if their > > definition is equivalent to the generic one? We could just delete > > arch_test_bit and use "#define arch_test_bit generic_test_bit" as well. > > I think generic_test_bit() came after many of them, and when it > didn't, people copied earlier architectures where they had already > done their own. > > > Another untested patch ... tomorrow, I'll try to compile it, at least for > > architectures where Debian provides cross-compiling gcc. I compile-tested this patch on alpha, s390x, m68k, sh, sparc32, sparc64. So, you can commit it to close these uncompilable-kernel reports. Mikulas