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

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

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

Postby coadde » Tue Mar 22, 2016 5:45 pm

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
coadde
 
Posts: 4
Joined: Mon Mar 07, 2016 2:01 am

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

Postby PaX Team » Tue Mar 22, 2016 11:24 pm

thanks, will be fixed in the next patch.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support