linux-next: build failure after merge of the mm tree
Hi all,
After merging the mm tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
drivers/gpu/drm/msm/msm_gem_shrinker.c: In function 'can_block':drivers/gpu/drm/msm/msm_gem_shrinker.c:29:28: error: '__GFP_ATOMIC' undeclared (first use in this function); did you mean 'GFP_ATOMIC'?
29 | if (sc->gfp_mask & __GFP_ATOMIC)
| ^~~~~~~~~~~~
| GFP_ATOMICCaused by commit
9178e3dcb121 ("mm: discard __GFP_ATOMIC")
interacting with commit
025d27239a2f ("drm/msm/gem: Evict active GEM objects when necessary")
from the drm-msm tree.
I have reverted the drm-msm tree commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
It looks like, at least for now, I can replace sc->gfp_mask & __GFP_ATOMIC with !(sc->gfp_mask & __GFP_DIRECT_RECLAIM).. I'm not sure if there would be any cases where we could otherwise sleep but __GFP_DIRECT_RECLAIM is not set?
BR,
-R
Quoted 27 lines · Stephen Rothwell
Hi all,
After merging the mm tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/gpu/drm/msm/msm_gem_shrinker.c: In function 'can_block':drivers/gpu/drm/msm/msm_gem_shrinker.c:29:28: error: '__GFP_ATOMIC' undeclared (first use in this function); did you mean 'GFP_ATOMIC'?29 | if (sc->gfp_mask & __GFP_ATOMIC) | ^~~~~~~~~~~~ | GFP_ATOMICCaused by commit
9178e3dcb121("mm: discard__GFP_ATOMIC")interacting with commit
025d27239a2f("drm/msm/gem: Evict active GEM objects when necessary")from the drm-msm tree.
I have reverted the drm-msm tree commit for today.
--
Cheers,
Stephen Rothwell
Hi Rob,
Quoted 5 lines · On Tue, 6 Sep 2022 05:05:32 -0700 Rob Clark <[email protected]> wrote:
It looks like, at least for now, I can replace
sc->gfp_mask & __GFP_ATOMICwith!(sc->gfp_mask & __GFP_DIRECT_RECLAIM).. I'm not sure if there would be any cases where we could otherwise sleep but__GFP_DIRECT_RECLAIMis not set?
The commit message for 9178e3dcb121 seems to say that would be correct.
Signature · 2 lines
Cheers, Stephen Rothwell