[Intel-xe] [PATCH 06/10] fixup! drm/xe/display: Implement display support

Jani Nikula jani.nikula at intel.com
Wed Oct 4 16:31:53 UTC 2023


On Wed, 04 Oct 2023, Lucas De Marchi <lucas.demarchi at intel.com> wrote:
> On Tue, Oct 03, 2023 at 05:34:53PM +0300, Jani Nikula wrote:
>>The diag push/pop stuff is unnecessary leftovers.
>>
>>Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>>---
>> drivers/gpu/drm/xe/xe_display.c | 5 -----
>> 1 file changed, 5 deletions(-)
>>
>>diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
>>index 82d2c42629ce..391f08c1caca 100644
>>--- a/drivers/gpu/drm/xe/xe_display.c
>>+++ b/drivers/gpu/drm/xe/xe_display.c
>>@@ -417,10 +417,6 @@ void xe_display_pm_resume(struct xe_device *xe)
>> 	intel_power_domains_enable(xe);
>> }
>>
>>-/* Display info initialization */
>>-__diag_push();
>>-__diag_ignore_all("-Woverride-init", "Allow field overrides in table");
>>-
>
> is it?

There are no struct initializers within the scope of the above diag
push/pop.

> drivers/gpu/drm/xe/Makefile:CFLAGS_i915-display/intel_fbdev.o = $(call cc-disable-warning, override-init)
> drivers/gpu/drm/xe/Makefile:CFLAGS_i915-display/intel_display_device.o = $(call cc-disable-warning, override-init)
> drivers/gpu/drm/xe/xe_display.c:__diag_ignore_all("-Woverride-init", "Allow field overrides in table");
>
> there's no disable-warning for xe_display.c
>
> Btw, doing it by file is much worse as it ignores the warnings in places
> we shouldn't. Old compilers that don't support it also don't warn about
> override-init, so we could have a better helper for that.

That's not exactly correct, though. We had to revert __diag_ignore_all
for -Woverride-init from upstream i915, and I'm pretty sure xe will have
the same fate.

All the gory details in commit 2c27770a7bc8 ("Revert "drm/i915: use
localized __diag_ignore_all() instead of per file"").

BR,
Jani.


>
> Lucas De Marchi
>
>> void xe_display_probe(struct xe_device *xe)
>> {
>> 	if (!xe->info.enable_display)
>>@@ -435,4 +431,3 @@ void xe_display_probe(struct xe_device *xe)
>> 	xe->info.enable_display = false;
>> 	unset_display_features(xe);
>> }
>>-__diag_pop();
>>-- 
>>2.39.2
>>

-- 
Jani Nikula, Intel


More information about the Intel-xe mailing list