Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1055652rwl; Wed, 5 Apr 2023 11:06:49 -0700 (PDT) X-Google-Smtp-Source: AKy350b7GAMGXwnraXXQrbBKGW0sbpQ0rrhOcOty4Mx2XTIG3ohRuxJFe311k4O+QLuBbkVNaBMO X-Received: by 2002:a05:6a20:9295:b0:d7:3b62:3cf with SMTP id q21-20020a056a20929500b000d73b6203cfmr5750386pzg.54.1680718008873; Wed, 05 Apr 2023 11:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680718008; cv=none; d=google.com; s=arc-20160816; b=rV3A7VET6KWQHIg1FfhbcRhcM5qYh95OvKJ2Zdlw71sK9RSeyV/T25p2JXhsGEh+BC 5c6t9iEReF9U69a7/XFteHRmI/J4hc0n19bZDAZiGXx1l68xnegNnlEz3hszXvcZGEdk SzQBAf44tVEdB/fUw/wsgfZXEmNtcf8Tr7vJ2f5E0Z7NGCbF8FdbWF3O3cwGOQG3MZe2 ANjj+sTl8OQkoktmyF8MD23Q+9l2aSA4kvsKA2yVR2eUT12KeNoZePRvZ0n40iiehVLc g8pGdWw1ckg36UqBdRmot9RwwPJGO4jn6yb1//SGCs5/Dvu5bOG4HL2WYIaacYH7c4rV FtSA== 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:dkim-signature; bh=gEloZMKiPY1D2uy6BDKZ3KVBvuofLh8cMxXWNHEGRwc=; b=J1UdXM/v/34id6sfk/zXOFQEX2PTB5jsVqQrgJsbOwh6Opk4dT5HnRnMDlr9zTUtxl 0ilx4uEdinS0VfSlVozNlu6gLrjQyf5jQKnLTl+VN0AVsGjkBvMyOb1MDY1s6VKYGlYD 55oKp9ENGZ5opyKVAWfV0HqD+t9XhR3ttJd4Ra2dMTWPKYc9lwmm7CsM5ppW3bfEFiCE QYYM4NOagNt95JHEGzib+v+N0aE6T+60X5SHUTqH3r6kUxMuozzy5docAFcCd7/okIEj 8/CwIobCV6dK2TgfQZAwiiX1PX1kX8bllMXyY2XSIht5VGwrSDyIQhC0ExYbsXqgjZis SfrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=10uiDljO; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a63551a000000b004fb95c8f645si11970181pgb.392.2023.04.05.11.06.36; Wed, 05 Apr 2023 11:06:48 -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=@linuxfoundation.org header.s=korg header.b=10uiDljO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233742AbjDESGS (ORCPT + 99 others); Wed, 5 Apr 2023 14:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjDESGQ (ORCPT ); Wed, 5 Apr 2023 14:06:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2397AB4; Wed, 5 Apr 2023 11:05:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D197262AE1; Wed, 5 Apr 2023 18:04:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC7D3C433D2; Wed, 5 Apr 2023 18:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680717865; bh=obVhYxJKBBoA7HVqXFhkbOTlzAXaW51MKLppnaTtTb4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=10uiDljOReLp1iop28j6oN0VL6nRPn6EP8GxfDWQxjYGz7xXyvArePOBHCi4e+ETi PEsRdh2GAvXQMa/FXvHbh2HrdXwcpkh5S3P9ffRAvEVI9GtmrQThN83LtjtWeSzvFs 5+msqjbcp5NBFwLkkI6rhaoXN5UhpvT1IIF4chus= Date: Wed, 5 Apr 2023 20:04:22 +0200 From: Greg KH To: Wedson Almeida Filho Cc: rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , linux-kernel@vger.kernel.org, Wedson Almeida Filho , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long Subject: Re: [PATCH v2 03/13] rust: lock: introduce `Mutex` Message-ID: <2023040509-tamer-clinic-c14c@gregkh> References: <20230405175111.5974-1-wedsonaf@gmail.com> <20230405175111.5974-3-wedsonaf@gmail.com> <2023040554-promoter-chevron-10b2@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023040554-promoter-chevron-10b2@gregkh> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Wed, Apr 05, 2023 at 08:03:11PM +0200, Greg KH wrote: > On Wed, Apr 05, 2023 at 02:51:01PM -0300, Wedson Almeida Filho wrote: > > +void rust_helper_mutex_lock(struct mutex *lock) > > +{ > > + mutex_lock(lock); > > +} > > +EXPORT_SYMBOL_GPL(rust_helper_mutex_lock); > > + > > No need to ever unlock a mutex? Oh nevermind, mutex_lock() is a macro, mutex_unlock() is not...