Message ID | 20230425202848.261139-1-amiculas@cisco.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3655620vqo; Tue, 25 Apr 2023 13:35:16 -0700 (PDT) X-Google-Smtp-Source: AKy350YTNqHCF7nCV8D9shRXY0j3CMHSuKYOhe1EzEHe90gTgxnKRerQkDZpvrnP+oDGKU9qJBkE X-Received: by 2002:a05:6a00:24c9:b0:624:2e60:f21e with SMTP id d9-20020a056a0024c900b006242e60f21emr25738728pfv.29.1682454916316; Tue, 25 Apr 2023 13:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682454916; cv=none; d=google.com; s=arc-20160816; b=j6R+x1uZvISnzHIqZVVVkJ3Lf71l+2Nk5rqQxUC1Lqlko+ts4bqUONgrbVVVsA780u T/kiOO9Hxlz/FTWa5hNWxbrrBsRoaN7nwj5/Hop/bc9/c3Mfq7v9TgADXek274PA+lPK nGGhhQQGeAUaphv9dMqAY2ghfdEMBO/POzmXmup0xs5Wocb8OTB99D0zTEOo4YGcsFkw huASIvVqGrMeOGsdRx6wYZxeKcwcUKYhbnZ3152VXgOHxCXinOI4DUhNoBMgYKlayOne /jlg1Ps5y6Q6S2FS3WCvJmB++ye9sKDs7GUfjMXn9U3z5XB2j/K5UYHzi7i5R2IAarrL y2lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Z3DoJzuoAqhNjvSUCYmCLbH+X+jsvgK0x4ldD98bDkU=; b=KFHVHKsLjTfr31G6G/v4I4umJdHyIA3RZt1b3qDZQEi58HYNfeV1fZzslbQZPiVIE4 6ULgbU0CwkaN/jl/3sZHxfV2lJzcBd8WjlH5j3279YxX08O4jxgAUGdvtUbzcShNX3T/ scEiZA94u6TPiWItBBNNqKIKnWgkH41IxxIhaO5AQSaO+kAGS3LGiZVhFb7Ohd5yemfx OV4BJP2iDX9iDQw1nHJ6wEX7bwEoz/q4kllLQhh6Tgcfz+qwZZZ3OFnhqNryD7QcCXm+ c+KtWa0wFSewkdnIZxrXUDocP+UZ8gxHMzS2CkQGpsEkwddvVI7D1D5b47QDf2kIbW+Y 847g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kYLBOIZl; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a63e843000000b0051ba9b9c3f3si10537351pgk.321.2023.04.25.13.35.02; Tue, 25 Apr 2023 13:35:16 -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=kYLBOIZl; 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 S232164AbjDYU26 (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Tue, 25 Apr 2023 16:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbjDYU24 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Apr 2023 16:28:56 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF802D32E; Tue, 25 Apr 2023 13:28:54 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-2f87c5b4635so5650596f8f.1; Tue, 25 Apr 2023 13:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682454533; x=1685046533; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Z3DoJzuoAqhNjvSUCYmCLbH+X+jsvgK0x4ldD98bDkU=; b=kYLBOIZlJqw0U+oVS3BBAqthHyzo2Pox3BNqe26Or2d9A0cq/xtk1zz4dpqZ840v/X za/nkpFq40GvgK+ysqYcBSWXAososJPuaGrQiD+APEKvJi3L/WRKQnWmWwr8dPSCUkwr l+kGRF38XY1aczDSom+ydwAYCs3p8YhJpfZlBXdhyJe57jPp/k8E7BwmghnGgkR8npM5 KyKD+yk1p3u2Rs1cQpuRe5sJf/KUrshxkx2uXFOT960j7bs6y85QdCOA/I5N0xHmKWUg x/1pcyz0tl9Tkhs0+xkuua67GjY1ABru80Z1V572dC4gSwq7UscM5OEBtFMvXlH3EmIE SxzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682454533; x=1685046533; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z3DoJzuoAqhNjvSUCYmCLbH+X+jsvgK0x4ldD98bDkU=; b=TKBlHm7qTI2Wt3WEeP+IHVRstR10IZk7gtJbUyGnfyNgvWNghqQQg3KLWd3vNFfBOt G5Y+MwL2D1wcGohIQ5GTbAdOS6fZibmmjgWxnY8PJfJcQTzUnfQEiJCxAXd+zWGWUyT7 tRc9emJQIwn8YqeAmxSJ7bC6pAoBT2EBDxVIFcUXFuY3+31+aVKT9WoDukkXfvun8Vd/ lOQPnen3dMs7dAMBMP3VvEQc6Bs7KC/izXDaa/hw8+9moAcosVuXY6ANhga/6LXxOAVG /x7sXXLaS/WMnFxAIvW+VjZARUO+0g5MlFuy4Z19g3shYzcCx+D9OBJZZCsf7neJKCEe /vNw== X-Gm-Message-State: AAQBX9dLj23PKG2jNg4i3+tBg3xERBl+rB1j+Pvm/BB1d+9W3hW4OqYu rhNi8rGM+Ktk1LacBVK8YBy8o70FLUrNYA== X-Received: by 2002:adf:e952:0:b0:2cf:e74f:2957 with SMTP id m18-20020adfe952000000b002cfe74f2957mr13495464wrn.33.1682454532774; Tue, 25 Apr 2023 13:28:52 -0700 (PDT) Received: from localhost.localdomain ([2a02:2f0e:c07:300:175c:44ef:f037:8f88]) by smtp.gmail.com with ESMTPSA id m6-20020a5d6246000000b002feea065cc9sm13795739wrv.111.2023.04.25.13.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 13:28:52 -0700 (PDT) From: Ariel Miculas <ariel.miculas@gmail.com> X-Google-Original-From: Ariel Miculas <amiculas@cisco.com> To: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, benno.lossin@proton.me Cc: Ariel Miculas <amiculas@cisco.com> Subject: [PATCH] rust: Sort rust/helpers.c's #include directives Date: Tue, 25 Apr 2023 23:28:48 +0300 Message-Id: <20230425202848.261139-1-amiculas@cisco.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764181846253558975?= X-GMAIL-MSGID: =?utf-8?q?1764181846253558975?= |
Series |
rust: Sort rust/helpers.c's #include directives
|
|
Commit Message
Ariel Miculas
April 25, 2023, 8:28 p.m. UTC
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1003
Signed-off-by: Ariel Miculas <amiculas@cisco.com>
---
rust/helpers.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Comments
Hi Ariel, On Tue, Apr 25, 2023 at 10:28 PM Ariel Miculas <ariel.miculas@gmail.com> wrote: > > Suggested-by: Miguel Ojeda <ojeda@kernel.org> > Link: https://github.com/Rust-for-Linux/linux/issues/1003 > Signed-off-by: Ariel Miculas <amiculas@cisco.com> First of all, thanks for the patch! These tags look OK, but if you want to attribute the patches to your Cisco address, could you please send them from that address? Also, the commit description is missing. In the kernel, we give the rationale for a change and describe what the patch does for every commit. Please take a look at `Documentation/process/submitting-patches.rst` and try `scripts/checkpatch.pl` -- it can point some issues like this. > +/* > + * Sorted alphabetically. > + */ Please join this comment with the top one, i.e. please do not open a new /* */ block, like it is done in the other file mentioned in the linked issue. Cheers, Miguel
diff --git a/rust/helpers.c b/rust/helpers.c index 81e80261d597..59a23b1647fb 100644 --- a/rust/helpers.c +++ b/rust/helpers.c @@ -18,13 +18,17 @@ * accidentally exposed. */ +/* + * Sorted alphabetically. + */ + #include <linux/bug.h> #include <linux/build_bug.h> #include <linux/err.h> -#include <linux/refcount.h> #include <linux/mutex.h> -#include <linux/spinlock.h> +#include <linux/refcount.h> #include <linux/sched/signal.h> +#include <linux/spinlock.h> #include <linux/wait.h> __noreturn void rust_helper_BUG(void)