File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ static inline void kvm_disable_steal_time(void)
141
141
return ;
142
142
}
143
143
144
- static inline bool kvm_handle_async_pf (struct pt_regs * regs , u32 token )
144
+ static __always_inline bool kvm_handle_async_pf (struct pt_regs * regs , u32 token )
145
145
{
146
146
return false;
147
147
}
Original file line number Diff line number Diff line change @@ -823,7 +823,7 @@ static inline void prefetch(const void *x)
823
823
* Useful for spinlocks to avoid one state transition in the
824
824
* cache coherency protocol:
825
825
*/
826
- static inline void prefetchw (const void * x )
826
+ static __always_inline void prefetchw (const void * x )
827
827
{
828
828
alternative_input (BASE_PREFETCH , "prefetchw %P1" ,
829
829
X86_FEATURE_3DNOWPREFETCH ,
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ static inline unsigned long native_read_cr0(void)
28
28
return val ;
29
29
}
30
30
31
- static inline unsigned long native_read_cr2 (void )
31
+ static __always_inline unsigned long native_read_cr2 (void )
32
32
{
33
33
unsigned long val ;
34
34
asm volatile ("mov %%cr2,%0\n\t" : "=r" (val ), "=m" (__force_order ));
35
35
return val ;
36
36
}
37
37
38
- static inline void native_write_cr2 (unsigned long val )
38
+ static __always_inline void native_write_cr2 (unsigned long val )
39
39
{
40
40
asm volatile ("mov %0,%%cr2" : : "r" (val ), "m" (__force_order ));
41
41
}
@@ -160,12 +160,12 @@ static inline void write_cr0(unsigned long x)
160
160
native_write_cr0 (x );
161
161
}
162
162
163
- static inline unsigned long read_cr2 (void )
163
+ static __always_inline unsigned long read_cr2 (void )
164
164
{
165
165
return native_read_cr2 ();
166
166
}
167
167
168
- static inline void write_cr2 (unsigned long x )
168
+ static __always_inline void write_cr2 (unsigned long x )
169
169
{
170
170
native_write_cr2 (x );
171
171
}
You can’t perform that action at this time.
0 commit comments