From 2f7c68cb55ecb7331f2381deb497c27155f32faf Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 03 Jan 2024 09:43:39 +0000
Subject: [PATCH] update kernel to 5.10.198
---
kernel/drivers/video/fbdev/c2p_core.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/kernel/drivers/video/fbdev/c2p_core.h b/kernel/drivers/video/fbdev/c2p_core.h
index e1035a8..cf5f1eb 100644
--- a/kernel/drivers/video/fbdev/c2p_core.h
+++ b/kernel/drivers/video/fbdev/c2p_core.h
@@ -12,6 +12,8 @@
* for more details.
*/
+#include <linux/build_bug.h>
+
/*
* Basic transpose step
@@ -27,9 +29,7 @@
}
-extern void c2p_unsupported(void);
-
-static inline u32 get_mask(unsigned int n)
+static __always_inline u32 get_mask(unsigned int n)
{
switch (n) {
case 1:
@@ -48,7 +48,7 @@
return 0x0000ffff;
}
- c2p_unsupported();
+ BUILD_BUG();
return 0;
}
@@ -57,7 +57,7 @@
* Transpose operations on 8 32-bit words
*/
-static inline void transp8(u32 d[], unsigned int n, unsigned int m)
+static __always_inline void transp8(u32 d[], unsigned int n, unsigned int m)
{
u32 mask = get_mask(n);
@@ -91,7 +91,7 @@
return;
}
- c2p_unsupported();
+ BUILD_BUG();
}
@@ -99,7 +99,7 @@
* Transpose operations on 4 32-bit words
*/
-static inline void transp4(u32 d[], unsigned int n, unsigned int m)
+static __always_inline void transp4(u32 d[], unsigned int n, unsigned int m)
{
u32 mask = get_mask(n);
@@ -118,7 +118,7 @@
return;
}
- c2p_unsupported();
+ BUILD_BUG();
}
@@ -126,7 +126,7 @@
* Transpose operations on 4 32-bit words (reverse order)
*/
-static inline void transp4x(u32 d[], unsigned int n, unsigned int m)
+static __always_inline void transp4x(u32 d[], unsigned int n, unsigned int m)
{
u32 mask = get_mask(n);
@@ -138,7 +138,7 @@
return;
}
- c2p_unsupported();
+ BUILD_BUG();
}
--
Gitblit v1.6.2