[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] xen/arm: mark handle_linux_pci_domain() __init



Hi Stewart,

I nearly missed this one because it was threaded under v1. In the future, would you be able to send new version in a separate thread? This makes easier to track it.

On 14/10/2022 21:09, Stewart Hildebrand wrote:
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>

Acked-by: Julien Grall <jgrall@xxxxxxxxxx>

Henry, this patch is fixing a potential build failure on some compiler (at the moment we are relying on the compiler to inline handle_linux_pci_domain). AFAIU, the problem was introduced in Xen 4.17. Would you be happy if we include it in the release?

Cheers,


---
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;

--
Julien Grall



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.