Page 1 of 1

[ARMv7] error: 'ops' undeclared (first use in this function)

PostPosted: Tue Mar 22, 2016 5:45 pm
by coadde
Hi guys, there's an issue when the kernel is being building for ARMv7 with grsecurity support:

Code: Select all
  CC [M]  net/sctp/input.o
  CC [M]  net/sched/sch_qfq.o
  CC      drivers/iommu/arm-smmu.o
  CC [M]  net/tipc/core.o
  CC [M]  net/sctp/debug.o
drivers/iommu/arm-smmu.c: In function 'arm_smmu_iova_to_phys_hard':
drivers/iommu/arm-smmu.c:1231:33: error: 'ops' undeclared (first use in this function)
   return iop->ops->iova_to_phys(ops, iova);
                                                    ^
drivers/iommu/arm-smmu.c:1231:33: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:258: recipe for target 'drivers/iommu/arm-smmu.o' failed
make[2]: *** [drivers/iommu/arm-smmu.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/iommu' failed
make[1]: *** [drivers/iommu] Error 2
Makefile:949: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....


However, Emulatorman [0] who is one of Parabola distro maintainers and linux-libre-grsec (Linux-libre kernel with grsecurity/PaX support) packager, put a patch that fixes this issue, renaming ops to iop since it's the declared function. [1]

[0]:https://www.parabola.nu/people/hackers/#Emulatorman
[1]:https://projects.parabola.nu/abslibre.git/commit/libre/linux-libre-grsec?id=837518fec0732b060083f3c4038980d47020939f

Re: [ARMv7] error: 'ops' undeclared (first use in this funct

PostPosted: Tue Mar 22, 2016 11:24 pm
by PaX Team
thanks, will be fixed in the next patch.