Skip to content

Commit

Permalink
drm/i915: Silence sparse by using gfp_t
Browse files Browse the repository at this point in the history
Sparse enforces that GFP flags are only manipulated inside gfp_t locals.

Fixes: 4d470f7 ("drm/i915: Avoid undefined behaviour of "u32 >> 32"")
Signed-off-by: Chris 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.uk
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
  • Loading branch information
Chris Wilson committed Sep 5, 2017
1 parent d149d6a commit 0d95c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int eb_create(struct i915_execbuffer *eb)
* direct lookup.
*/
do {
unsigned int flags;
gfp_t flags;

/* While we can still reduce the allocation size, don't
* raise a warning and allow the allocation to fail.
Expand Down

0 comments on commit 0d95c88

Please sign in to comment.