Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1007106rwb; Tue, 27 Sep 2022 07:19:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6q9ERQyYa4M5gg8YXTeyoFfjEEqR+tHUhLyQjMBjztyKsP26LNv4rfmN+9s+OCR6VNE9EI X-Received: by 2002:a17:906:845b:b0:770:86da:9702 with SMTP id e27-20020a170906845b00b0077086da9702mr22221830ejy.244.1664288372336; Tue, 27 Sep 2022 07:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664288372; cv=none; d=google.com; s=arc-20160816; b=Wv/lfyZmK3JoQlugKc1lizdqdig0VBoOvoO74AEPkdh2MGJB/ZEFMiTGxE4Wl9b++5 WkagbrIfLG8EtJT5AP11zojz7Rz3cI/ZEGrqfzdMj7etL5VinT7w1qDT71s82GDF0Ohl 8ZL8ozqHQvIi4vYETeSXzy/bzpKdfRWxPUCvoe9UylVk016zsvoPSvtbmOtFcjQiBQn+ ehDyyt5fSIBer6gHWp6hr+KMGfYPTobksXghZi/TiFyL8ku8l+TLoljTqumDGayYxBc5 QO+JOVtTOXSvxEN6QiOGSlyy4EmTLjzx6Qo0Ubcj60v5KNy2hluR2rNKLlAtKvecv4bL qGTw== 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:dkim-signature; bh=ORDS3U/iMFjniFzoiMs3SfBZCzS6AWr1bi/tp1fhIHw=; b=GcIKtiMRhNZqm615rQAkizzHEWTyTotO5pPjL7FMwUzqZDiBFbZJ7zlldN0OrA+/PY MIf3wcl9gUawjtThAGo7ipFFEiTq6QyTgPBzlIURUkVZTC8kxM5vQUM3vLjmvOAfBb0H /pEOQTeYnOBMJPq+yrfIzl82LIqqoAvgM4AU5m8mEL/1cYsmB/hHCdz/fuvLmJjiBtKn OW+iIbd4mB1nPhJqDsFZZjWcQAWvpi92qre1sMGjaMT4gGxI2dqoY9pbngLzKnjMQ9ff gc+fEt5O2qFXtGkdFEOM7oPYMWXNhFjRVysZyQH0H5sEPXSittwdrar5hDtG781P+gZO gs1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=Dw0itN2Z; 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=yadro.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a50c44c000000b0044dbb9afe1fsi1633769edf.467.2022.09.27.07.19.06; Tue, 27 Sep 2022 07:19:32 -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=@yadro.com header.s=mta-01 header.b=Dw0itN2Z; 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=yadro.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232873AbiI0NsP (ORCPT + 99 others); Tue, 27 Sep 2022 09:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbiI0NsO (ORCPT ); Tue, 27 Sep 2022 09:48:14 -0400 Received: from mta-01.yadro.com (mta-02.yadro.com [89.207.88.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC441FCA6A; Tue, 27 Sep 2022 06:48:12 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id E2B8941207; Tue, 27 Sep 2022 13:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= in-reply-to:content-disposition:content-type:content-type :mime-version:references:message-id:subject:subject:from:from :date:date:received:received:received:received; s=mta-01; t= 1664286489; x=1666100890; bh=w3Kw4XLDtH2wwQmuL/OCBaR7NpeKaBFnp0N szIMowAk=; b=Dw0itN2ZVuGYy/y0Szazu/MAo1dCH2lbagbJtraAY3UJg0uwCno WHgwW83yCK1PaP2mi/yVRkkQ6tZ2DMCyTrSLs+waLOrlBnuvHInIVdDBTqbA9vB+ sAA74wzhRZ5ZYzs0UvRyHmaajKgCpUuwIml1gXAgRDGZt+GviOXwhbU0= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PqYWjEWmNHtU; Tue, 27 Sep 2022 16:48:09 +0300 (MSK) Received: from T-EXCH-02.corp.yadro.com (T-EXCH-02.corp.yadro.com [172.17.10.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 4E7CB41203; Tue, 27 Sep 2022 16:48:08 +0300 (MSK) Received: from T-EXCH-09.corp.yadro.com (172.17.11.59) by T-EXCH-02.corp.yadro.com (172.17.10.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Tue, 27 Sep 2022 16:48:08 +0300 Received: from yadro.com (10.199.23.254) by T-EXCH-09.corp.yadro.com (172.17.11.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.9; Tue, 27 Sep 2022 16:48:06 +0300 Date: Tue, 27 Sep 2022 16:48:05 +0300 From: Konstantin Shelekhin To: Miguel Ojeda CC: Linus Torvalds , Greg Kroah-Hartman , , , , , Jarkko Sakkinen , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , "Sumera Priyadarsini" , Gary Guo , "Matthew Bakhtiari" , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Boqun Feng Subject: Re: [PATCH v10 10/27] rust: add `macros` crate Message-ID: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-11-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220927131518.30000-11-ojeda@kernel.org> X-Originating-IP: [10.199.23.254] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-09.corp.yadro.com (172.17.11.59) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Tue, Sep 27, 2022 at 03:14:41PM +0200, Miguel Ojeda wrote: [...] > For instance, the `module!` macro that is used by Rust modules > is implemented here. It allows to easily declare the equivalent > information to the `MODULE_*` macros in C modules, e.g.: > > module! { > type: RustMinimal, > name: b"rust_minimal", > author: b"Rust for Linux Contributors", > description: b"Rust minimal sample", > license: b"GPL", > } [...] I remember that there was a switch from &u8 to &str on master branch a while ago. Why this patch was reverted? Strings are really better here.