[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2] xen/arm: mark handle_linux_pci_domain() __init
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Date: Fri, 14 Oct 2022 16:09:26 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LaslOf9gtbGfA3c9R1C88IUpEPk+IJWusye9AlidDAA=; b=mQ7Nt5MqKjeuO6I1IG8k4HLBDrYNkIVkKnojGkJyYFBGMIe9EfJdOe1zgi4iuPbucGLjFBukZfB/hdyOMColCSM91f1lhT11bv96OUGQgaudfQCSlwDEh05DWAEQEIAQgNEeChXZLLIZZKadi6kgi9Z19w83WvMu7ShyzD4J0rurA7c/cobTXTUHocJpSP5++2VCQvOSr6KQlol9KzrV3V2CJx/wKprkwwAZa79TNOhwIwJSe+sMyWPEp/nXNJe7YxW4YhS0bmi0QgdTbb9zU4FkAAsvNo4YaNSTssBUKOssfGKCJ/nevad3UZ28eLwbI383Wcdi8hDaMT5aUCg1/g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bl4dkVEeo4/PvqwfzBVUPz/7e/2LmbPZ4PU+mtZzxMMpoORI6yhg+TYo9wnsnVN9qk5bZIxjbjXiwUq8HXV8pkMfe20ZY6fC9xkdwMqR/hPa4S2bY9X2MlFqkB3YiGzvbljNobFAf6xDpXsINbzfuM6VF6c1QdxJDTGxFpt2D6R0kGR2VI2XjixqtmPlgPyJh5OO6ZKh2AaXBdw59h2W1Ml5i9eC7GETfpVl3S2wJ6e/UEtWwQprcdgQm4zdvcYP/mhUyCdWBDwOAhCLAMVSpYVHocBQ1g7Tn36RhHg+Gi+oaR9muMV3LifSrdIU22pkj+GyX3APutTZ8C+y1OZEZA==
- Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
- Delivery-date: Fri, 14 Oct 2022 20:10:46 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
All functions in domain_build.c should be marked __init. This was
spotted when building the hypervisor with -Og.
Fixes: 1050a7b91c xen/arm: add pci-domain for disabled devices
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
v1 -> v2:
Add Fixes: tag
Add patch description
---
xen/arch/arm/domain_build.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 61cda8e843..fc2961895b 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -1051,8 +1051,8 @@ static void __init assign_static_memory_11(struct domain
*d,
* The current heuristic assumes that a device is a host bridge
* if the type is "pci" and then parent type is not "pci".
*/
-static int handle_linux_pci_domain(struct kernel_info *kinfo,
- const struct dt_device_node *node)
+static int __init handle_linux_pci_domain(struct kernel_info *kinfo,
+ const struct dt_device_node *node)
{
uint16_t segment;
int res;
--
2.38.0
|