Skip to contentSkip to conversation

platform/x86/amd/pmc: Fix implicit declaration error on i386

PATCH In review Basavaraj Natikar 3 participants 3 messages Apr 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86/amd/pmc: Fix implicit declaration error on i386

Add depended header file to fix error on i386 due to implicit declaration of function ‘writeq’.

Fixes 2dc77993cb5e ("platform/x86/amd/pmc: Add AMD MP2 STB functionality")
---
 drivers/platform/x86/amd/pmc/mp2_stb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/amd/pmc/mp2_stb.c +1 -0
index dfa55327e5f1..9775ddc1b27a 100644
@@ -11,6 +11,7 @@
 #include <linux/debugfs.h>
 #include <linux/device.h>
 #include <linux/io.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 #include <linux/iopoll.h>
 #include <linux/pci.h>
 #include <linux/sizes.h>
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Basavaraj Natikar

Add depended header file to fix error on i386 due to implicit declaration of function ‘writeq’.

Fixes 2dc77993cb5e ("platform/x86/amd/pmc: Add AMD MP2 STB functionality")

---

LGTM

Quoted 15 lines
 drivers/platform/x86/amd/pmc/mp2_stb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/amd/pmc/mp2_stb.c +1 -0
index dfa55327e5f1..9775ddc1b27a 100644
@@ -11,6 +11,7 @@
 #include <linux/debugfs.h>
 #include <linux/device.h>
 #include <linux/io.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 #include <linux/iopoll.h>
 #include <linux/pci.h>
 #include <linux/sizes.h>
Signature · 2 lines
Sathyanarayanan Kuppuswamy
Linux Kernel Developer
#2 lore raw
In reply to Basavaraj Natikar

Hi,

Quoted 8 lines · Basavaraj Natikar

Add depended header file to fix error on i386 due to implicit declaration of function ‘writeq’.

Fixes 2dc77993cb5e ("platform/x86/amd/pmc: Add AMD MP2 STB functionality")

Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.

Regards,

Hans

Quoted 16 lines
---
 drivers/platform/x86/amd/pmc/mp2_stb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/amd/pmc/mp2_stb.c +1 -0
index dfa55327e5f1..9775ddc1b27a 100644
@@ -11,6 +11,7 @@
 #include <linux/debugfs.h>
 #include <linux/device.h>
 #include <linux/io.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 #include <linux/iopoll.h>
 #include <linux/pci.h>
 #include <linux/sizes.h>