From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 46CE43851C0D; Thu, 29 Apr 2021 14:52:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46CE43851C0D From: "scox at redhat dot com" To: systemtap@sourceware.org Subject: [Bug testsuite/27791] New: hw_breakpoint.exp fails to build Date: Thu, 29 Apr 2021 14:52:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: testsuite X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: scox at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2021 14:52:56 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27791 Bug ID: 27791 Summary: hw_breakpoint.exp fails to build Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: testsuite Assignee: systemtap at sourceware dot org Reporter: scox at redhat dot com Target Milestone: --- Running /home/scox/systemtap/src/testsuite/systemtap.base/hw_breakpoint.exp= ... make[3]: Entering directory '/tmp/staptestyIP3jy' make -C /lib/modules/5.12.0-0.rc8.193.el9.x86_64/build SUBDIRS=3D/tmp/staptestyIP3jy KBUILD_EXTMOD=3D/tmp/staptestyIP3jy modules make[4]: Entering directory '/usr/src/kernels/5.12.0-0.rc8.193.el9.x86_64' CC [M] /tmp/staptestyIP3jy/stap_hwbkpt_kmod.o make[4]: Leaving directory '/usr/src/kernels/5.12.0-0.rc8.193.el9.x86_64' make[3]: Leaving directory '/tmp/staptestyIP3jy' /tmp/staptestyIP3jy/stap_hwbkpt_kmod.c: In function 'init_module': /tmp/staptestyIP3jy/stap_hwbkpt_kmod.c:82:54: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=3Dincompatible-pointer-types]| stm_ctl =3D proc_create (CM= D_FILE, 0666, NULL, &stm_fops_cmd); | ^~~~~~~~~~~~~ | | | struct file_operations * In file included from /tmp/staptestyIP3jy/stap_hwbkpt_kmod.c:13: ./include/linux/proc_fs.h:109:122: note: expected 'const struct proc_ops *'= but argument is of type 'struct file_operations *' 109 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ cc1: some warnings being treated as errors make[5]: *** [scripts/Makefile.build:271: /tmp/staptestyIP3jy/stap_hwbkpt_kmod.o] Error 1 make[4]: *** [Makefile:1862: /tmp/staptestyIP3jy] Error 2 make[3]: *** [Makefile:5: default] Error 2 BUILD FAILED It needs a bit of porting and/or systemtap runtime autoconfing (which it's = not really setup uto do) testsuite/systemtap.base/stap_hwbkpt_kmod.c A stap module should provide this service to the other test case rather than hand-written c module. See also STAPCONF_PROC_OPS over in runtime/transport/procfs.c --=20 You are receiving this mail because: You are the assignee for the bug.=