From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA682168 for ; Thu, 8 Jul 2021 14:04:41 +0000 (UTC) Received: by mail-io1-f43.google.com with SMTP id b1so8316339ioz.8 for ; Thu, 08 Jul 2021 07:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I/S3NRH5MvOzKioZ525TdAlWqDf4xIm20TU+2IYUniI=; b=YlR/OFtau6mE3/kTCNTafHQCSiQBQCcWM5nH7l8q7bIBYbYX4ugvPpmJ8U4G68phBA +Z0v7Bldyz6R3oJRUx4R5HvEqzkI0HqrZIWZ1Gikcz2E60lIoc76XiXnttgJ07gEamHX iEkJn3i7wSZj7MASa6K3/rFsjiOsp/Q3XImEDeT3hRYu/pySWDvz24EnoeiGFLuR5iSS dB+UgGuick8D7ltUERwDbOxRBadc5rmkcJQNzmOHH2ga9H1Bx/QPtXPzJ1vL9JF9PMYj cQTcucFCXeK3orbBExAm4/t6jeJTBXMLy6JOjicDRnoNXr7ttqLNCOpmU1Xz29vqPFXu KFaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I/S3NRH5MvOzKioZ525TdAlWqDf4xIm20TU+2IYUniI=; b=gZ7y/ucLx9knOOEGoTEyOl7eeiXsflVSz/ha5gDZZeb/0FrlhfTAbfS+HeJWDnSDAh kjKySv/iPYQZOHiuPZmy+hHwA5JpyZrOS2a7yPvHGsYZt2VK4qsd0+Eq+4yLFXCZyNqB w/NwbeSpI77DXLP9f3WunRKwyPU3MlkvBTO6XLwoi/GWy+fiFw9xlj7JfymhoBfgx9h6 0uCSCi75g77IE80U7IoZKyme38R8+imTO4BZTmC3LGqeNUZzdZ9Z4laFD4Sn8TAeAwZA w6M7veShzPj79jIjG3Jrfs4ofUjxFDVBUYyul4cXbuHbQf/BX5OwLNQwWK9bKGvQPxTV WugA== X-Gm-Message-State: AOAM532MYmDDSFB0sZsvOfwakTLv/CeBeJxg/HcDpTKnPQkUxVvgJmnK SM6/AcPRIJJlgO6usxeFStAmeq4i3xAMC3uRxZE= X-Google-Smtp-Source: ABdhPJxEc7cffCmw5hcxTbfVbyWm/1xYKRn134eW8kaTerVnMSpMonmNNYepuSPLoOpTc/q3Rd7oVDA6AyoyDIfPbWg= X-Received: by 2002:a02:a48d:: with SMTP id d13mr18109536jam.28.1625753080998; Thu, 08 Jul 2021 07:04:40 -0700 (PDT) Precedence: bulk X-Mailing-List: ksummit@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1f2a62c19845e4602817c2130d47bbea02d04d1d.camel@HansenPartnership.com> <20210707203827.GI18396@quack2.suse.cz> In-Reply-To: From: Miguel Ojeda Date: Thu, 8 Jul 2021 16:04:29 +0200 Message-ID: Subject: Re: [TECH TOPIC] Rust for Linux To: Geert Uytterhoeven Cc: Wedson Almeida Filho , Jan Kara , Greg KH , James Bottomley , Julia Lawall , Laurent Pinchart , Linus Walleij , Roland Dreier , ksummit@lists.linux.dev Content-Type: text/plain; charset="UTF-8" On Thu, Jul 8, 2021 at 3:43 PM Geert Uytterhoeven wrote: > > So what happens if this fails? Just in case: are you asking out of concern for "Rust panics" etc.? The upgrade call does not need to panic, they can be fallible; e.g. the `Weak` types in the Rust standard library return an `Option`. Now, what the caller does if the upgrading fails depends on who the caller is, as usual. Cheers, Miguel