From: Lucas De Marchi Date: Tue, 3 May 2022 06:15:56 +0000 (-0700) Subject: drm/i915/gem: Make drop_pages() return bool X-Git-Tag: v6.6.17~3937^2~16^2~847 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=429e1fc1b2c257f35b6a1318eb3a1ffb80bc6640;p=platform%2Fkernel%2Flinux-rpi.git drm/i915/gem: Make drop_pages() return bool Commit e4e806253003 ("drm/i915: Change shrink ordering to use locking around unbinding.") changed the return type to int without changing the return values or their meaning to "0 is success". Move it back to boolean. Signed-off-by: Lucas De Marchi Reviewed-by: Nirmoy Das Link: https://patchwork.freedesktop.org/patch/msgid/20220503061556.513175-1-lucas.demarchi@intel.com --- diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c b/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c index 6a6ff98..1030053 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c @@ -36,7 +36,7 @@ static bool can_release_pages(struct drm_i915_gem_object *obj) return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; } -static int drop_pages(struct drm_i915_gem_object *obj, +static bool drop_pages(struct drm_i915_gem_object *obj, unsigned long shrink, bool trylock_vm) { unsigned long flags;