Skip to content

Commit 340fd4c

Browse files
rddunlapandy-shev
authored andcommitted
platform/x86: intel_punit_ipc: fix build errors
Fix build errors by #including <linux/io.h>. ../drivers/platform/x86/intel_punit_ipc.c: In function 'ipc_read_status': ../drivers/platform/x86/intel_punit_ipc.c:55:2: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration] return readl(ipcdev->base[type][BASE_IFACE]); ../drivers/platform/x86/intel_punit_ipc.c: In function 'ipc_write_cmd': ../drivers/platform/x86/intel_punit_ipc.c:60:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration] writel(cmd, ipcdev->base[type][BASE_IFACE]); Fixes: 447ae31 ("x86: Don't include linux/irq.h from asm/hardirq.h") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Zha Qipeng <qipeng.zha@intel.com> Cc: platform-driver-x86@vger.kernel.org Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 56c9bba commit 340fd4c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/platform/x86/intel_punit_ipc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/bitops.h>
1818
#include <linux/device.h>
1919
#include <linux/interrupt.h>
20+
#include <linux/io.h>
2021
#include <linux/platform_device.h>
2122
#include <asm/intel_punit_ipc.h>
2223

0 commit comments

Comments
 (0)