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

Re: [PATCH 05/19] arm: Remove dependencies with membank(s) definitions from setup.h


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Thu, 5 Jun 2025 15:28:36 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.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 (0)
  • 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=/VFP+JQWBL2kdZ1IWem3gLR3G5H2pW8T/1NTwF2lUS0=; b=uoKisIqG0epDBdhUYkmeCsh++FbHo+Qy2BsOCnIJN3tZTWuBoprF5WkNMjJ18N+YWePO8MEBHukGnvbwBXkB6XExBDZm2DncEJkTBrN8NosQNHfD/NblGoCRcwxJgwb80frd27tJjNp+41yJoqnDlClCrHFmi447iDnElNZlsyKnM1Q7L5cYH7tQu+pZMV4JckZii3zQHmafrbmlEy4estKNdK0NDtITnoOaJWOZauuXNUG8Lt2iemd4lJzX4AVa7E6DLuZstMRRIYUZ4qHtb8SR2p/YNF8Hzax+kNzWuwGq3rzHSKe9po8keHFAs0HHWDvbGJ1wscYBj0c9WNK/qw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QNwJlTdZhHkTo3UpTxYLZcMzrg8ohqmLO4A+x77NTmVpwSSILXA+Vwk2ecFiZMyqIsXGZ/1qxiion4yMRHfS6yDEEsNX9XvelwM2y3Rqy+rz2Zn8DLi79FdiXFVnVMb4OSwE75OER4n2r/pa7olCGOsLuj80Y0LWQ4QZ2QrYwzkS/hooVSDzGYATwAa2XqWxQwSchPk+c+a2VpQPL+PRGwAKsP+EpB3Hh+SerbmO9oiHYy3TW0oxCq8ETkb9zwMvYZQhNlfEspAEx55PJL4x9R9w+nDYwvWtXXJwlj2ZKntl5awxx9Wk/LyP+QQXhuDfZ8sMU5rSHUWZhouZhbK3fA==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Bertrand Marquis" <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 05 Jun 2025 13:28:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Sat May 31, 2025 at 2:51 AM CEST, Stefano Stabellini wrote:
> On Fri, 30 May 2025, Alejandro Vallejo wrote:
>> ... as they can be forward-declared changing arrays for pointers in the 
>> function
>> declarations.
>> 
>> No functional change.
>> 
>> Signed-off-by: Alejandro Vallejo <agarciav@xxxxxxx>
>> ---
>>  xen/arch/arm/include/asm/setup.h | 10 ++++++----
>>  1 file changed, 6 insertions(+), 4 deletions(-)
>> 
>> diff --git a/xen/arch/arm/include/asm/setup.h 
>> b/xen/arch/arm/include/asm/setup.h
>> index 6cf272c160..0f9e531a34 100644
>> --- a/xen/arch/arm/include/asm/setup.h
>> +++ b/xen/arch/arm/include/asm/setup.h
>> @@ -3,7 +3,6 @@
>>  
>>  #include <public/version.h>
>>  #include <asm/p2m.h>
>> -#include <xen/bootfdt.h>
>>  #include <xen/device_tree.h>
>
> This change breaks the build on ARM:
>
>   CC      xsm/xsm_policy.o
> xsm/xsm_policy.c: In function ‘xsm_dt_policy_init’:
> xsm/xsm_policy.c:71:30: error: implicit declaration of function 
> ‘boot_module_find_by_kind’ [-Werror=implicit-function-declaration]
>    71 |     struct bootmodule *mod = boot_module_find_by_kind(BOOTMOD_XSM);
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~~
> xsm/xsm_policy.c:71:30: error: nested extern declaration of 
> ‘boot_module_find_by_kind’ [-Werror=nested-externs]
> xsm/xsm_policy.c:71:55: error: ‘BOOTMOD_XSM’ undeclared (first use in this 
> function)
>    71 |     struct bootmodule *mod = boot_module_find_by_kind(BOOTMOD_XSM);
>       |                                                       ^~~~~~~~~~~
> xsm/xsm_policy.c:71:55: note: each undeclared identifier is reported only 
> once for each function it appears in
> xsm/xsm_policy.c:74:22: error: dereferencing pointer to incomplete type 
> ‘struct bootmodule’
>    74 |     if ( !mod || !mod->size )
>       |                      ^~
> cc1: all warnings being treated as errors
> make[2]: *** [Rules.mk:249: xsm/xsm_policy.o] Error 1
> make[1]: *** [build.mk:72: xsm] Error 2
> make: *** [Makefile:619: xen] Error 2
>
> The rest looks OK

I see what goes on now. Later on the header shuffling fixes this breakage 
(somehow).

This is very much non-essential. I'll drop it for now and have another crack
later on after the patches I do care most about get through.

Cheers,
Alejandro



 


Rackspace

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