[PATCH v3 0/2] Improve type-safety on POWER_DOMAIN_*() macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix one issue[1] reported by the kernel test robot and also take this
opportunity to improve POWER_DOMAIN_*() macros by making them explicitly
return the expected enum type with patch #2.

I decided to send this new version with patch #3 dropped in order to get
CI results and merge the already reviewed patches #1 and #2. Patch #3
from the previous version is still under discussion and will probably be
respinned as a standalone patch.

[1] https://lore.kernel.org/oe-kbuild-all/202502120809.XfmcqkBD-lkp@xxxxxxxxx/

---
Gustavo Sousa (2):
      drm/i915/display: Use explicit base values in POWER_DOMAIN_*() macros
      drm/i915/display: Make POWER_DOMAIN_*() always result in enum intel_display_power_domain

 drivers/gpu/drm/i915/display/intel_display_power.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
base-commit: 6badede10d92c242241bd7bf59a5488b5eba5aa7
change-id: 20250227-improve-type-safey-power-domain-macros-8bf2a14f43f9

Best regards,
-- 
Gustavo Sousa <gustavo.sousa@xxxxxxxxx>




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux