From: Julien Grall Date: Sat, 11 Jun 2022 11:21:09 +0000 (+0100) Subject: xen/arm: mm: Clean-up the includes and order them X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~570 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=53098ba58101f64b61c314ab8c5c95db798563e7;p=xen.git xen/arm: mm: Clean-up the includes and order them The numbers of includes in mm.c has been growing quite a lot. However some of them (e.g. xen/device_tree.h, xen/softirq.h) doesn't look to be directly used by the file or other will be included by larger headers (e.g asm/flushtlb.h will be included by xen/mm.h). So trim down the number of includes. Take the opportunity to order them with the xen headers first, then asm headers and last public headers. Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index bd1348a997..d40dd4e6c9 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -17,33 +17,26 @@ * GNU General Public License for more details. */ -#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 + /* Override macros from asm/page.h to make them work with mfn_t */ #undef virt_to_mfn #define virt_to_mfn(va) _mfn(__virt_to_mfn(va))