2023-07-22 04:00:11

by Yue Haibing

[permalink] [raw]
Subject: [PATCH -next] ACPI: Remove unsued extern declaration acpi_paddr_to_node()

This is never used since commit 1e3590e2e4a3 ("[PATCH] pgdat allocation for new node
add (get node id by acpi)")

Signed-off-by: YueHaibing <[email protected]>
---
include/linux/acpi.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 641dc4843987..58a0fdf68ca2 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -477,8 +477,6 @@ static inline int acpi_get_node(acpi_handle handle)
return 0;
}
#endif
-extern int acpi_paddr_to_node(u64 start_addr, u64 size);
-
extern int pnpacpi_disabled;

#define PXM_INVAL (-1)
--
2.34.1



2023-08-20 14:52:52

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [PATCH -next] ACPI: Remove unsued extern declaration acpi_paddr_to_node()

On Sat, Jul 22, 2023 at 4:52 AM YueHaibing <[email protected]> wrote:
>
> This is never used since commit 1e3590e2e4a3 ("[PATCH] pgdat allocation for new node
> add (get node id by acpi)")
>
> Signed-off-by: YueHaibing <[email protected]>
> ---
> include/linux/acpi.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index 641dc4843987..58a0fdf68ca2 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -477,8 +477,6 @@ static inline int acpi_get_node(acpi_handle handle)
> return 0;
> }
> #endif
> -extern int acpi_paddr_to_node(u64 start_addr, u64 size);
> -
> extern int pnpacpi_disabled;
>
> #define PXM_INVAL (-1)
> --

Applied (with a typo fix in the subject) as 6.6 material, thanks!