This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warnings without -Wno-unused


Hi,

I used Frank's syscall.open example from the systemtap tutorial,
used the -k option and wrote a custom makefile to build the module
later in the /tmp dir. Here is the output:

-----
[root@jataayu stapW5pqzA]# make
make -C /lib/modules/2.6.15-1.1833_FC4.root/build
SUBDIRS=/tmp/stapW5pqzA modules
make[1]: Entering directory
`/usr/src/kernels/2.6.15-1.1833_FC4.root-i686'
  CC [M]  /tmp/stapW5pqzA/stap_2958.o
/tmp/stapW5pqzA/stap_2958.c: In function âprobe_0â:
/tmp/stapW5pqzA/stap_2958.c:1279: warning: label âunlock_â defined but not used
/tmp/stapW5pqzA/stap_2958.c: In function âprobe_1â:
/tmp/stapW5pqzA/stap_2958.c:1382: warning: label âunlock_â defined but not used
/tmp/stapW5pqzA/stap_2958.c: In function âsystemtap_module_initâ:
/tmp/stapW5pqzA/stap_2958.c:1480: warning: unused variable âprobe_pointâ
/tmp/stapW5pqzA/stap_2958.c: At top level:
/usr/local/share/systemtap/runtime/transport/transport.c:26: warning: â_stp_dpidâ defined but not used
/usr/local/share/systemtap/runtime/transport/transport.c:51: warning: â_stp_streamingâ defined but not used
/usr/local/share/systemtap/runtime/io.c:161: warning: â_stp_dbugâ defined but not used
/usr/local/share/systemtap/runtime/print.c:160: warning: ânext_fmtâ defined but
not used
  Building modules, stage 2.
  MODPOST
  CC      /tmp/stapW5pqzA/stap_2958.mod.o
  LD [M]  /tmp/stapW5pqzA/stap_2958.ko
  make[1]: Leaving directory
  `/usr/src/kernels/2.6.15-1.1833_FC4.root-i686'
-----

As you see, the warnings are benign (currently) and are supressed 'cos of
-Wno-unused in the Makefile generated by stap. But we should revisit this
issue sometime (sooner rather than later) and fixup wherever possible.

Do we already have a bugzilla for this? If not, should one be opened?

Ananth


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]