File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -498,23 +498,16 @@ struct hmm_device {
498
498
struct hmm_device * hmm_device_new (void * drvdata );
499
499
void hmm_device_put (struct hmm_device * hmm_device );
500
500
#endif /* CONFIG_DEVICE_PRIVATE || CONFIG_DEVICE_PUBLIC */
501
- #endif /* IS_ENABLED(CONFIG_HMM) */
502
501
503
502
/* Below are for HMM internal use only! Not to be used by device driver! */
504
- #if IS_ENABLED (CONFIG_HMM_MIRROR )
505
503
void hmm_mm_destroy (struct mm_struct * mm );
506
504
507
505
static inline void hmm_mm_init (struct mm_struct * mm )
508
506
{
509
507
mm -> hmm = NULL ;
510
508
}
511
- #else /* IS_ENABLED(CONFIG_HMM_MIRROR) */
512
- static inline void hmm_mm_destroy (struct mm_struct * mm ) {}
513
- static inline void hmm_mm_init (struct mm_struct * mm ) {}
514
- #endif /* IS_ENABLED(CONFIG_HMM_MIRROR) */
515
-
516
-
517
509
#else /* IS_ENABLED(CONFIG_HMM) */
518
510
static inline void hmm_mm_destroy (struct mm_struct * mm ) {}
519
511
static inline void hmm_mm_init (struct mm_struct * mm ) {}
512
+ #endif /* IS_ENABLED(CONFIG_HMM) */
520
513
#endif /* LINUX_HMM_H */
You can’t perform that action at this time.
0 commit comments