linux/drivers/gpu/drm/i915/gem
Lucas De Marchi 1a839e016e drm/i915: remove IS_ACTIVE
When trying to bring IS_ACTIVE to linux/kconfig.h I thought it wouldn't
provide much value just encapsulating it in a boolean context. So I also
added the support for handling undefined macros as the IS_ENABLED()
counterpart. However the feedback received from Masahiro Yamada was that
it is too ugly, not providing much value. And just wrapping in a boolean
context is too dumb - we could simply open code it.

As detailed in commit babaab2f47 ("drm/i915: Encapsulate kconfig
constant values inside boolean predicates"), the IS_ACTIVE macro was
added to workaround a compilation warning. However after checking again
our current uses of IS_ACTIVE it turned out there is only
1 case in which it triggers a warning in clang (due
-Wconstant-logical-operand) and 2 in smatch. All the others
can simply use the shorter version, without wrapping it in any macro.

So here I'm dialing all the way back to simply removing the macro. That
single case hit by clang can be changed to make the constant come first,
so it doesn't think it's mask:

	-       if (context && CONFIG_DRM_I915_FENCE_TIMEOUT)
	+       if (CONFIG_DRM_I915_FENCE_TIMEOUT && context)

As talked with Dan Carpenter, that logic will be added in smatch as
well, so it will also stop warning about it.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211005171728.3147094-1-lucas.demarchi@intel.com
2021-10-07 11:04:05 -07:00
..
selftests drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_busy.c dma-buf: drop the _rcu postfix on function names v3 2021-06-06 11:19:51 +02:00
i915_gem_clflush.c drm/i915: Drop error handling from dma_fence_work 2021-07-16 21:47:39 +02:00
i915_gem_clflush.h
i915_gem_context_types.h drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_context.c drm/i915: remove IS_ACTIVE 2021-10-07 11:04:05 -07:00
i915_gem_context.h drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_create.c drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_dmabuf.c drm/i915/gem: Migrate to system at dma-buf attach time (v7) 2021-07-26 16:37:38 +01:00
i915_gem_domain.c drm/i915/uapi: reject set_domain for discrete 2021-07-23 11:55:32 +01:00
i915_gem_execbuffer.c drm/i915/pxp: Add plane decryption support 2021-10-04 13:11:16 -04:00
i915_gem_internal.c Merge branch 'stable/for-linus-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb 2021-09-03 10:34:44 -07:00
i915_gem_ioctls.h drm/i915/uapi: introduce drm_i915_gem_create_ext 2021-05-04 10:58:56 +01:00
i915_gem_lmem.c drm/i915/gem: Fix a lockdep warning the __i915_gem_is_lmem() function 2021-09-24 08:17:39 +02:00
i915_gem_lmem.h drm/i915/guc: put all guc objects in lmem when available 2021-09-20 12:35:41 -07:00
i915_gem_mman.c drm/i915: remove IS_ACTIVE 2021-10-07 11:04:05 -07:00
i915_gem_mman.h
i915_gem_object_types.h drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_object.c drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_object.h drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
i915_gem_pages.c drm/i915: Remove allow_alloc from i915_gem_object_get_sg* 2021-07-16 21:47:07 +02:00
i915_gem_phys.c drm/i915: Update object placement flags to be mutable 2021-06-24 18:50:56 +01:00
i915_gem_pm.c drm/i915: Reduce the number of objects subject to memcpy recover 2021-09-24 08:19:16 +02:00
i915_gem_pm.h drm/i915 Implement LMEM backup and restore for suspend / resume 2021-09-24 08:19:11 +02:00
i915_gem_region.c drm/i915/gem: Implement a function to process all gem objects of a region 2021-09-24 08:19:09 +02:00
i915_gem_region.h drm/i915/gem: Implement a function to process all gem objects of a region 2021-09-24 08:19:09 +02:00
i915_gem_shmem.c drm/i915/ehl: unconditionally flush the pages on acquire 2021-07-27 09:16:46 +01:00
i915_gem_shrinker.c drm/i915: Fix runtime pm handling in i915_gem_shrink 2021-09-29 10:50:59 +02:00
i915_gem_shrinker.h drm/i915: Finally remove obj->mm.lock. 2021-03-24 17:47:20 +01:00
i915_gem_stolen.c Merge tag 'drm-intel-next-2021-08-10-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2021-08-12 11:20:17 +10:00
i915_gem_stolen.h drm/i915/ttm Initialize the ttm device and memory managers 2021-06-02 13:21:24 +01:00
i915_gem_throttle.c drm/i915/gem: Remove disordered per-file request list for throttling 2020-09-07 13:13:50 +03:00
i915_gem_tiling.c drm/i915/gem: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:43 -07:00
i915_gem_ttm_pm.c drm/i915: Reduce the number of objects subject to memcpy recover 2021-09-24 08:19:16 +02:00
i915_gem_ttm_pm.h drm/i915 Implement LMEM backup and restore for suspend / resume 2021-09-24 08:19:11 +02:00
i915_gem_ttm.c drm/i915/ttm: Rework object initialization slightly 2021-10-01 13:11:58 +02:00
i915_gem_ttm.h drm/i915 Implement LMEM backup and restore for suspend / resume 2021-09-24 08:19:11 +02:00
i915_gem_userptr.c RDMA v5.15 merge window Pull Request 2021-09-02 14:47:21 -07:00
i915_gem_wait.c drm/i915/gem: Implement object migration 2021-06-30 11:32:11 +01:00
i915_gemfs.c drm/i915: Use Transparent Hugepages when IOMMU is enabled 2021-09-10 14:29:19 +01:00
i915_gemfs.h