]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: dcdbas: include linux/io.h
authorArnd Bergmann <arnd@arndb.de>
Tue, 2 Oct 2018 21:16:42 +0000 (23:16 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 3 Oct 2018 08:27:22 +0000 (11:27 +0300)
commite11b5f1734013c226195fd5fc9d88e9a1fb6b183
tree9b1a4268169065f0364a8f52346956ec81e4a115
parentb9a4322e941770e243f4fc28ec3c08fac50396a9
firmware: dcdbas: include linux/io.h

memremap() is declared in linux/io.h, not in asm/io.h, so we should
include that header to avoid build errors:

drivers/platform/x86/dcdbas.c: In function 'dcdbas_check_wsmt':
drivers/platform/x86/dcdbas.c:572:15: error: implicit declaration of function 'memremap'; did you mean 'ioremap'? [-Werror=implicit-function-declaration]
  eps_buffer = memremap(eps->smm_comm_buff_addr, remap_size, MEMREMAP_WB);
               ^~~~~~~~
               ioremap
drivers/platform/x86/dcdbas.c:572:61: error: 'MEMREMAP_WB' undeclared (first use in this function)
  eps_buffer = memremap(eps->smm_comm_buff_addr, remap_size, MEMREMAP_WB);
                                                             ^~~~~~~~~~~
drivers/platform/x86/dcdbas.c:572:61: note: each undeclared identifier is reported only once for each function it appears in
drivers/platform/x86/dcdbas.c: In function 'dcdbas_exit':
drivers/platform/x86/dcdbas.c:748:3: error: implicit declaration of function 'memunmap'; did you mean 'vm_munmap'? [-Werror=implicit-function-declaration]

Fixes: 90204d47c0d2 ("firmware: dcdbas: Add support for WSMT ACPI table")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dcdbas.c