Commit 4bce4e98 authored by Chris Wilson's avatar Chris Wilson Committed by Rodrigo Vivi

drm/i915: Silence sparse by using gfp_t

Sparse enforces that GFP flags are only manipulated inside gfp_t locals.

Fixes: 4d470f73 ("drm/i915: Avoid undefined behaviour of "u32 >> 32"")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170901145729.21363-1-chris@chris-wilson.co.ukReviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
(cherry picked from commit 0d95c883)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 6910d852
...@@ -285,7 +285,7 @@ static int eb_create(struct i915_execbuffer *eb) ...@@ -285,7 +285,7 @@ static int eb_create(struct i915_execbuffer *eb)
* direct lookup. * direct lookup.
*/ */
do { do {
unsigned int flags; gfp_t flags;
/* While we can still reduce the allocation size, don't /* While we can still reduce the allocation size, don't
* raise a warning and allow the allocation to fail. * raise a warning and allow the allocation to fail.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment