[PATCH 04/11] arch/alpha/io: add missing includes to fix -Wmissing-prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes:

 arch/alpha/kernel/io.c:654:1: error: no previous prototype for 'scr_memcpyw' [-Werror=missing-prototypes]
   654 | scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
       | ^~~~~~~~~~~

Signed-off-by: Max Kellermann <max.kellermann@xxxxxxxxx>
---
 arch/alpha/kernel/io.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/alpha/kernel/io.c b/arch/alpha/kernel/io.c
index eda09778268f..fc5f7b80c7ea 100644
--- a/arch/alpha/kernel/io.c
+++ b/arch/alpha/kernel/io.c
@@ -8,6 +8,7 @@
 #include <linux/string.h>
 #include <linux/module.h>
 #include <asm/io.h>
+#include <asm/vga.h> // for the scr_memcpyw() prototype
 
 /* Out-of-line versions of the i/o routines that redirect into the 
    platform-specific version.  Note that "platform-specific" may mean
-- 
2.39.2





[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux