| .. | .. |
|---|
| 12 | 12 | * for more details. |
|---|
| 13 | 13 | */ |
|---|
| 14 | 14 | |
|---|
| 15 | +#include <linux/build_bug.h> |
|---|
| 16 | + |
|---|
| 15 | 17 | |
|---|
| 16 | 18 | /* |
|---|
| 17 | 19 | * Basic transpose step |
|---|
| .. | .. |
|---|
| 27 | 29 | } |
|---|
| 28 | 30 | |
|---|
| 29 | 31 | |
|---|
| 30 | | -extern void c2p_unsupported(void); |
|---|
| 31 | | - |
|---|
| 32 | | -static inline u32 get_mask(unsigned int n) |
|---|
| 32 | +static __always_inline u32 get_mask(unsigned int n) |
|---|
| 33 | 33 | { |
|---|
| 34 | 34 | switch (n) { |
|---|
| 35 | 35 | case 1: |
|---|
| .. | .. |
|---|
| 48 | 48 | return 0x0000ffff; |
|---|
| 49 | 49 | } |
|---|
| 50 | 50 | |
|---|
| 51 | | - c2p_unsupported(); |
|---|
| 51 | + BUILD_BUG(); |
|---|
| 52 | 52 | return 0; |
|---|
| 53 | 53 | } |
|---|
| 54 | 54 | |
|---|
| .. | .. |
|---|
| 57 | 57 | * Transpose operations on 8 32-bit words |
|---|
| 58 | 58 | */ |
|---|
| 59 | 59 | |
|---|
| 60 | | -static inline void transp8(u32 d[], unsigned int n, unsigned int m) |
|---|
| 60 | +static __always_inline void transp8(u32 d[], unsigned int n, unsigned int m) |
|---|
| 61 | 61 | { |
|---|
| 62 | 62 | u32 mask = get_mask(n); |
|---|
| 63 | 63 | |
|---|
| .. | .. |
|---|
| 91 | 91 | return; |
|---|
| 92 | 92 | } |
|---|
| 93 | 93 | |
|---|
| 94 | | - c2p_unsupported(); |
|---|
| 94 | + BUILD_BUG(); |
|---|
| 95 | 95 | } |
|---|
| 96 | 96 | |
|---|
| 97 | 97 | |
|---|
| .. | .. |
|---|
| 99 | 99 | * Transpose operations on 4 32-bit words |
|---|
| 100 | 100 | */ |
|---|
| 101 | 101 | |
|---|
| 102 | | -static inline void transp4(u32 d[], unsigned int n, unsigned int m) |
|---|
| 102 | +static __always_inline void transp4(u32 d[], unsigned int n, unsigned int m) |
|---|
| 103 | 103 | { |
|---|
| 104 | 104 | u32 mask = get_mask(n); |
|---|
| 105 | 105 | |
|---|
| .. | .. |
|---|
| 118 | 118 | return; |
|---|
| 119 | 119 | } |
|---|
| 120 | 120 | |
|---|
| 121 | | - c2p_unsupported(); |
|---|
| 121 | + BUILD_BUG(); |
|---|
| 122 | 122 | } |
|---|
| 123 | 123 | |
|---|
| 124 | 124 | |
|---|
| .. | .. |
|---|
| 126 | 126 | * Transpose operations on 4 32-bit words (reverse order) |
|---|
| 127 | 127 | */ |
|---|
| 128 | 128 | |
|---|
| 129 | | -static inline void transp4x(u32 d[], unsigned int n, unsigned int m) |
|---|
| 129 | +static __always_inline void transp4x(u32 d[], unsigned int n, unsigned int m) |
|---|
| 130 | 130 | { |
|---|
| 131 | 131 | u32 mask = get_mask(n); |
|---|
| 132 | 132 | |
|---|
| .. | .. |
|---|
| 138 | 138 | return; |
|---|
| 139 | 139 | } |
|---|
| 140 | 140 | |
|---|
| 141 | | - c2p_unsupported(); |
|---|
| 141 | + BUILD_BUG(); |
|---|
| 142 | 142 | } |
|---|
| 143 | 143 | |
|---|
| 144 | 144 | |
|---|