@@ -3249,7 +3249,6 @@ enum mf_flags {
3249
3249
int mf_dax_kill_procs (struct address_space * mapping , pgoff_t index ,
3250
3250
unsigned long count , int mf_flags );
3251
3251
extern int memory_failure (unsigned long pfn , int flags );
3252
- extern void memory_failure_queue (unsigned long pfn , int flags );
3253
3252
extern void memory_failure_queue_kick (int cpu );
3254
3253
extern int unpoison_memory (unsigned long pfn );
3255
3254
extern int sysctl_memory_failure_early_kill ;
@@ -3258,11 +3257,16 @@ extern void shake_page(struct page *p);
3258
3257
extern atomic_long_t num_poisoned_pages __read_mostly ;
3259
3258
extern int soft_offline_page (unsigned long pfn , int flags );
3260
3259
#ifdef CONFIG_MEMORY_FAILURE
3260
+ extern void memory_failure_queue (unsigned long pfn , int flags );
3261
3261
extern int __get_huge_page_for_hwpoison (unsigned long pfn , int flags ,
3262
3262
bool * migratable_cleared );
3263
3263
void num_poisoned_pages_inc (unsigned long pfn );
3264
3264
void num_poisoned_pages_sub (unsigned long pfn , long i );
3265
3265
#else
3266
+ static inline void memory_failure_queue (unsigned long pfn , int flags )
3267
+ {
3268
+ }
3269
+
3266
3270
static inline int __get_huge_page_for_hwpoison (unsigned long pfn , int flags ,
3267
3271
bool * migratable_cleared )
3268
3272
{
0 commit comments