Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1060727rwl; Wed, 5 Apr 2023 11:10:28 -0700 (PDT) X-Google-Smtp-Source: AKy350Zd3IGyjfDmyXfU9zaPDRsuTQMc7xwlZMAywBmxjOibCNMUN2wMmzv6mLz4GgHCaf+G8jYD X-Received: by 2002:a05:6a20:a724:b0:db:6026:4393 with SMTP id by36-20020a056a20a72400b000db60264393mr4564759pzb.59.1680718227891; Wed, 05 Apr 2023 11:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680718227; cv=none; d=google.com; s=arc-20160816; b=MaDi2UnAX0zwSilgYeRCZInde2xD3fyXqVbMrfwmdchE8BgNr6LEZIQ9W+XHVuW0eE ENhokIOx8aUT8rjJl+xkKb/ZPmJBuA2vBMMJEO38CUXYOajbEnyFcDCL1Fym79ACRb/b CreTQC7u0E3jsQkq/gKT1tmT6xx6Bfo8BdtFbKs2csjkUr+23mtv0xbenUwp10RXcrfr V7HdwJBSNr65J8EE4oa7ddbTQSEuYAp1IxJlXn6NAWzktN7e4eRtvAtBupZK39Ifk1Qy 7ZGM1JvKS1cO3zA+4BloFvdPp1qgmzB9KTZf0FLIMo7jxXENK52GuPV8JPD1eYauLgy7 0OYw== 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=QXor0xo5a8lpJyDNQQJlDgCPF4e7tGr605lbHo6FjP4=; b=nASlWEBait+o9WyL9wWlpjDj+fXie21zvmFGSVjDmxpxMtUFCena45xAiOSjrn2VdJ K7p4SMHMNN1rdfGF+MTO2IJBLBQGEtC/dVm0W3DsfJE2ra1j4/ji3knV+TwZSfqDxyFp YJgig6/qAnhh0sWdC9I3zzSMept7bLqwGsg5JHO6jQZRUOsK+ICIVhPE1ISShmUxc3AR BfgD/MixCWYXy9V5hoi1IGsdXJlwl/7lUhkC7IryL43bxJYY3MYXZ3gcx7U0ojw9j4X2 rqQDnGu9V2zPSygsz+ZLluV6ZXSh1SQUQ6M031m/8FYeBecVBJBa7hDOvt02m8Ac0H+j i/lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2LDOGmHK; 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 c69-20020a621c48000000b00625488ab85esi13018394pfc.4.2023.04.05.11.10.09; Wed, 05 Apr 2023 11:10:27 -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=2LDOGmHK; 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 S231230AbjDESJO (ORCPT + 99 others); Wed, 5 Apr 2023 14:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233949AbjDESJN (ORCPT ); Wed, 5 Apr 2023 14:09:13 -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 1EE817AB4; Wed, 5 Apr 2023 11:08:48 -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 0929E62A0A; Wed, 5 Apr 2023 18:03:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF733C433EF; Wed, 5 Apr 2023 18:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680717793; bh=OsCB65lowLOj8jUPEPOpRTKGMW9a2IEkVkWAQoDZ1MQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2LDOGmHKp+S+Azkxarow4ppeYaIRu2lohVI2KVIBxhNnj1fJFMHbiw0U2mYiNbeET Lhtt72c5v1Lc/lNf/zQHxOh3GidMe1/ekU/Os/3D0klSbG+zPlDoNRattoelnM7L6U 0uD7NGL03IFeo9JXVRVPJgeMQTyFl2vNAuIKdVYo= Date: Wed, 5 Apr 2023 20:03:11 +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: <2023040554-promoter-chevron-10b2@gregkh> References: <20230405175111.5974-1-wedsonaf@gmail.com> <20230405175111.5974-3-wedsonaf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405175111.5974-3-wedsonaf@gmail.com> 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 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? thanks, greg k-h