* [PATCH][next] ACPI: NFIT: Fix incorrect ndr_desc being reportedin dev_err message
@ 2025-09-02 11:45 Colin Ian King
2025-09-02 15:54 ` Ira Weiny
0 siblings, 1 reply; 2+ messages in thread
From: Colin Ian King @ 2025-09-02 11:45 UTC (permalink / raw)
To: Dan Williams, Vishal Verma, Dave Jiang, Ira Weiny,
Rafael J . Wysocki, Len Brown, Jia He, nvdimm, linux-acpi
Cc: kernel-janitors, linux-kernel
There appears to be a cut-n-paste error with the incorrect field
ndr_desc->numa_node being reported for the target node. Fix this by
using ndr_desc->target_node instead.
Fixes: f060db99374e ("ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/acpi/nfit/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index ae035b93da08..3eb56b77cb6d 100644
--- a/drivers/acpi/nfit/core.c
+++ b/drivers/acpi/nfit/core.c
@@ -2637,7 +2637,7 @@ static int acpi_nfit_register_region(struct acpi_nfit_desc *acpi_desc,
if (ndr_desc->target_node == NUMA_NO_NODE) {
ndr_desc->target_node = phys_to_target_node(spa->address);
dev_info(acpi_desc->dev, "changing target node from %d to %d for nfit region [%pa-%pa]",
- NUMA_NO_NODE, ndr_desc->numa_node, &res.start, &res.end);
+ NUMA_NO_NODE, ndr_desc->target_node, &res.start, &res.end);
}
/*
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][next] ACPI: NFIT: Fix incorrect ndr_desc being reportedin dev_err message
2025-09-02 11:45 [PATCH][next] ACPI: NFIT: Fix incorrect ndr_desc being reportedin dev_err message Colin Ian King
@ 2025-09-02 15:54 ` Ira Weiny
0 siblings, 0 replies; 2+ messages in thread
From: Ira Weiny @ 2025-09-02 15:54 UTC (permalink / raw)
To: Colin Ian King, Dan Williams, Vishal Verma, Dave Jiang, Ira Weiny,
Rafael J . Wysocki, Len Brown, Jia He, nvdimm, linux-acpi
Cc: kernel-janitors, linux-kernel
Colin Ian King wrote:
> There appears to be a cut-n-paste error with the incorrect field
NIT: 'There __is__ a cut-n-paste error..." ;-)
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
> ndr_desc->numa_node being reported for the target node. Fix this by
> using ndr_desc->target_node instead.
>
> Fixes: f060db99374e ("ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect")
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---
> drivers/acpi/nfit/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
> index ae035b93da08..3eb56b77cb6d 100644
> --- a/drivers/acpi/nfit/core.c
> +++ b/drivers/acpi/nfit/core.c
> @@ -2637,7 +2637,7 @@ static int acpi_nfit_register_region(struct acpi_nfit_desc *acpi_desc,
> if (ndr_desc->target_node == NUMA_NO_NODE) {
> ndr_desc->target_node = phys_to_target_node(spa->address);
> dev_info(acpi_desc->dev, "changing target node from %d to %d for nfit region [%pa-%pa]",
> - NUMA_NO_NODE, ndr_desc->numa_node, &res.start, &res.end);
> + NUMA_NO_NODE, ndr_desc->target_node, &res.start, &res.end);
> }
>
> /*
> --
> 2.51.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-02 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 11:45 [PATCH][next] ACPI: NFIT: Fix incorrect ndr_desc being reportedin dev_err message Colin Ian King
2025-09-02 15:54 ` Ira Weiny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).