]> Git Repo - J-linux.git/commitdiff
asm/vga.h: don't bother with scr_mem{cpy,move}v() unless we need to
authorAl Viro <[email protected]>
Wed, 6 Nov 2024 06:10:50 +0000 (06:10 +0000)
committerArnd Bergmann <[email protected]>
Mon, 11 Nov 2024 20:51:42 +0000 (21:51 +0100)
... if they are identical to fallbacks, just leave them alone.

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
arch/mips/include/asm/vga.h
arch/powerpc/include/asm/vga.h
arch/sparc/include/asm/vga.h

index 0136e03666989ab11a2d6d0bf3e24ea6b598501f..491c2b5aeb816237cba4b9f7a9e8f2e93ee353e9 100644 (file)
@@ -47,10 +47,6 @@ static inline void scr_memsetw(u16 *s, u16 v, unsigned int count)
        memset16(s, cpu_to_le16(v), count / 2);
 }
 
-#define scr_memcpyw(d, s, c) memcpy(d, s, c)
-#define scr_memmovew(d, s, c) memmove(d, s, c)
-#define VT_BUF_HAVE_MEMCPYW
-#define VT_BUF_HAVE_MEMMOVEW
 #define VT_BUF_HAVE_MEMSETW
 
 #endif /* _ASM_VGA_H */
index fcf721682a7119f0fa8f90560939a78d7da559c2..f2dc40e1c52ae1c08a6e6ab667fbfba59bfa7204 100644 (file)
@@ -40,11 +40,6 @@ static inline void scr_memsetw(u16 *s, u16 v, unsigned int n)
        memset16(s, cpu_to_le16(v), n / 2);
 }
 
-#define VT_BUF_HAVE_MEMCPYW
-#define VT_BUF_HAVE_MEMMOVEW
-#define scr_memcpyw    memcpy
-#define scr_memmovew   memmove
-
 #endif /* !CONFIG_VGA_CONSOLE && !CONFIG_MDA_CONSOLE */
 
 #ifdef __powerpc64__
index 2952d667d936340edf851c85d93ccae051bf05a0..cc2bc60b4c8baa6995b88fdfd3db79c5a2d4170b 100644 (file)
@@ -14,8 +14,6 @@
 
 #define VT_BUF_HAVE_RW
 #define VT_BUF_HAVE_MEMSETW
-#define VT_BUF_HAVE_MEMCPYW
-#define VT_BUF_HAVE_MEMMOVEW
 
 #undef scr_writew
 #undef scr_readw
@@ -41,20 +39,6 @@ static inline void scr_memsetw(u16 *p, u16 v, unsigned int n)
        memset16(p, cpu_to_le16(v), n / 2);
 }
 
-static inline void scr_memcpyw(u16 *d, u16 *s, unsigned int n)
-{
-       BUG_ON((long) d >= 0);
-
-       memcpy(d, s, n);
-}
-
-static inline void scr_memmovew(u16 *d, u16 *s, unsigned int n)
-{
-       BUG_ON((long) d >= 0);
-
-       memmove(d, s, n);
-}
-
 #define VGA_MAP_MEM(x,s) (x)
 
 #endif
This page took 0.060063 seconds and 4 git commands to generate.