Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2411381rwl; Thu, 6 Apr 2023 09:51:19 -0700 (PDT) X-Google-Smtp-Source: AKy350ZZC69KqqM3u18wARLPJCo2rerPJiDTNd77JDgJ9IsvAW2A4QFveUm9wO74z9rXn7uZpCmA X-Received: by 2002:a05:6a20:ba2:b0:cc:d7ec:b7c with SMTP id i34-20020a056a200ba200b000ccd7ec0b7cmr194071pzh.4.1680799879552; Thu, 06 Apr 2023 09:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680799879; cv=none; d=google.com; s=arc-20160816; b=P9At3cCEJjxrQ+kI5ib8RUyz/42KaKpvcCwLn8VLhjnDZ80nWlgODjxUgo5oXM48iF pafadqR9WxjMYKFI6QkEToLq9+pCE1iMpsncoGtcTQPYGaKfHspv+piiI171rPPO59U6 eOrV85PIHU4R2NS21PYBLS+NnQX9GLrov6WIgLbvfHjBGDVuE5fNa+jMPl1fEbspU2NX lpq/Ig0GprHHvc+Wi9JXk1sbEf73o3xbhCZW5jTdlKp/7DrpdkQMgpaq9KnMkm8ywXRd ss6DULY6A864yzuxn6djL/6D6Krdde9bd+WgTviO+g90stUX9r7htTZxGuPLDGWcXXMu tuLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4ABhLIEKILe7XTgIgQAZah/jshGbXdlYAiuCyxrHmZg=; b=F/VUy+NiMPqInm8W5Rlzc8f+x/yAHKd8mxUas/7mpCtKKI2LHw0WRY461tf7uRdm29 pCgG3bYjcFpEVPtwv2pQ9oQT4KTC/zRZbyK+04nWTb70z4gEWug9mM8Mo2nZpEK2J9q0 VmP9Ll/bp66Y22kMGlsFslfcMmMKZrwQjx7e7Uqos0ff4RXDKmx5wbWPxYksxMVcNlkV dBYVzIoY/qkolKUek+siSCKtbUvDeOF9jcR8woKPPx/ZDkJQkTkAqE753fdyX/IYKjDm YPu7NmMUYKw8qDO/hWBAMJXRxqAVTZboNUv+3z8STX60AzYJWvwhukrq0VP9gTGqT573 M++w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pIRhLkgM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a65480b000000b0051352239dc2si1554453pgs.839.2023.04.06.09.51.08; Thu, 06 Apr 2023 09:51:19 -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=@gmail.com header.s=20210112 header.b=pIRhLkgM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239247AbjDFQZY (ORCPT + 99 others); Thu, 6 Apr 2023 12:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238265AbjDFQZU (ORCPT ); Thu, 6 Apr 2023 12:25:20 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1803C22; Thu, 6 Apr 2023 09:25:19 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-54c12009c30so36436537b3.9; Thu, 06 Apr 2023 09:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680798319; x=1683390319; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4ABhLIEKILe7XTgIgQAZah/jshGbXdlYAiuCyxrHmZg=; b=pIRhLkgM5YW5LNV9EUvHam/4RiGnJ9NnJaq+dN9VZHwwY9WLanS0moz2Lz9gNKSmkk qNlSeKxduwRlsbBKRovd6QoArIIdSEpx0okoyDZjf/v+RaI7XfxeEFKTdPW06cfHhoSA 8uVnOjxWFGYo0j/nibJx1AzRmxyUbCVVoh1XVul94lbN1eFK465h+JuOSDWPpohDSdNn yoZjT/bu/4V2HVzgU/tqpIOnudFvEvI5B74QpPi9M8jYF/VRiSZwC5yrfwIU8scvVJuI NuqCtNwKBxZNCaGUPe/myZJKbE+eAoMJIC5oLcZt8u84b2f1cCyHJrQF06tmysfGdOpD D1cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680798319; x=1683390319; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4ABhLIEKILe7XTgIgQAZah/jshGbXdlYAiuCyxrHmZg=; b=RQDi6vwqsxAhw04zafgEdQFLknh3zK3Y4kNlkivdOWRuKqObyXEEh8Lv3CzA7vwIH5 86k7Bcwqhr0kaZlQd9GUA6MU81yAGUFTadS7jY3mkisOHHVvDXnMNKEC0n6oxxPQ/tni IpKwdyrRMCHw9o2OL97y1K+tGEvCKNX25Q+wbyZ0N+YfuiHwENFFhcchakkIBg+Gksc/ 67GL1dxJNoftIK5BaIgHlheWSKkI878Hk+TOC0bMeep60yzBCSc1Tlh5lJkzmEcsh5MZ 4vJ5cm4elvDjWdIpeO9YPFHDuQmPZzqP9bk7Y27Tv/Y7F05FncfoLxoBV0mGzKwFqCWj vp9g== X-Gm-Message-State: AAQBX9f1w8ddG1J7Vqkv+3UlLXu3a5toGA4oXyxYDz5dW1yKkKdMebUW WBYhFYbHK7Bt0aad3HKjv6Q+HjN4q6JlQnfvvQY= X-Received: by 2002:a05:690c:714:b0:54c:88:64a1 with SMTP id bs20-20020a05690c071400b0054c008864a1mr2842085ywb.0.1680798318772; Thu, 06 Apr 2023 09:25:18 -0700 (PDT) MIME-Version: 1.0 References: <20230405175111.5974-1-wedsonaf@gmail.com> <20230405175111.5974-3-wedsonaf@gmail.com> <2023040554-promoter-chevron-10b2@gregkh> <2023040509-tamer-clinic-c14c@gregkh> <20230405191826.GA365912@hirez.programming.kicks-ass.net> <20230405202932.GG365912@hirez.programming.kicks-ass.net> <20230405204942.GH365912@hirez.programming.kicks-ass.net> In-Reply-To: From: Miguel Ojeda Date: Thu, 6 Apr 2023 18:25:07 +0200 Message-ID: Subject: Re: [PATCH v2 03/13] rust: lock: introduce `Mutex` To: Marco Elver Cc: David Laight , Peter Zijlstra , Wedson Almeida Filho , Greg KH , "rust-for-linux@vger.kernel.org" , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , "linux-kernel@vger.kernel.org" , Wedson Almeida Filho , Ingo Molnar , Will Deacon , Waiman Long Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 Thu, Apr 6, 2023 at 1:22=E2=80=AFPM Marco Elver wrote= : > > For macro to inline function conversions, the most conservative option > would be __always_inline. We've also seen things go wrong with > "inline" only paired with various kinds of instrumentation. > > Can bindgen deal with "static __always_inline" functions? If you mean the new feature where `bindgen` generates wrappers automatically, it seems to handle them given `__always_inline` =3D> `inline` which is what I imagine it looks for (I assume it does not care about the actual attribute), though I haven't tried to use the feature within the kernel yet. Cheers, Miguel