From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BC1DECAAD2 for ; Sat, 27 Aug 2022 11:39:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236813AbiH0Li4 (ORCPT ); Sat, 27 Aug 2022 07:38:56 -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 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