From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org, andrew.burgess@embecosm.com,
vapier@gentoo.org
Subject: [PATCH] sim: ppc: fix some more Wunused-function warnings
Date: Wed, 19 May 2021 12:46:16 +0200 [thread overview]
Message-ID: <20210519104614.GA9251@delia> (raw)
Hi,
When compiling with --enable-werror and CFLAGS="-O0 -g -Wall", we run into:
...
In file included from src/sim/ppc/cpu.h:26:0,
from src/sim/ppc/mon.c:25,
from src/sim/ppc/inline.c:64,
from idecode.c:26:
src/sim/ppc/device.h:788:8: error: 'device_event_queue_deschedule' \
declared 'static' but never defined [-Werror=unused-function]
(void) device_event_queue_deschedule
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
This seems to be caused by the fact that the function is declared using
INLINE_EVENT instead of INLINE_DEVICE.
Fix this and a similar error in the same file.
Any comments?
Thanks,
- Tom
sim: ppc: fix some more Wunused-function warnings
---
sim/ppc/device.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sim/ppc/device.h b/sim/ppc/device.h
index 6fd198de70d..353358761b5 100644
--- a/sim/ppc/device.h
+++ b/sim/ppc/device.h
@@ -784,12 +784,12 @@ INLINE_DEVICE\
device_event_handler *handler,
void *data);
-INLINE_EVENTS\
+INLINE_DEVICE\
(void) device_event_queue_deschedule
(device *me,
event_entry_tag event_to_remove);
-INLINE_EVENTS\
+INLINE_DEVICE\
(signed64) device_event_queue_time
(device *me);
next reply other threads:[~2021-05-19 10:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 10:46 Tom de Vries [this message]
2021-05-19 14:42 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210519104614.GA9251@delia \
--to=tdevries@suse.de \
--cc=andrew.burgess@embecosm.com \
--cc=gdb-patches@sourceware.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).