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 EACCAC7619A for ; Wed, 5 Apr 2023 18:06:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbjDESGR (ORCPT ); Wed, 5 Apr 2023 14:06:17 -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> Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@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...