]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
platform/x86: intel_punit_ipc: fix build errors
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 15 Aug 2018 16:12:07 +0000 (09:12 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 Aug 2018 10:55:13 +0000 (13:55 +0300)
commit340fd4cff43f18bace9358d4decdc9b6ed0715be
tree55c2b12ca2d992fb4522cdfd0d10417c6e22d814
parent56c9bba135ab7884d65f92b19ee87f794508d7dc
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: 447ae3166702 ("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>
drivers/platform/x86/intel_punit_ipc.c