drm/i915: Fix build with WERROR=y
Subsystems (2)
PATCH 1/1 drm/i915: Fix build with WERROR=y
From: Ville Syrjälä <[email protected]>
Remove the unused i915 variable to fix the build with WERROR=y.
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/gt/intel_workarounds.c +0 -2
@@ -1476,8 +1476,6 @@ gen12_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)static void dg1_gt_workarounds_init (struct intel_gt *gt,struct i915_wa_list *wal) { -struct drm_i915_private *i915 = gt->i915; -gen12_gt_workarounds_init (gt, wal);/* Wa_1409420604:dg1 */
Signature · 1 line
2.39.2
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Remove the unused i915 variable to fix the build with WERROR=y.
Cc Lucas De Marchi <[email protected]>Fixes d1b3657fb5b6 ("drm/i915: Remove redundant check for DG1")Signed-off-by Ville Syrjälä <[email protected]>
Quoted 3 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Remove the unused i915 variable to fix the build with WERROR=y.
Argh. Turns out this is actually caused by
commit 69ea87e1591a ("drm/i915/dg1: Drop support for pre-production steppings") being merged through drm-intel-next instead of drm-intel-gt-next.
So both drm-intel-next and drm-intel-gt-next still needs that i915 pointer, and only when both are merged to drm-tip we need to get rid of it.
In the future it would be better to stick to the gt vs. not-gt split more rigorously to avoid such issues.
I guess I'll need to do a fixup patch now...
Quoted 23 lines
Cc Lucas De Marchi <[email protected]>Fixes d1b3657fb5b6 ("drm/i915: Remove redundant check for DG1")Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-2@@ -1476,8 +1476,6 @@ gen12_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)static void dg1_gt_workarounds_init (struct intel_gt *gt,struct i915_wa_list *wal) { -struct drm_i915_private *i915 = gt->i915; -gen12_gt_workarounds_init (gt, wal);/* Wa_1409420604:dg1 */ Signature · 1 line
2.39.2
Signature · 2 lines
Ville Syrjälä Intel
Quoted 9 lines · Ville Syrjälä
Quoted 3 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Remove the unused i915 variable to fix the build with WERROR=y.
Argh. Turns out this is actually caused by
commit69ea87e1591a("drm/i915/dg1: Drop support for pre-production steppings") being merged through drm-intel-next instead of drm-intel-gt-next.
Quoted 8 lines
So both drm-intel-next and drm-intel-gt-next still needs that i915 pointer, and only when both are merged to drm-tip we need to get rid of it.
In the future it would be better to stick to the gt vs. not-gt split more rigorously to avoid such issues.
I guess I'll need to do a fixup patch now...
Fixup in place, drm-tip builds again.
Quoted 28 lines
Quoted 24 lines
Cc Lucas De Marchi <[email protected]>Fixes d1b3657fb5b6 ("drm/i915: Remove redundant check for DG1")Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-2@@ -1476,8 +1476,6 @@ gen12_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)static void dg1_gt_workarounds_init (struct intel_gt *gt,struct i915_wa_list *wal) { -struct drm_i915_private *i915 = gt->i915; -gen12_gt_workarounds_init (gt, wal);/* Wa_1409420604:dg1 */ Signature · 1 line
2.39.2Signature · 2 lines
Ville Syrjälä Intel
Signature · 2 lines
Ville Syrjälä Intel
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Fix build with WERROR=y
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Fix build with WERROR=y
URL : https://patchwork.freedesktop.org/series/115046/
State : failure
== Summary ==
Error: make failed
CALL scripts/checksyscalls.sh
DESCEND objtool
INSTALL libsubcmd_headers
CC [M] drivers/gpu/drm/i915/gt/intel_workarounds.o
In file included from drivers/gpu/drm/i915/gt/intel_workarounds.c:6:drivers/gpu/drm/i915/gt/intel_workarounds.c: In function ‘dg1_gt_workarounds_init’:drivers/gpu/drm/i915/gt/intel_workarounds.c:1482:13: error: ‘i915’ undeclared (first use in this function); did you mean ‘to_i915’?
1482 | if (IS_DG1(i915))
| ^~~~
./drivers/gpu/drm/i915/i915_drv.h:559:45: note: in definition of macro ‘IS_DG1’
559 | #define IS_DG1(dev_priv) IS_PLATFORM(dev_priv, INTEL_DG1)
| ^~~~~~~~drivers/gpu/drm/i915/gt/intel_workarounds.c:1482:13: note: each undeclared identifier is reported only once for each function it appears in
1482 | if (IS_DG1(i915))
| ^~~~
./drivers/gpu/drm/i915/i915_drv.h:559:45: note: in definition of macro ‘IS_DG1’
559 | #define IS_DG1(dev_priv) IS_PLATFORM(dev_priv, INTEL_DG1)
| ^~~~~~~~
make[5]: *** [scripts/Makefile.build:252: drivers/gpu/drm/i915/gt/intel_workarounds.o] Error 1 make[4]: *** [scripts/Makefile.build:494: drivers/gpu/drm/i915] Error 2 make[3]: *** [scripts/Makefile.build:494: drivers/gpu/drm] Error 2
make[2]: *** [scripts/Makefile.build:494: drivers/gpu] Error 2
make[1]: *** [scripts/Makefile.build:494: drivers] Error 2
make: *** [Makefile:2028: .] Error 2
Re: [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Fix build with WERROR=y
Quoted 8 lines · Patchwork
== Series Details ==
Series: drm/i915: Fix build with WERROR=y
URL : https://patchwork.freedesktop.org/series/115046/
State : failure== Summary ==
Quoted 8 lines
Error: make failed
CALLscripts/checksyscalls.sh
DESCEND objtool
INSTALLlibsubcmd_headers
CC [M]drivers/gpu/drm/i915/gt/intel_workarounds.o
In file included fromdrivers/gpu/drm/i915/gt/intel_workarounds.c:6:drivers/gpu/drm/i915/gt/intel_workarounds.c: In function ‘dg1_gt_workarounds_init’:drivers/gpu/drm/i915/gt/intel_workarounds.c:1482:13: error: ‘i915’ undeclared (first use in this function); did you mean ‘to_i915’?
Huh. I guess CI keeps on trying to build against the last succesfully built drm-tip tag? But there is no hint here about that...
Ewelina, this seems to be another place where CI needs improvements:
- report the baseline against which the patch was applied
- report drm-tip build failures
Quoted 18 lines
1482 | if (
IS_DG1(i915))| ^~~~
./drivers/gpu/drm/i915/i915_drv.h:559:45: note: in definition of macro ‘IS_DG1’
559 | #defineIS_DG1(dev_priv)IS_PLATFORM(dev_priv, INTEL_DG1)
| ^~~~~~~~drivers/gpu/drm/i915/gt/intel_workarounds.c:1482:13: note: each undeclared identifier is reported only once for each function it appears in
1482 | if (IS_DG1(i915))| ^~~~
./drivers/gpu/drm/i915/i915_drv.h:559:45: note: in definition of macro ‘IS_DG1’
559 | #defineIS_DG1(dev_priv)IS_PLATFORM(dev_priv, INTEL_DG1)
| ^~~~~~~~
make[5]: *** [scripts/Makefile.build:252:drivers/gpu/drm/i915/gt/intel_workarounds.o] Error 1 make[4]: *** [scripts/Makefile.build:494:drivers/gpu/drm/i915] Error 2 make[3]: *** [scripts/Makefile.build:494:drivers/gpu/drm] Error 2
make[2]: *** [scripts/Makefile.build:494:drivers/gpu] Error 2
make[1]: *** [scripts/Makefile.build:494: drivers] Error 2
make: *** [Makefile:2028: .] Error 2
Signature · 2 lines
Ville Syrjälä Intel
Re: [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Fix build with WERROR=y
@SCG SCSS CI - please take a look
-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: poniedziałek, 13 marca 2023 12:09
To: [email protected]
Cc: Musial, Ewelina <[email protected]>
Subject: Re: ✗ Fi.CI.BUILD: failure for drm/i915: Fix build with WERROR=y
Quoted 8 lines · Patchwork
== Series Details ==
Series: drm/i915: Fix build with WERROR=y
URL : https://patchwork.freedesktop.org/series/115046/
State : failure== Summary ==
Quoted 8 lines
Error: make failed
CALLscripts/checksyscalls.sh
DESCEND objtool
INSTALLlibsubcmd_headers
CC [M]drivers/gpu/drm/i915/gt/intel_workarounds.o
In file included fromdrivers/gpu/drm/i915/gt/intel_workarounds.c:6:drivers/gpu/drm/i915/gt/intel_workarounds.c: In function ‘dg1_gt_workarounds_init’:drivers/gpu/drm/i915/gt/intel_workarounds.c:1482:13: error: ‘i915’ undeclared (first use in this function); did you mean ‘to_i915’?
Huh. I guess CI keeps on trying to build against the last succesfully built drm-tip tag? But there is no hint here about that...
Ewelina, this seems to be another place where CI needs improvements:
- report the baseline against which the patch was applied
- report drm-tip build failures
Quoted 10 lines
1482 | if (
IS_DG1(i915))| ^~~~
./drivers/gpu/drm/i915/i915_drv.h:559:45: note: in definition of macro ‘IS_DG1’
559 | #defineIS_DG1(dev_priv)IS_PLATFORM(dev_priv, INTEL_DG1)
| ^~~~~~~~drivers/gpu/drm/i915/gt/intel_workarounds.c:1482:13: note: each undeclared identifier is reported only once for each function it appears in
1482 | if (IS_DG1(i915))| ^~~~
Quoted 12 lines
./drivers/gpu/drm/i915/i915_drv.h:559:45: note: in definition of macro ‘IS_DG1’
559 | #defineIS_DG1(dev_priv)IS_PLATFORM(dev_priv, INTEL_DG1)
| ^~~~~~~~
make[5]: *** [scripts/Makefile.build:252:drivers/gpu/drm/i915/gt/intel_workarounds.o] Error 1
make[4]: *** [scripts/Makefile.build:494:drivers/gpu/drm/i915] Error 2
make[3]: *** [scripts/Makefile.build:494:drivers/gpu/drm] Error 2 make[2]: *** [scripts/Makefile.build:494:drivers/gpu] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2
make: *** [Makefile:2028: .] Error 2
--
Ville Syrjälä
Intel