Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2741960imn; Tue, 2 Aug 2022 14:16:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQTVoIc1q2W9iuKYk3gbQhcbUmhttPNoz1BSzs3sS+e8Xfy0v0YW91oxnx4ey/XDzt7Ecu X-Received: by 2002:aa7:c485:0:b0:43c:c65c:e7d9 with SMTP id m5-20020aa7c485000000b0043cc65ce7d9mr22010120edq.301.1659475001264; Tue, 02 Aug 2022 14:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659475001; cv=none; d=google.com; s=arc-20160816; b=B7lAt16aZbeCnzIJfZA8RLiEJRyPw+gaBSs49GR9IGwFDWqA5KJ1kelbYEeUrmmJwg 9roYXtl6otwefKshrjWoeL93Ye3n9vlsvHQUHk4tMnKFeWVu+ZlKDMgKNZi9SAOTOYaY jXgro+8g7SXBJvBbO88NqA3B6XGk/ywcMyMx0kE0Z6g7R1zW6frGYD6REFPnr1SY5rlE hRjV3EaEvK3sv+vprJMzAh8xD2QtNAUMfbbyygQjfu0K0z912yRnlal+BGK7V2PX7mT8 Cqc02Vp8Czz0qLH876YKLM8GJhZ5t/XjjM+MA7Mm0EkSK6XIsKg8OyS3+PH3a8U13mWf xzCw== 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; bh=3GVUs+QSi7eRzqzPaiptheuyohg5wVNG8R4iP24zVoI=; b=Gk8jRTqafhN9UMhJvI8+ntMGwzOAK2lw51L0WQLF/GCDvqTvKvt5nMeH/WAdcXRG3z +BQzh5nbpaXAa5/nSkAasAwwyNZBIlghSoi5i3lN0EUvv2sPhsriaV8Dw5Uv2INW81Xu T4Yi1m2fdj7W2MOdwYBoPSPpaHIN4H2OH1mo+FtpykVe3IyNEre00iC7PUqzIHQwK51D 9DYMn18Rjju3IphV9vYMsG6mXknZBQT1hNitGScWcWO5jRGL7tH/Yz65YXJVC+IJO2yn sckeSPnTojsLy4InX954Ve8yrd9uyOumuKyzVXuVx3v7p9Tbk5NiezrnHT7gdhbIneRu mlfg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd18-20020a1709076e1200b0072edc70deb2si4328959ejc.624.2022.08.02.14.15.51; Tue, 02 Aug 2022 14:16:41 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232427AbiHBUEh (ORCPT + 99 others); Tue, 2 Aug 2022 16:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232040AbiHBUEg (ORCPT ); Tue, 2 Aug 2022 16:04:36 -0400 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1509B52FE1; Tue, 2 Aug 2022 13:04:35 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id v3so18235192wrp.0; Tue, 02 Aug 2022 13:04:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3GVUs+QSi7eRzqzPaiptheuyohg5wVNG8R4iP24zVoI=; b=0sDQyBYCb1tTHQm/FGM8LQdIqnClQjjesHduzzDk4CftIJFNpKOOXPPKalPVJ6tNKX smiZemcdP76OFAGpqv7P2ATtw6roOjaVFxszqWq85fCCYwE+tBCo5QHLW3z2H3XpDW5G 9PGu6kZvYaQBVMMy2zH6x17MEWPr8HeruisjtLi0B1vvHryj725m4/MFUfS78pww5UWG 9DXwhchg5mki4290LDNQfqCIBKA5WOFG9xCQVJmKXkttKbySh9/1jGH71Evp6xbx3H5H toiIKtsNtHA5sfHix8oqZ89KbEpjtEx6lxViJyLzwzavbx8aq8f+GqqaCWKzprSeM+rL /Y1Q== X-Gm-Message-State: ACgBeo2R3vAzes3N3deRXVaRj5+lGJBSYg+9NbzmR4JF4WUEzcrva+cR uvAHhWkbfoMOFBgezPA/aUw= X-Received: by 2002:adf:fb03:0:b0:21d:70cb:d6b5 with SMTP id c3-20020adffb03000000b0021d70cbd6b5mr13459341wrr.548.1659470673490; Tue, 02 Aug 2022 13:04:33 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id w10-20020adfd4ca000000b002205cbc1c74sm10281991wrk.101.2022.08.02.13.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 13:04:33 -0700 (PDT) Date: Tue, 2 Aug 2022 20:04:30 +0000 From: Wei Liu To: Konstantin Shelekhin Cc: ojeda@kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Wei Liu Subject: Re: [PATCH v8 28/31] samples: add Rust examples Message-ID: <20220802200430.qiyy2utts4lai3ac@liuwe-devbox-debian-v2> References: <20220802015052.10452-29-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Tue, Aug 02, 2022 at 05:07:56PM +0300, Konstantin Shelekhin wrote: > > +module! { > > + type: RustSemaphore, > > + name: b"rust_semaphore", > > + author: b"Rust for Linux Contributors", > > + description: b"Rust semaphore sample", > > + license: b"GPL", > > +} > > A minor neat, but ain't it possible to use &str here in order to drop > this ugly binary string prefix? Their types are different. One is for u8. The other is for UTF-8. Thanks, Wei.