Skip to contentSkip to conversation

i915 build issue

DISCUSSION John Garry 2 participants 4 messages Jul 11, 2023

lore
Share & tools
lore

John Garry

author
#0 lore raw

Hi guys,

Did anyone else notice this build issue on v6.5-rc1:

drivers/gpu/drm/i915/i915_pci.c:143:15: error: expected expression before ‘,’ token
GEN3_FEATURES,

               ^
drivers/gpu/drm/i915/i915_pci.c:151:15: error: expected expression
before ‘,’ token
  GEN3_FEATURES,
               ^
drivers/gpu/drm/i915/i915_pci.c:159:15: error: expected expression
before ‘,’ token
  GEN3_FEATURES,
               ^
drivers/gpu/drm/i915/i915_pci.c:166:15: error: expected expression
before ‘,’ token
  GEN3_FEATURES,
               ^
drivers/gpu/drm/i915/i915_pci.c:174:15: error: expected expression
before ‘,’ token
  GEN3_FEATURES,
               ^
drivers/gpu/drm/i915/i915_pci.c:180:15: error: expected expression
before ‘,’ token
  GEN3_FEATURES,
               ^
drivers/gpu/drm/i915/i915_pci.c:186:15: error: expected expression
before ‘,’ token
  GEN3_FEATURES,
               ^
drivers/gpu/drm/i915/i915_pci.c:209:15: error: initialized field
overwritten [-Werror=override-init]
  .has_snoop = false,
               ^~~~~

...

I'm using following gcc:

john@localhost:~/mnt_sda4/john/linux> gcc --version
gcc (SUSE Linux) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I didn't notice anything on dri-devel mailing list about this.

Cheers,
John

#1 lore raw
Quoted 40 lines · John Garry

Hi guys,

Did anyone else notice this build issue on v6.5-rc1:

drivers/gpu/drm/i915/i915_pci.c:143:15: error: expected expression before ‘,’ token
GEN3_FEATURES,

                ^
drivers/gpu/drm/i915/i915_pci.c:151:15: error: expected expression
before ‘,’ token
   GEN3_FEATURES,
                ^
drivers/gpu/drm/i915/i915_pci.c:159:15: error: expected expression
before ‘,’ token
   GEN3_FEATURES,
                ^
drivers/gpu/drm/i915/i915_pci.c:166:15: error: expected expression
before ‘,’ token
   GEN3_FEATURES,
                ^
drivers/gpu/drm/i915/i915_pci.c:174:15: error: expected expression
before ‘,’ token
   GEN3_FEATURES,
                ^
drivers/gpu/drm/i915/i915_pci.c:180:15: error: expected expression
before ‘,’ token
   GEN3_FEATURES,
                ^
drivers/gpu/drm/i915/i915_pci.c:186:15: error: expected expression
before ‘,’ token
   GEN3_FEATURES,
                ^
drivers/gpu/drm/i915/i915_pci.c:209:15: error: initialized field
overwritten [-Werror=override-init]
   .has_snoop = false,
                ^~~~~

...

I'm using following gcc:

Quoted 7 lines

john@localhost:~/mnt_sda4/john/linux> gcc --version
gcc (SUSE Linux) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I didn't notice anything on dri-devel mailing list about this.

I presume you're using CONFIG_WERROR=y or W=e.

See [1] and [2]. I'm undecided how we should treat this.

BR,
Jani.

[1] https://lore.kernel.org/r/[email protected]
[2] https://gitlab.freedesktop.org/drm/intel/-/issues/8768

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
author
#2 lore raw
Quoted 2 lines · Jani Nikula
Quoted 1 line

I didn't notice anything on dri-devel mailing list about this.

I presume you're using CONFIG_WERROR=y or W=e.

I'm just using whatever vanilla x86_64_defconfig gives.

Quoted 2 lines

See [1] and [2]. I'm undecided how we should treat this.

Ok.

Thanks,
John

#3 lore raw
Quoted 8 lines · John Garry
Quoted 2 lines · Jani Nikula
Quoted 1 line

I didn't notice anything on dri-devel mailing list about this.

I presume you're using CONFIG_WERROR=y or W=e.

I'm just using whatever vanilla x86_64_defconfig gives.

Quoted 2 lines

See [1] and [2]. I'm undecided how we should treat this.

Seeing that the x86 defconfigs enable CONFIG_WERROR=y, we're probably going to have to roll this back.

https://patchwork.freedesktop.org/patch/msgid/[email protected]

BR,
Jani.

Quoted 6 lines

Ok.

Thanks,
John

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center