I got the compile error: drivers/gpu/drm/msm/msm_gem_shrinker.c: In function ‘can_block’: drivers/gpu/drm/msm/msm_gem_shrinker.c:29:21: error: ‘__GFP_ATOMIC’ undeclared (first use in this function); did you mean ‘GFP_ATOMIC’? if (sc->gfp_mask & __GFP_ATOMIC) ^~~~~~~~~~~~ GFP_ATOMIC drivers/gpu/drm/msm/msm_gem_shrinker.c:29:21: note: each undeclared identifier is reported only once for each function it appears in __GFP_ATOMIC is dropped by commit 6708fe6bec50 ("mm: discard __GFP_ATOMIC"). Use __GFP_HIGH instead. Fixes: 025d27239a2f ("drm/msm/gem: Evict active GEM objects when necessary") Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> --- drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gem_shrinker.c b/drivers/gpu/drm/msm/msm_gem_shrinker.c index 58e0513be5f4..6a0de6cdb82b 100644 --- a/drivers/gpu/drm/msm/msm_gem_shrinker.c +++ b/drivers/gpu/drm/msm/msm_gem_shrinker.c @@ -26,7 +26,7 @@ static bool can_swap(void) static bool can_block(struct shrink_control *sc) { - if (sc->gfp_mask & __GFP_ATOMIC) + if (sc->gfp_mask & __GFP_HIGH) return false; return current_is_kswapd() || (sc->gfp_mask & __GFP_RECLAIM); } -- 2.25.1