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

Re: [PATCH 1/2] xen/dom0less: mark domain_p2m_set_allocation __init


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Wed, 14 May 2025 08:31:21 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=eyqIMwJgjaMMzEfSogplyejUU0rYkesUcAROsLfu/RI=; b=fB0hP4ZcAWQemyOmdfHcT0+1rkf3M6v4M7mEmXo235o3TdcNDg5mScmTQbu1MG+XkbNpV8qKlFVj4e9xE+FFTHM1gvM+1JaoiKwGo3oZM81wW0FSwzhEQvzvor6ql2/sVp76pZl+yJwstW77tMGvMoeQU/Lnl7R65r4S6hMLsV0dYFLMPCfshrwR3T2ctBX+Jb+SrZXKsT+im+W/xnU5dtrlfBPgegUr/uu5brOeJAZGHDGNoZnkMg3DmRJPKSfo9lWZCbHHAZrclUL5t6fjNCKk/Piw2o/0T7B1z/iAzCja0rfUXveaLJV+TB+1WkZAwpb+dPOZFtQmDWJO0uQ1Pg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=B/KWY1YitDAgJxoYQCLc/NzO2DsjGMz7a3YsqKfAUInUJgDx0cqStNwsp/qTeelLTJBgs0zU1z6tI7YIVnLLCPajKb3efULfdw7Tu1zYgSHu9octSQoe7U2YfJ8T7RB6WoBYP4COTuYIDDHaS1zNUoR6eIO0GXGORenQ8XigX1u0qsfV5HgA/+K6Q0BkLtmqwPbgtMnVqPG7uXvvE47TVNpwtmiI6WTwMUsWC/RuAMYWkRtI9BSFaRQo/K9uftKbdmLtdkh7RYh+gh2PAD8W9AqEKqA/V/FceGVLnsmAbvK6nqHm7ElnQXNxQ0PpMjCZXHTiiT+mLypImBQoPwgcxQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Wed, 14 May 2025 06:31:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 14/05/2025 02:07, Stefano Stabellini wrote:
> On Tue, 13 May 2025, Stewart Hildebrand wrote:
>> All functions in dom0less-build.c should be __init.
Why? This patch is first in your series and by that time there is no build time
enforcement. Together with the Fixes tag it implies that this is somehow an
issue (i.e. build/runtime issue) other than inconsistency for which we surely
don't need Fixes tag.

Same for the second patch.

>>
>> Fixes: 2705f1adb9df ("xen: introduce Kconfig ARCH_PAGING_MEMPOOL")
>> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
> 
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> 
>> ---
>>  xen/common/device-tree/dom0less-build.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/xen/common/device-tree/dom0less-build.c 
>> b/xen/common/device-tree/dom0less-build.c
>> index 2c56f13771ab..39cb2cd5c70e 100644
>> --- a/xen/common/device-tree/dom0less-build.c
>> +++ b/xen/common/device-tree/dom0less-build.c
>> @@ -730,8 +730,8 @@ static int __init domain_p2m_set_allocation(struct 
>> domain *d, uint64_t mem,
>>      return rc;
>>  }
>>  #else /* !CONFIG_ARCH_PAGING_MEMPOOL */
>> -static inline int domain_p2m_set_allocation(struct domain *d, uint64_t mem,
>> -                                            const struct dt_device_node 
>> *node)
>> +static inline int __init domain_p2m_set_allocation(
>> +    struct domain *d, uint64_t mem, const struct dt_device_node *node)
>>  {
>>      return 0;
>>  }
>>
>> base-commit: 5873740e41acb8593f92623ddd03caebda2718f6
>> -- 
>> 2.49.0
>>

~Michal




 


Rackspace

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