drm/msm: Fix build break with recent mm tree
PATCH 1/1 drm/msm: Fix build break with recent mm tree
From: Rob Clark <[email protected]>
9178e3dcb121 ("mm: discard __GFP_ATOMIC") removed __GFP_ATOMIC, replacing it with a check for not __GFP_DIRECT_RECLAIM.
---
Sorry, this was reported by Stephen earlier in the month, while I was on the other side of the globe and jetlagged. Unfortunately I forgot about it by the time I got back home. Applying this patch after 025d27239a2f ("drm/msm/gem: Evict active GEM objects when necessary") but before or after 9178e3dcb121 ("mm: discard __GFP_ATOMIC") should resolve the build breakage.
drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_gem_shrinker.c +1 -1
@@ -27,7 +27,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_DIRECT_RECLAIM))return false;return current_is_kswapd () || (sc->gfp_mask & __GFP_RECLAIM); }
Signature · 1 line
2.37.2
Quoted 8 lines · Rob Clark
From: Rob Clark <[email protected]>
9178e3dcb121("mm: discard__GFP_ATOMIC") removed__GFP_ATOMIC, replacing it with a check for not__GFP_DIRECT_RECLAIM.Reported-by Randy Dunlap <[email protected]>Reported-by Stephen Rothwell <[email protected]>Signed-off-by Rob Clark <[email protected]>
Thanks.
Quoted 24 lines
---
Sorry, this was reported by Stephen earlier in the month, while I was on the other side of the globe and jetlagged. Unfortunately I forgot about it by the time I got back home. Applying this patch after025d27239a2f("drm/msm/gem: Evict active GEM objects when necessary") but before or after9178e3dcb121("mm: discard__GFP_ATOMIC") should resolve the build breakage.drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/msm/msm_gem_shrinker.c +1
-1@@ -27,7 +27,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_DIRECT_RECLAIM))return false;return current_is_kswapd () || (sc->gfp_mask & __GFP_RECLAIM); }
Signature · 1 line
~Randy