From patchwork Fri Dec 16 11:48:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 13074951 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E700CC4332F for ; Fri, 16 Dec 2022 11:49:09 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.464425.722822 (Exim 4.92) (envelope-from ) id 1p69D3-0003kq-EQ; Fri, 16 Dec 2022 11:49:01 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 464425.722822; Fri, 16 Dec 2022 11:49:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1p69D3-0003ke-B5; Fri, 16 Dec 2022 11:49:01 +0000 Received: by outflank-mailman (input) for mailman id 464425; Fri, 16 Dec 2022 11:49:00 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1p69D1-0003V6-Vy for xen-devel@lists.xenproject.org; Fri, 16 Dec 2022 11:48:59 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1p69D1-0002Ck-IE; Fri, 16 Dec 2022 11:48:59 +0000 Received: from 54-240-197-232.amazon.com ([54.240.197.232] helo=dev-dsk-jgrall-1b-035652ec.eu-west-1.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p69D1-0004sN-Ac; Fri, 16 Dec 2022 11:48:59 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=X62OB5zEH/tDpewvEhcpco/a600UQZqosHxduopbkeM=; b=HPVAWQs2Y10cVfCLowvI46rn4J Rk7SZE68vWXFpoVTrvipRP1OoMIpQftR34TIzujyKous+0/kj9v44h+lVFnSmLeVgl+5bjWuUBA/6 SO8fPL6Zzkj2xrK43va6J4T8CBABVMYS5MLTcfS2wJyZ2YYu3acL9yx/f982YCkmSJ7k=; From: Julien Grall To: xen-devel@lists.xenproject.org Cc: julien@xen.org, Julien Grall , Andrew Cooper , George Dunlap , Jan Beulich , Stefano Stabellini , Wei Liu Subject: [PATCH 01/22] xen/common: page_alloc: Re-order includes Date: Fri, 16 Dec 2022 11:48:32 +0000 Message-Id: <20221216114853.8227-2-julien@xen.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221216114853.8227-1-julien@xen.org> References: <20221216114853.8227-1-julien@xen.org> MIME-Version: 1.0 From: Julien Grall Order the includes with the xen headers first, then asm headers and last public headers. Within each category, they are sorted alphabetically. Note that the includes in protected by CONFIG_X86 hasn't been sorted to avoid adding multiple #ifdef. Signed-off-by: Julien Grall ---- I am open to add sort the includes protected by CONFIG_X86 and add multiple #ifdef if this is preferred. Acked-by: Jan Beulich Acked-by: Stefano Stabellini --- xen/common/page_alloc.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 0c93a1078702..0a950288e241 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -120,27 +120,30 @@ * regions within it. */ +#include +#include #include -#include +#include +#include #include -#include -#include #include +#include +#include #include -#include -#include -#include -#include #include #include -#include -#include -#include +#include +#include +#include +#include + +#include +#include +#include + #include #include -#include -#include -#include + #ifdef CONFIG_X86 #include #include