2019-03-04 04:19:51

by Baoquan He

[permalink] [raw]
Subject: [PATCH] x86/boot: Fix incorrect ifdeffery scope

The declarations related to immovable memory handling are put out of

Signed-off-by: Baoquan He <[email protected]>
---
arch/x86/boot/compressed/misc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h
index fd13655e0f9b..8bbaf362855c 100644
--- a/arch/x86/boot/compressed/misc.h
+++ b/arch/x86/boot/compressed/misc.h
@@ -120,8 +120,6 @@ static inline void console_init(void)

void set_sev_encryption_mask(void);

-#endif
-
/* acpi.c */
#ifdef CONFIG_ACPI
acpi_physical_address get_rsdp_addr(void);
@@ -135,3 +133,5 @@ int count_immovable_mem_regions(void);
#else
static inline int count_immovable_mem_regions(void) { return 0; }
#endif
+
+#endif
--
2.17.2



2019-03-04 05:35:16

by Chao Fan

[permalink] [raw]
Subject: Re: [PATCH] x86/boot: Fix incorrect ifdeffery scope

On Mon, Mar 04, 2019 at 12:18:20PM +0800, Baoquan He wrote:
>The declarations related to immovable memory handling are put out of
>
>Signed-off-by: Baoquan He <[email protected]>

Are there some problems in your mail tool?
I can only see one line in the PATCH log and seems a half sentence.

Thanks,
Chao Fan

>---
> arch/x86/boot/compressed/misc.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h
>index fd13655e0f9b..8bbaf362855c 100644
>--- a/arch/x86/boot/compressed/misc.h
>+++ b/arch/x86/boot/compressed/misc.h
>@@ -120,8 +120,6 @@ static inline void console_init(void)
>
> void set_sev_encryption_mask(void);
>
>-#endif
>-
> /* acpi.c */
> #ifdef CONFIG_ACPI
> acpi_physical_address get_rsdp_addr(void);
>@@ -135,3 +133,5 @@ int count_immovable_mem_regions(void);
> #else
> static inline int count_immovable_mem_regions(void) { return 0; }
> #endif
>+
>+#endif
>--
>2.17.2
>
>
>



2019-03-04 05:35:36

by Baoquan He

[permalink] [raw]
Subject: Re: [PATCH] x86/boot: Fix incorrect ifdeffery scope

On 03/04/19 at 01:32pm, Chao Fan wrote:
> On Mon, Mar 04, 2019 at 12:18:20PM +0800, Baoquan He wrote:
> >The declarations related to immovable memory handling are put out of
> >
> >Signed-off-by: Baoquan He <[email protected]>
>
> Are there some problems in your mail tool?
> I can only see one line in the PATCH log and seems a half sentence.

Yeah, just notice it. I will send a new one. Sorry.