Skip to contentSkip to conversation

dmar compile failure in -git

DISCUSSION Jens Axboe 2 participants 4 messages Oct 16, 2020 – Oct 20, 2020

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

Hi,

Ran into this one yesterday:

drivers/iommu/intel/dmar.c: In function ‘free_iommu’:
drivers/iommu/intel/dmar.c:1139:41: error: ‘struct iommu_device’ has no member named ‘ops’
1139 | if (intel_iommu_enabled && iommu->iommu.ops) {
| ^
make[3]: *** [scripts/Makefile.build:283: drivers/iommu/intel/dmar.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:500: drivers/iommu/intel] Error 2 make[1]: *** [scripts/Makefile.build:500: drivers/iommu] Error 2
make: *** [Makefile:1777: drivers] Error 2

which is due to the config I use:

axboe@amd ~/g/linux-block (master)> cat .config | grep IOMMU # CONFIG_GART_IOMMU is not set CONFIG_IOMMU_SUPPORT=y
# Generic IOMMU Pagetable Support

# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_AMD_IOMMU is not set
# CONFIG_INTEL_IOMMU is not set
axboe@amd ~/g/linux-block (master)> cat .config | grep DMAR
CONFIG_DMAR_TABLE=y
Signature · 1 line
Jens Axboe
#1 lore raw
Quoted 16 lines · Jens Axboe

Hi,

Ran into this one yesterday:

drivers/iommu/intel/dmar.c: In function ‘free_iommu’:
drivers/iommu/intel/dmar.c:1139:41: error: ‘struct iommu_device’ has no member named ‘ops’
1139 | if (intel_iommu_enabled && iommu->iommu.ops) {
| ^
make[3]: *** [scripts/Makefile.build:283: drivers/iommu/intel/dmar.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:500: drivers/iommu/intel] Error 2 make[1]: *** [scripts/Makefile.build:500: drivers/iommu] Error 2
make: *** [Makefile:1777: drivers] Error 2

Quoted 1 line

which is due to the config I use:

Thanks. Should be fixed by https://www.mail-archive.com/[email protected]/msg45697.html

author
#2 lore raw
Quoted 17 lines · David Woodhouse
Quoted 16 lines · Jens Axboe

Hi,

Ran into this one yesterday:

drivers/iommu/intel/dmar.c: In function ‘free_iommu’:
drivers/iommu/intel/dmar.c:1139:41: error: ‘struct iommu_device’ has no member named ‘ops’
1139 | if (intel_iommu_enabled && iommu->iommu.ops) {
| ^
make[3]: *** [scripts/Makefile.build:283: drivers/iommu/intel/dmar.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:500: drivers/iommu/intel] Error 2 make[1]: *** [scripts/Makefile.build:500: drivers/iommu] Error 2
make: *** [Makefile:1777: drivers] Error 2

Quoted 4 lines
Quoted 1 line

which is due to the config I use:

Thanks. Should be fixed by
https://www.mail-archive.com/[email protected]/msg45697.html

Can we please get this known build breakage fix upstream? It keeps breaking my test box compiles, which is pretty annoying.

Signature · 1 line
Jens Axboe
author
#3 lore raw
Quoted 18 lines · Jens Axboe
Quoted 17 lines · David Woodhouse
Quoted 16 lines · Jens Axboe

Hi,

Ran into this one yesterday:

drivers/iommu/intel/dmar.c: In function ‘free_iommu’:
drivers/iommu/intel/dmar.c:1139:41: error: ‘struct iommu_device’ has no member named ‘ops’
1139 | if (intel_iommu_enabled && iommu->iommu.ops) {
| ^
make[3]: *** [scripts/Makefile.build:283: drivers/iommu/intel/dmar.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:500: drivers/iommu/intel] Error 2 make[1]: *** [scripts/Makefile.build:500: drivers/iommu] Error 2
make: *** [Makefile:1777: drivers] Error 2

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

which is due to the config I use:

Thanks. Should be fixed by
https://www.mail-archive.com/[email protected]/msg45697.html

Can we please get this known build breakage fix upstream? It keeps breaking my test box compiles, which is pretty annoying.

Nevermind, looks like it went upstream about the same time as I sent this email. Thanks!

Signature · 1 line
Jens Axboe