Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1138318rwd; Thu, 15 Jun 2023 06:56:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52z9Tt5mYpvtTn3pMLOI/uqrCBEfbICbS9pZ+RcPT8w/57WINy2EoRCuUOpjIhsGg0ILWO X-Received: by 2002:a05:6a20:7283:b0:10e:d90f:35d5 with SMTP id o3-20020a056a20728300b0010ed90f35d5mr4796963pzk.51.1686837364429; Thu, 15 Jun 2023 06:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686837364; cv=none; d=google.com; s=arc-20160816; b=L1Qy7G9LOTllz9RfycXidvafZK/6b4rMF1oYrDVGPknFt2p8tnfKgFk0wZ9MpKcugF j/yJhRwIV0Ilfje55b4+SkpnbKu/WtPjRhRTh7/fXEA93TSCTenwk2HZNWwhRwx7aqaC qjKbDSv8dAdYchSI4pUbXn7kuVpANgi6poj10VZZ890nrmzPuPS18H+DdsmcARRpmW2Q JKtZMea3X/RgqF22ki+az3M21UpvecA/xQhhiMS2JThD5UGDy24KNCJcRSpmT4aQgkLp 0C28sE2XZH+HNicZF6N2bAOB1rR9y51MKS0DjwCiWS9CkOihc2iVCeVbmsjmHjBVl1A0 Nrmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gXGICQ50G65MHvELHZmzGRAZEarhLjbzAG5FaOgvnLk=; b=JdB+EiugFK01xqTgENv5YAE5Jt1dPQ4kbe2MwhkOlSenSaWiqUXveN/yUFitOo62oh SSZPbJPylkd4tIc2HSqm9Hh3HuvTVvkJEKWz9SCiIJQYWdjrGHcr0SYsbTrDiY4/gWDp MPt0gqNLNwv/3Uc6TlGvKYPwijLx0OAhoaotyzS0HFMRwY8lJtIj8cBfFTjnfcXnrhWI JWiBUShMYpMp3S0MRqiJ3Gxt64YCAF7/l9C+4oaXtvYJFLYR47u+PvmwEAcQmRfs+BJj RUHFlKjTltu3zJB8j90pmA+IAKhu+5J1nzwyQWpRNhcFcNbeyVqLkv718nrce1KweD38 0Mvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=TVq8vXX7; 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 p15-20020a170902e74f00b001b3cd6a8378si7801232plf.303.2023.06.15.06.55.51; Thu, 15 Jun 2023 06:56:04 -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=20221208 header.b=TVq8vXX7; 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 S1344314AbjFONeU (ORCPT + 99 others); Thu, 15 Jun 2023 09:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344127AbjFONd6 (ORCPT ); Thu, 15 Jun 2023 09:33:58 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4740430F2; Thu, 15 Jun 2023 06:33:41 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-39c84863e7cso4823623b6e.1; Thu, 15 Jun 2023 06:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686836020; x=1689428020; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gXGICQ50G65MHvELHZmzGRAZEarhLjbzAG5FaOgvnLk=; b=TVq8vXX7rBUuz1raSfavfMpyFMZdl/D0YFUzwlxrjAgFYRLapZtAol4AfXy8Sth7F/ KiuhbO6MEgfu0ptmk5jHIXTMISXJuPlan4DQAcq8el+1Eb2Ei6YxVwL8fCfdeZjcQe4b tYwvEnxtu8tiuEtREuEFoq2OKfEk8+AFBB51Yt53KVEJP3jC575PEM1FS6LbPJm4cjXh r5E6BbmOxPaXuOZOndJzNabzfnsHk22rwfpWH6eXtpizWq1tsPRxtIbna6Kj/ZlE22z1 7//effT7X6dAI8lr2ocinPekegaHt+31CT2WQ2saucHVUvbMGKgITT+BaxDWusf6j1w5 t17Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686836020; x=1689428020; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gXGICQ50G65MHvELHZmzGRAZEarhLjbzAG5FaOgvnLk=; b=GE56rj8aGvfSzaWqFEp8el4wfGf3HRAC1Cq6rPlhGkNDhtbAN27KUE7RpvZhNeI9hz H9COB3UmBNXLHTYMitkUNd6plWcw1pr0YX92soxYMnj9gD/LYiu/89BeaFHKjHFO2g/R K5sB8LR+zpMdHqPIQZld+KiJgTTv9ViqWhb+4z2f0yt2RejnDoXzIfSvpCgnlreHJa4Z 0ilTv+Lz4sikFNEgdy4ZM072o9QzNHCgrTKm53+lraJS3pu/2Yj+GLaGxO+Mget9tV8j 5c7gLqHXDK/L4Y7DMHcyeCcFdeHcflffTciCuBdM54mOTg351jNgirb7/8/y0DfD6PZu gKRw== X-Gm-Message-State: AC+VfDzoRwEA5FGRerYsdTGiKrPNYVSNnc4LD95XUfkQWSar0EIRv1h4 PXuLv4MPzTsSOtllfxGP1eWV275vGOg= X-Received: by 2002:a05:6808:1782:b0:398:465e:ec68 with SMTP id bg2-20020a056808178200b00398465eec68mr14760468oib.4.1686836020404; Thu, 15 Jun 2023 06:33:40 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id e19-20020a05680809b300b0039a531d9b92sm6850679oig.56.2023.06.15.06.33.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jun 2023 06:33:39 -0700 (PDT) Message-ID: <5835c052-c101-ebc1-3609-88d6e12f13ac@gmail.com> Date: Thu, 15 Jun 2023 10:33:34 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 1/6] rust: init: make doctests compilable/testable Content-Language: en-US To: Miguel Ojeda Cc: Miguel Ojeda , David Gow , Brendan Higgins , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , Philip Li , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20230614180837.630180-1-ojeda@kernel.org> <20230614180837.630180-2-ojeda@kernel.org> <2b4b23ce-316e-b998-7faf-e529b121a8b4@gmail.com> From: Martin Rodriguez Reboredo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 6/15/23 06:31, Miguel Ojeda wrote: > On Thu, Jun 15, 2023 at 5:52 AM Martin Rodriguez Reboredo > wrote: >> >> Little question, what's the purpose of `FromErrno` here? > > It was because `Error::from_errno` is `pub(crate)` in the `kernel` > crate. I should have added a comment -- my bad! :) > > If we decided to make it `pub` eventually, then this `FromErrno` hack > can be removed. > > Cheers, > Miguel I think that `FromErrno` should be made public the moment when more doctests rely upon it, until then. Reviewed-by: Martin Rodriguez Reboredo