]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
platform/x86: intel_telemetry: Add needed inclusion
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Oct 2017 14:25:50 +0000 (17:25 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Oct 2017 16:18:43 +0000 (19:18 +0300)
linux/io.h defines readq() and ioremap_nocache() / iounmap() functions.

If not included, the build fails:

intel_telemetry_pltdrv.c:1165:31: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
intel_telemetry_pltdrv.c:1165:33: error: implicit declaration of function 'ioremap_nocache' [-Werror=implicit-function-declaration]
intel_telemetry_pltdrv.c:1202:3: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
intel_telemetry_pltdrv.c:900:20: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]

Fix this by including linux/io.h.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_telemetry_pltdrv.c

index 678abf2e9e92859e9bde76e54b899e3ed7abd775..2f889d6c270e85c50fd8296af3636cc216e84ed9 100644 (file)
@@ -16,6 +16,8 @@
  * It used the PUNIT and PMC IPC interfaces for configuring the counters.
  * The accumulated results are fetched from SRAM.
  */
+
+#include <linux/io.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>