From: Laszlo Ersek <lersek@redhat.com>
To: qemu devel list <qemu-devel@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
Laszlo Ersek <lersek@redhat.com>
Subject: [Qemu-devel] [PATCH 1/2] qemu_signalfd_available(): remove function due to lack of callers
Date: Wed, 21 Jan 2015 13:57:16 +0100 [thread overview]
Message-ID: <1421845037-5374-2-git-send-email-lersek@redhat.com> (raw)
In-Reply-To: <1421845037-5374-1-git-send-email-lersek@redhat.com>
Noone calls qemu_signalfd_available(), let's remove it.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
include/qemu/compatfd.h | 1 -
util/compatfd.c | 19 -------------------
2 files changed, 20 deletions(-)
diff --git a/include/qemu/compatfd.h b/include/qemu/compatfd.h
index 6b04877..fc37915 100644
--- a/include/qemu/compatfd.h
+++ b/include/qemu/compatfd.h
@@ -39,6 +39,5 @@ struct qemu_signalfd_siginfo {
};
int qemu_signalfd(const sigset_t *mask);
-bool qemu_signalfd_available(void);
#endif
diff --git a/util/compatfd.c b/util/compatfd.c
index 341ada6..e857150 100644
--- a/util/compatfd.c
+++ b/util/compatfd.c
@@ -108,22 +108,3 @@ int qemu_signalfd(const sigset_t *mask)
return qemu_signalfd_compat(mask);
}
-
-bool qemu_signalfd_available(void)
-{
-#ifdef CONFIG_SIGNALFD
- sigset_t mask;
- int fd;
- bool ok;
- sigemptyset(&mask);
- errno = 0;
- fd = syscall(SYS_signalfd, -1, &mask, _NSIG / 8);
- ok = (errno != ENOSYS);
- if (fd >= 0) {
- close(fd);
- }
- return ok;
-#else
- return false;
-#endif
-}
--
1.8.3.1
next prev parent reply other threads:[~2015-01-21 12:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 12:57 [Qemu-devel] [PATCH 0/2] clean up SYS_signalfd Laszlo Ersek
2015-01-21 12:57 ` Laszlo Ersek [this message]
2015-01-21 12:57 ` [Qemu-devel] [PATCH 2/2] signalfd(): modernize detection and use Laszlo Ersek
2015-01-21 13:15 ` [Qemu-devel] [PATCH 0/2] clean up SYS_signalfd Paolo Bonzini
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=1421845037-5374-2-git-send-email-lersek@redhat.com \
--to=lersek@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 NNTP newsgroup(s).