Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3621073rwl; Sun, 9 Apr 2023 20:50:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvCNuBTLro49pkagH57qjITM90gabm6wZdNuoaHFHDlwgHdWVAvZLVVtpATIoRhTbzmjRV X-Received: by 2002:a62:61c4:0:b0:635:56c3:4bb0 with SMTP id v187-20020a6261c4000000b0063556c34bb0mr3802434pfb.27.1681098625757; Sun, 09 Apr 2023 20:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681098625; cv=none; d=google.com; s=arc-20160816; b=Jj5G2+uff0mD6+6oxZ+gdS8vlYAPlALQbuJlp/8DdS+RrzjgDu3DF1IwGBh6YaEKlB t6E/VnM+YFatUDEFuG6dACd9fyeSAxrdtQTLPI7xGWXkhy7gEzxOWvKa5Owei7ynivAA xSZ8eDfbfpRYQlkXpWqwkVxQ2787QYK0JweK+pS5ZaueXR+WSFsk+/I5JrxFxYFagCKD xgX1nU5071RA42uimlw/b8gIuGuOM9k0kfN314NUGoAe5/19fOQev0xq4/D9Bxr1jOR9 JRHcp2zxjBMPQeSb+i48EDNaedUS/M+uQi5/Bbeu8KLPYAn1b7GVJL1xZ8HOvP1JTuzc 7ZlQ== 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=aAEMO45BhOISY8Il2XgEX/kFiJjek2ES5jcqD/mIP3w=; b=WPp4xcDsaHDd25/LBzofq++2F4x0T9C67CYIiq0t9OqxDM4INeT5fhmr32LWKahRTW drYXc8/+5nhliQsSvSfmNNQ87qZSDPSs/3I1wp2m8rT+QAJesSekX2j4ONcrsLITzg6P +7u17O2jiXQql9H7omFdl/xmvv2eXjYXjAY+r18ktz7Im9ZwDtq/BKGHdHstM/L6JOCe dqK+Z48gUKPO7qZ7v4a7GApJZaDkQy1f5MvYKIA1OMT48t5nHRrV7QLolGHhK578hZUG W2Z8pGJ0K6sCJkDUk7eY+5po0hfXUsvNWEZcRdQ0gKOfKNdPM/R9l3BSWOllCYFm5cjj LZwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IkJgD55S; 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 v18-20020a63f852000000b0050bdfdf4a66si9712914pgj.147.2023.04.09.20.50.15; Sun, 09 Apr 2023 20:50:25 -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=IkJgD55S; 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 S229632AbjDJDnr (ORCPT + 99 others); Sun, 9 Apr 2023 23:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjDJDno (ORCPT ); Sun, 9 Apr 2023 23:43:44 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C34E42; Sun, 9 Apr 2023 20:43:43 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-54c12009c30so187074897b3.9; Sun, 09 Apr 2023 20:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681098223; x=1683690223; 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=aAEMO45BhOISY8Il2XgEX/kFiJjek2ES5jcqD/mIP3w=; b=IkJgD55SKcRru/KkoeHpgzFDWM0eSVn9wpWr+7PUiIyxX6bNjY8KYouplV3P+8+1+d Zr8u2+/CkL3eEwyzo4N/G48ZteVTuul3nFs+TnShDDmSctntBv0IrESBW7eHoJ+DWeiH 69mdSWFNV0b44z+4hCC0cPOvxgxh2M8RsyBiPlJETOBzEChoRQpaK+9H/CyjpMWBq2Lo UxF+ViHClT90L2Qj+vZcrX7C9uY1/lJJ5AhSaLl3neP+WryQzvrfIYrSPfyvEIohSKuK SzFVUgGKVHbrZcG9ZrcgZbKMlsFhoUpcM4mcsFA/tQ4ipB1A5h0ticvy+MqJwqp+Plvu HuSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681098223; x=1683690223; 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=aAEMO45BhOISY8Il2XgEX/kFiJjek2ES5jcqD/mIP3w=; b=XcVune/9fscvwwF4QgR4JrgshN/IARy6RiONKdekD7rShPh5QcWNQkU+m3+W42R1tN 5pZRFGJsAgfupTZDsAcuQWLR2N33sCglFtQG62kRwrhnGHlwDhLpRknN09osHypDtKXg kAAMPKkrZc80++ikFXNGb7ubaDZCGNdlWcliWxUENnygzxkUHpcn8fcPzbVGlBQ/ajSb v9LEyQ/F6LgmNqKVoCDMcec30DNXo1oROnwKNhhLkCJNQyQP6kNdWRKxJ3tbfoCWZMVY iB/UlMn0Yh6vbOoeAUty+3Uayh2bWf0AjpEuQ9lXQXnJi0ASgY0hYx5n8sVxD3RxOJo+ np9w== X-Gm-Message-State: AAQBX9ewuBMKSpgGYJYXaSqgQsfhOrru+8F0Gvi9tntAk41fcOWVHJPK sfDmG1B8CGq+lgGKVrMfMeSjAf7kw4JQIDdbfdRIHuyXlNNZsA== X-Received: by 2002:a81:ae17:0:b0:533:8f19:4576 with SMTP id m23-20020a81ae17000000b005338f194576mr5218650ywh.0.1681098222747; Sun, 09 Apr 2023 20:43:42 -0700 (PDT) MIME-Version: 1.0 References: <20230224-rust-macros-v2-1-7396e8b7018d@asahilina.net> In-Reply-To: <20230224-rust-macros-v2-1-7396e8b7018d@asahilina.net> From: Miguel Ojeda Date: Mon, 10 Apr 2023 05:43:32 +0200 Message-ID: Subject: Re: [PATCH v2] rust: macros: Allow specifying multiple module aliases To: Asahi Lina Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, Finn Behrens , Sumera Priyadarsini , Vincenzo Palazzo 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, Mar 23, 2023 at 1:35=E2=80=AFPM Asahi Lina wro= te: > > Modules can (and usually do) have multiple alias tags, in order to > specify multiple possible device matches for autoloading. Allow this by > changing the alias ModuleInfo field to an Option>. > > Note: For normal device IDs this is autogenerated by modpost (which is > not properly integrated with Rust support yet), so it is useful to be > able to manually add device match aliases for now, and should still be > useful in the future for corner cases that modpost does not handle. > > This pulls in the expect_group() helper from the rfl/rust branch > (with credit to authors). Applied to `rust-next`. Thanks! Cheers, Miguel