From patchwork Fri Mar 28 13:44:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 14032017 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 8E100C36018 for ; Fri, 28 Mar 2025 13:45:04 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.930674.1333349 (Exim 4.92) (envelope-from ) id 1tyA0w-00089l-BB; Fri, 28 Mar 2025 13:44:50 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 930674.1333349; Fri, 28 Mar 2025 13:44:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tyA0v-00088S-Tv; Fri, 28 Mar 2025 13:44:49 +0000 Received: by outflank-mailman (input) for mailman id 930674; Fri, 28 Mar 2025 13:44:48 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tyA0t-0005Dp-VE for xen-devel@lists.xenproject.org; Fri, 28 Mar 2025 13:44:47 +0000 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [2a00:1450:4864:20::430]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id cfabb72b-0bda-11f0-9ea3-5ba50f476ded; Fri, 28 Mar 2025 14:44:46 +0100 (CET) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-39129fc51f8so1577889f8f.0 for ; Fri, 28 Mar 2025 06:44:46 -0700 (PDT) Received: from localhost.localdomain (host-92-26-98-202.as13285.net. [92.26.98.202]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d8314f5c6sm73339085e9.40.2025.03.28.06.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Mar 2025 06:44:45 -0700 (PDT) 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" X-Inumbo-ID: cfabb72b-0bda-11f0-9ea3-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1743169486; x=1743774286; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YPiphnUaO7ugL9sM7Fivw+OCXGn6oQ+TuuGwtrqgEik=; b=WXcOrQFZpy4MQo4bk+bL7Ts+DpmuFbK4OUuHFl9eX9Yg1nT4cohfuz3dqCbPSk6/x5 h8gHIB2mgzbr3NNQx8vnSCHeZXHdjBcHj9y6KVRgfzIjrF4pnKemFX4DMnwWrCgPnZdw 1lmAINTyMFE9F8KMZ1JRrwb6GnGou1syl3wQs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743169486; x=1743774286; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YPiphnUaO7ugL9sM7Fivw+OCXGn6oQ+TuuGwtrqgEik=; b=xCgslDTE5sKDxSJvfqcUSOIapsvikPalVoM8RmwhpkZZKdEwRedgL+z3/nka/O8nen EcGju3X16g8tYpjTDBQlqJahW69/v2lOqgmXTc3orbOiLW7V1CVDjYSjyKGx12XibDzr iGSgkKYUh8lqsS66tUnz2LLw6L4nzV4ugDhRCwOp8y7uTS6o7uOqFNUEyy6UAI3O90fc NniIfWNzUw/rWszLEis+eXTb83GA6sATZZpHn4BAP3aCjNKJvHQajyrxebA78MMH2iDp R+4ggqI+wWfw61izBWnvBLfRkaKKP29NYsHSH2KjbzKZQP8qPMmV1nzfnL+UNmUgLPZQ Mh1g== X-Gm-Message-State: AOJu0YwneMs19WW3aWItEsrBfzIATLs5Trc5d0mibf2B8a/QOKV8eUpw q743LrBOLDfFVsaaYoY/m0MFBqPfnsVuko96K59WPofHFrWZTLi/cGc2uySDaNdtpODvhelHmKw ++sQ= X-Gm-Gg: ASbGncsHdHicOo6Nk40DkHp13HjPC3Dg9CMo9wfHx6+espRv5G4stl/QfwIFtUAVg+t 22E4AuuAHGBhCw8ZAAm1/3R217ZX9DvPNS0HpHbEM8PjaO3WgEuRqX0Mx9ay64BqoZ1sw7ZmO8d F7t/pOTq8idhcmafPWrHEeZvywxgsdbiPgLJnMJBpiYHMYJ7bQfqSvWRPTOLePFhbGXSOE7/ChZ Bm2W8cjKfwGu1msDZPvv6veq25ZnWQYhHhITi/B5CZpdrg5I1cYCuzT9lWZTV1wfbOuxzRZ6+eY jHiu2+O19hNeGoUSYxPvCTdJjtgpDBkX7k1xg7tyPTpDKXXaIFRa1beoNiQX3hITDTUEtbr8okp bNZ/jkY1pu9DbihBLhA== X-Google-Smtp-Source: AGHT+IHB7XUpDqHtiaz95nxliZmnFd4VtG0oJAk+yY+CAy7MT4jnzocP1fTBggA3PBjVFpoV21XUfQ== X-Received: by 2002:a5d:47ac:0:b0:38d:d371:e04d with SMTP id ffacd0b85a97d-39ad175c0cfmr6503103f8f.34.1743169485521; Fri, 28 Mar 2025 06:44:45 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Volodymyr Babchuk , Bertrand Marquis , Shawn Anastasio , Oleksii Kurochko , "Daniel P . Smith" , Lin Liu Subject: [PATCH v5 12/16] xen/common: Switch {asm -> xen}/byteorder.h Date: Fri, 28 Mar 2025 13:44:23 +0000 Message-Id: <20250328134427.874848-13-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250328134427.874848-1-andrew.cooper3@citrix.com> References: <20250328134427.874848-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Sort the includes. Drop useless includes of xen/types.h Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Anthony PERARD CC: Michal Orzel CC: Jan Beulich CC: Julien Grall CC: Roger Pau Monné CC: Stefano Stabellini CC: Volodymyr Babchuk CC: Bertrand Marquis CC: Shawn Anastasio CC: Oleksii Kurochko CC: Daniel P. Smith CC: Lin Liu v5: * New --- xen/common/bitmap.c | 5 ++--- xen/common/libelf/libelf-private.h | 3 ++- xen/drivers/char/ehci-dbgp.c | 4 +++- xen/include/xen/bitmap.h | 2 +- xen/include/xen/device_tree.h | 3 ++- xen/include/xen/libfdt/libfdt_env.h | 3 +-- xen/include/xen/unaligned.h | 3 +-- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/xen/common/bitmap.c b/xen/common/bitmap.c index 3da63a32a680..f605c98a02b2 100644 --- a/xen/common/bitmap.c +++ b/xen/common/bitmap.c @@ -5,14 +5,13 @@ * This source code is licensed under the GNU General Public License, * Version 2. See the file COPYING for more details. */ -#include -#include #include #include +#include #include +#include #include #include -#include /* * bitmaps provide an array of bits, implemented using an an diff --git a/xen/common/libelf/libelf-private.h b/xen/common/libelf/libelf-private.h index 65417dffc8a0..e5c9cc109972 100644 --- a/xen/common/libelf/libelf-private.h +++ b/xen/common/libelf/libelf-private.h @@ -17,10 +17,11 @@ #ifdef __XEN__ +#include #include #include #include -#include + #include /* we would like to use elf->log_callback but we can't because diff --git a/xen/drivers/char/ehci-dbgp.c b/xen/drivers/char/ehci-dbgp.c index 1ad3c6bebf87..e9cd59b25463 100644 --- a/xen/drivers/char/ehci-dbgp.c +++ b/xen/drivers/char/ehci-dbgp.c @@ -5,15 +5,17 @@ * Linux; see the Linux source for authorship and copyrights. */ +#include #include #include #include #include #include #include -#include + #include #include + #include /* #define DBGP_DEBUG */ diff --git a/xen/include/xen/bitmap.h b/xen/include/xen/bitmap.h index 4b642cd4207b..b5e9cdd3db86 100644 --- a/xen/include/xen/bitmap.h +++ b/xen/include/xen/bitmap.h @@ -230,7 +230,7 @@ static inline unsigned int bitmap_weight(const unsigned long *src, return __bitmap_weight(src, nbits); } -#include +#include #ifdef __LITTLE_ENDIAN #define BITMAP_MEM_ALIGNMENT 8 diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h index 0ff80fda04da..6dc1fb5159cd 100644 --- a/xen/include/xen/device_tree.h +++ b/xen/include/xen/device_tree.h @@ -10,7 +10,8 @@ #ifndef __XEN_DEVICE_TREE_H__ #define __XEN_DEVICE_TREE_H__ -#include +#include + #include #include #include diff --git a/xen/include/xen/libfdt/libfdt_env.h b/xen/include/xen/libfdt/libfdt_env.h index 8368787391b7..04abc6bb68c6 100644 --- a/xen/include/xen/libfdt/libfdt_env.h +++ b/xen/include/xen/libfdt/libfdt_env.h @@ -7,9 +7,8 @@ * Copyright 2012 Kim Phillips, Freescale Semiconductor. */ -#include +#include #include -#include #ifdef __CHECKER__ #define FDT_FORCE __attribute__((force)) diff --git a/xen/include/xen/unaligned.h b/xen/include/xen/unaligned.h index 8c8b08338b8d..e64813ab4b20 100644 --- a/xen/include/xen/unaligned.h +++ b/xen/include/xen/unaligned.h @@ -3,8 +3,7 @@ #define __XEN_UNALIGNED_H__ #ifdef __XEN__ -#include -#include +#include #endif /*