Bug 1972828

Summary: [ppc64le specific] error: implicit declaration of function ‘clflush_cache_range’
Product: Red Hat Enterprise Linux 9 Reporter: Martin Cermak <mcermak>
Component: systemtapAssignee: Frank Ch. Eigler <fche>
systemtap sub component: system-version QA Contact: Martin Cermak <mcermak>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: lberk, mcermak, mjw
Version: 9.0Keywords: FastFix, Patch, Triaged
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemtap-4.5-3.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:50:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Cermak 2021-06-16 17:18:46 UTC
[ppc64le specific] error: implicit declaration of function ‘clflush_cache_range’


(1) scr0   9.0 Server ppc64le # rpm -q systemtap ; uname -r
systemtap-4.5-2.el9.ppc64le
5.13.0-0.rc4.33.el9.ppc64le
scr0   9.0 Server ppc64le # stap -e 'probe kernel.trace("*"){}' -t -u -v -c '/bin/true'
Pass 1: parsed user script and 506 library scripts using 119104virt/93248res/14592shr/76160data kb, in 310usr/0sys/318real ms.
WARNING: tracepoint hcall_entry is blocklisted on architecture powerpc
WARNING: tracepoint hcall_exit is blocklisted on architecture powerpc
WARNING: tracepoint hash_fault is blocklisted on architecture powerpc
Pass 2: analyzed script: 1644 probes, 0 functions, 0 embeds, 0 globals using 136320virt/113088res/16384shr/93376data kb, in 270usr/250sys/1940real ms.
Pass 3: translated to C into "/tmp/stapHD34iB/stap_42961ff297d3abfe69582caf678878e4_127284_src.c" using 136320virt/113088res/16384shr/93376data kb, in 200usr/10sys/206real ms.
In file included from ./include/trace/events/intel_iommu.h:16,
                 from /tmp/stapHD34iB/stap_42961ff297d3abfe69582caf678878e4_127284_aux_91.c:10:
./include/linux/intel-iommu.h: In function ‘__iommu_flush_cache’:
./include/linux/intel-iommu.h:661:17: error: implicit declaration of function ‘clflush_cache_range’; did you mean ‘flush_cache_range’? [-Werror=implicit-function-declaration]
  661 |                 clflush_cache_range(addr, size);
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 flush_cache_range
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:272: /tmp/stapHD34iB/stap_42961ff297d3abfe69582caf678878e4_127284_aux_91.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1855: /tmp/stapHD34iB] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_42961ff297d3abfe69582caf678878e4_127284.ko" in 180600usr/8360sys/25717real ms.
Pass 4: compilation failed.  [man error::pass4]
(1) scr0   9.0 Server ppc64le #

Comment 1 Frank Ch. Eigler 2021-06-24 17:33:39 UTC
upstream commit 515a6a2d63