diff mbox series

[v3,2/5] xen/arm: use {DT,ACPI}_DEV_INFO for device info sections

Message ID 1533aa9fe0a4464bd97a44fc1f68cac0a670640c.1727193766.git.oleksii.kurochko@gmail.com (mailing list archive)
State Superseded
Headers show
Series Move {acpi_}device_init() and device_get_class() to common code | expand

Commit Message

Oleksii Kurochko Sept. 24, 2024, 4:42 p.m. UTC
Refactor arm/xen.lds.S by replacing the inline definitions for
device info sections with the newly introduced {DT,ACPI}_DEV_INFO
macros from xen/xen.lds.h.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
Changes in V2:
 - use refactored ADEV_INFO and DT_DEV_INFO macros.
---

 xen/arch/arm/xen.lds.S | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

Comments

Jan Beulich Sept. 25, 2024, 8:37 a.m. UTC | #1
On 24.09.2024 18:42, Oleksii Kurochko wrote:
> --- a/xen/arch/arm/xen.lds.S
> +++ b/xen/arch/arm/xen.lds.S
> @@ -126,19 +126,13 @@ SECTIONS
>  
>    . = ALIGN(8);
>    .dev.info : {
> -      _sdevice = .;
> -      *(.dev.info)
> -      _edevice = .;
> +     DT_DEV_INFO
>    } :text
>  
> -#ifdef CONFIG_ACPI
>    . = ALIGN(8);
>    .adev.info : {
> -      _asdevice = .;
> -      *(.adev.info)
> -      _aedevice = .;
> +     ADEV_INFO
>    } :text
> -#endif

Why's the #ifdef going away here?

Jan
Oleksii Kurochko Sept. 25, 2024, 11:15 a.m. UTC | #2
On Wed, 2024-09-25 at 10:37 +0200, Jan Beulich wrote:
> On 24.09.2024 18:42, Oleksii Kurochko wrote:
> > --- a/xen/arch/arm/xen.lds.S
> > +++ b/xen/arch/arm/xen.lds.S
> > @@ -126,19 +126,13 @@ SECTIONS
> >  
> >    . = ALIGN(8);
> >    .dev.info : {
> > -      _sdevice = .;
> > -      *(.dev.info)
> > -      _edevice = .;
> > +     DT_DEV_INFO
> >    } :text
> >  
> > -#ifdef CONFIG_ACPI
> >    . = ALIGN(8);
> >    .adev.info : {
> > -      _asdevice = .;
> > -      *(.adev.info)
> > -      _aedevice = .;
> > +     ADEV_INFO
> >    } :text
> > -#endif
> 
> Why's the #ifdef going away here?
It is incorrect as ADEV_INFO isn't covered by #ifdef anymore. Some
rebasing issue happens... I will fix that in the next patch version.
Thanks.

~ Oleksii
diff mbox series

Patch

diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
index bd884664ad..7317851871 100644
--- a/xen/arch/arm/xen.lds.S
+++ b/xen/arch/arm/xen.lds.S
@@ -126,19 +126,13 @@  SECTIONS
 
   . = ALIGN(8);
   .dev.info : {
-      _sdevice = .;
-      *(.dev.info)
-      _edevice = .;
+     DT_DEV_INFO
   } :text
 
-#ifdef CONFIG_ACPI
   . = ALIGN(8);
   .adev.info : {
-      _asdevice = .;
-      *(.adev.info)
-      _aedevice = .;
+     ADEV_INFO
   } :text
-#endif
 
   . = ALIGN(8);
   .teemediator.info : {