Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404160320.QAHyZ0c3-lkp@intel.com/
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20240416025312.731809-1-Basavaraj.Natikar@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Basavaraj Natikar and committed by
Hans de Goede
4acf5cac bd25a3f5

+1
+1
drivers/platform/x86/amd/pmc/mp2_stb.c
··· 11 11 #include <linux/debugfs.h> 12 12 #include <linux/device.h> 13 13 #include <linux/io.h> 14 + #include <linux/io-64-nonatomic-lo-hi.h> 14 15 #include <linux/iopoll.h> 15 16 #include <linux/pci.h> 16 17 #include <linux/sizes.h>