Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp856607rwe; Fri, 26 Aug 2022 16:34:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR4lEdCbDjXExg2mXx+EN4Wn8Kzgt251kXRion5OIlcmUyP0I69MaF6AliVI3fVg710zoJ/d X-Received: by 2002:a17:90a:a097:b0:1fb:5bc:7778 with SMTP id r23-20020a17090aa09700b001fb05bc7778mr6649074pjp.209.1661556841263; Fri, 26 Aug 2022 16:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661556841; cv=none; d=google.com; s=arc-20160816; b=UuPVFyW4u9IQmeEt5tBfhrvvQx5VyoQK1w2RHAheOSlLn8Iz/LzmBJCKoWkVP6qODL 4cBU6ZIcubaPMfm+Hkx2D3dPGL35EkoLoYZ87p/7wdVegRbiZWcF7H0ScMuSpguCE1Nx /2MwaCm0SdAVJc6RzJOXlqmOZ1bNkrkodNykndeLk1lYzoVpYEyz6voAEMVnXuWdaUEM S1ejonwtxdf+U/w9QxLo5EZ7UXVG4wsWep5YZ+rKIZYOAzCJkiFaXTZlnvjZjA3cjerr V+ZLA3yAie2/doKQRhwnl9MZ3I2aGRZX2anS1d0FPwwAlsW9l5r67ZrfILtxsA9FFAnY gG4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a3WYMeaYaKAXqi2vNnTDqTlRNok0/Jvq98Wuc+dfeDo=; b=FwuytpZWFFXj6JigUlYqSldJv/ZDv7P29DWYsyd3rM5VJUsiqbcQqnfGAZIaDAKT9a zQKX8D0hcm3jjChMmTNQ/sCcBk3UT414zcdVJepeesMkpHjOrVYUkyQSzGpeYNcm8ceT akLPkOGlBx0M3+iPLaw+Odf0A2A0FK/4Y6gIaGmCT+YX2Pwl30QS9c3TDibZT68KHF/h mtF7pEx9FsetHV6UWwUn8eL36v0B3+5CDw0lV7qYUMU9tHjXSA+skO7IRUX347R7SAQh sVrrY8HL1vuvxJhMaaI6M314zx3kPCj/9uDQZTd6bkMX6KglwontWvZjtcTlnZNmCRpo RVoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HEiGlMlG; 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 c17-20020a63ea11000000b0042b20707278si2873192pgi.361.2022.08.26.16.33.50; Fri, 26 Aug 2022 16:34:01 -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=@linux-foundation.org header.s=google header.b=HEiGlMlG; 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 S1345074AbiHZXS7 (ORCPT + 99 others); Fri, 26 Aug 2022 19:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345227AbiHZXS4 (ORCPT ); Fri, 26 Aug 2022 19:18:56 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74560E9A95 for ; Fri, 26 Aug 2022 16:18:55 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id bj12so5698787ejb.13 for ; Fri, 26 Aug 2022 16:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=a3WYMeaYaKAXqi2vNnTDqTlRNok0/Jvq98Wuc+dfeDo=; b=HEiGlMlGQUJaVg6lEvjGY+FKjsfHMo57rRYGePuvlcz/0r2RbwWl9AtQ0dGbw3JwQF 3nm0V4DsSpmJ1F/Qb1N3WOegj48Mjuee1S0ycHZCQsGeThmAHohlwZ89qr/K5ZO79OUZ SfLgX1wpW84KIwtOyBasYRFkKxE4seAGCIO8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=a3WYMeaYaKAXqi2vNnTDqTlRNok0/Jvq98Wuc+dfeDo=; b=QN95ZQKlYqXkTsXShIhRTe3y2bTupMHRj5QOYBxruqAdO80GinrajIt3eRpUqxiwrY 8JUOwSwwtTMLxmfyZ5aWOC17eWsPrXRDNbFYp/ZEWJuC9iqReTfdk6df5eqpTojY8SIm srhAV7EHBkcyVqDKRP4UnS/L+L7tl7GG+pzxexCuhXYeU1LMgdXFPcOsiOfNS0JImqJD aLw2pr68auSMPzlqb0O+Ke8oqnEfDKs9U6HkS7dTvNdHSJnhwF9nZDb8aP+9th9HiGpY 7yvIDIqfo4O4CR1PKKRVg3TgZH1fzf00lWtqGZIr9ef/D0pd5oFtdhIiELcdfF8/Eiuc 5fPg== X-Gm-Message-State: ACgBeo2Tnu7VGQLGIifCHutBYhaUKakkAX2rhD90lSEZ3Fxu62UOdjUV AUyhVzGuIDe2csPouuSmjDXFKNRbB4shK6p8kcM= X-Received: by 2002:a17:907:7fa1:b0:73d:8326:cd5 with SMTP id qk33-20020a1709077fa100b0073d83260cd5mr6507759ejc.522.1661555933663; Fri, 26 Aug 2022 16:18:53 -0700 (PDT) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com. [209.85.128.48]) by smtp.gmail.com with ESMTPSA id 8-20020a170906328800b007414152ec4asm423556ejw.163.2022.08.26.16.18.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Aug 2022 16:18:52 -0700 (PDT) Received: by mail-wm1-f48.google.com with SMTP id m3-20020a05600c3b0300b003a5e0557150so4500594wms.0 for ; Fri, 26 Aug 2022 16:18:52 -0700 (PDT) X-Received: by 2002:a05:600c:4ece:b0:3a6:28:bc59 with SMTP id g14-20020a05600c4ece00b003a60028bc59mr923809wmq.154.1661555931704; Fri, 26 Aug 2022 16:18:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Fri, 26 Aug 2022 16:18:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] provide arch_test_bit_acquire for architectures that define test_bit To: Mikulas Patocka 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 26, 2022 at 4:10 PM Linus Torvalds wrote: > > Looks good to me, except I'd just do > > #define arch_test_bit_acquire arch_test_bit > > on hexagon rather than duplicate that function. Oh, except you didn't quite duplicate it, you added the "memory" clober to it to make sure it's ordered. Which looks correct to me, even if the "almost entirely duplicated" is a bit annoying. Linus