From patchwork Wed Apr 26 20:49:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Miculas X-Patchwork-Id: 87981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp498329vqo; Wed, 26 Apr 2023 13:51:25 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2UXaRedado/KHI9yx0LDVUb2R8kLhPAIVPZnlHChIvwbOQ32mRQrjeHCIx1N1xSLRMj3y X-Received: by 2002:a05:6a00:a13:b0:63b:68bf:f764 with SMTP id p19-20020a056a000a1300b0063b68bff764mr34078166pfh.7.1682542285196; Wed, 26 Apr 2023 13:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682542285; cv=none; d=google.com; s=arc-20160816; b=oUvaXES2fcdGydiGOcTA1xXL+nEvmJAUZDIXy6kDBRClN6vXD6ZRsRoSqj6I0FNmfb FVy1+bwcrjq2J6EuRgphmeL6LGrigyBH+LmyV92aw5NeZqLhmj2rDduhioQZq6Ieseg2 eT0wD+ibDLdIixTO+XZFN9AaL6m+jLIi+aDtho73O8wfun+anp7zKt29kF+ZS+YPEOmM /Ajwni064edK5N64fwTvS5sSqy3gdCydPuiQMCArwtITwE2bc/nfsS5OYT69PNtP0nrw QvqfkWC8STwEDMOY+fyooP8/RFF9/unv0q64J9G7fqRAQjF8hIzIi/XBo6Djd9MRIGck Cp6g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s5I68jFKupvDf60min4MSAdXFgP9QtQJBXmgTj7l/fM=; b=uQQrW5r8cj2UtSakAaVY+m9mdbkrVD4Bz+zfzrpa1paQBUjH7qCypAkSszEMomzYn1 aiULrOV/CFPm7zrNGhM2pWoJUiwirg5+aeQmvXNBV4aWhL0W8PrUiEzCIK77sb75y/q6 IytAPSmI9Ro3ZJd8eQb34xCW3uf4fUZB179I86ZSpkQ5up1tGbKsNHI/lh0Whrym3dEc bg6AIurBI6Y2DeuoUE0tvIKiLZf5RK/LKXYW1/OY2oi2UFbO7+BsQwVhB9G6F/t3Xd2r WdFv+p1JMkdKx6/tmVXmDSluvzyn3jST761HJv9Wc4Apm5PtFERZ569gqvVUGwmagaqn /rrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=by0kjwrr; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020aa794a9000000b0063b64e61649si17174230pfl.6.2023.04.26.13.51.10; Wed, 26 Apr 2023 13:51: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=@cisco.com header.s=iport header.b=by0kjwrr; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239900AbjDZUtu (ORCPT + 99 others); Wed, 26 Apr 2023 16:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239959AbjDZUtr (ORCPT ); Wed, 26 Apr 2023 16:49:47 -0400 Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D2623C15; Wed, 26 Apr 2023 13:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1121; q=dns/txt; s=iport; t=1682542173; x=1683751773; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZbVNXlIv8G5b2W+u/CXT4H6oOP5oKHIlM/cd0euePXI=; b=by0kjwrrhmPt/+n8NMmGFg4EhbREfEE+KG9rbO1v1UWPpN9x7oR4ePmI SMwm5LZ7AY3d7VMQHt4R2+xYciXMl5p0okKDDqwBNdSA/U6k0WvZWEhdL DpDnbtt9KF0aSd/39Ca4RZKgIEFok4jmcSCv8TFDi6soyfp5mOEp7qMEy A=; X-CSE-ConnectionGUID: ZAQgjrNlTbCMw4RSGzqICw== X-CSE-MsgGUID: 8DPdC6ZmQyCqMKY/NAvaJA== X-IronPort-AV: E=Sophos;i="5.99,229,1677542400"; d="scan'208";a="7233052" Received: from aer-iport-nat.cisco.com (HELO aer-core-10.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 20:49:31 +0000 Received: from archlinux-cisco.cisco.com (ams3-vpn-dhcp2960.cisco.com [10.61.75.144]) (authenticated bits=0) by aer-core-10.cisco.com (8.15.2/8.15.2) with ESMTPSA id 33QKnOPF053840 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 26 Apr 2023 20:49:30 GMT From: Ariel Miculas 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 Subject: [PATCH v3] rust: helpers: sort includes alphabetically in rust/helpers.c Date: Wed, 26 Apr 2023 23:49:23 +0300 Message-Id: <20230426204923.16195-1-amiculas@cisco.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764273459282222624?= X-GMAIL-MSGID: =?utf-8?q?1764273459282222624?= Sort the #include directives of rust/helpers.c alphabetically and add a comment specifying this. The reason for this is to improve readability and to be consistent with the other files with a similar approach within 'rust/'. Suggested-by: Miguel Ojeda Link: https://github.com/Rust-for-Linux/linux/issues/1003 Signed-off-by: Ariel Miculas Reviewed-by: Martin Rodriguez Reboredo Reviewed-by: Gary Guo --- rust/helpers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/helpers.c b/rust/helpers.c index 81e80261d597..73c01db0c828 100644 --- a/rust/helpers.c +++ b/rust/helpers.c @@ -16,15 +16,17 @@ * * All symbols are exported as GPL-only to guarantee no GPL-only feature is * accidentally exposed. + * + * Sorted alphabetically. */ #include #include #include -#include #include -#include +#include #include +#include #include __noreturn void rust_helper_BUG(void)