From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH 12 of 18] tools/memshr: fix build errors caused by Werror
Date: Fri, 30 Mar 2012 10:25:29 +0200 [thread overview]
Message-ID: <95ab84b43c99e4c9a82c.1333095929@probook.site> (raw)
In-Reply-To: <patchbomb.1333095917@probook.site>
# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1333046764 -7200
# Node ID 95ab84b43c99e4c9a82cd42aca0e021a091741b4
# Parent 46ec38b96a225eadcadd70927eb2b136f1172265
tools/memshr: fix build errors caused by Werror
-O2 -Wall -Werror triggers these warnings:
cc1: warnings being treated as errors
interface.c: In function 'memshr_daemon_initialize':
interface.c:55: error: unused variable 'h'
interface.c:54: error: unused variable 'shm_base_addr'
cc1: warnings being treated as errors
bidir-hash.h:47: error: 'fgprtshr_fgprt_hash' defined but not used
bidir-hash.h:52: error: 'fgprtshr_mfn_hash' defined but not used
bidir-hash.h:57: error: 'fgprtshr_fgprt_cmp' defined but not used
bidir-hash.h:62: error: 'fgprtshr_mfn_cmp' defined but not used
make[3]: *** [interface.o] Error 1
make[3]: *** [bidir-daemon.o] Error 1
cc1: warnings being treated as errors
bidir-hash.h:47: error: 'fgprtshr_fgprt_hash' defined but not used
bidir-hash.h:52: error: 'fgprtshr_mfn_hash' defined but not used
bidir-hash.h:57: error: 'fgprtshr_fgprt_cmp' defined but not used
bidir-hash.h:62: error: 'fgprtshr_mfn_cmp' defined but not used
Mark fingerprint functions as inline, remove unused variables.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff -r 46ec38b96a22 -r 95ab84b43c99 tools/memshr/bidir-hash.h
--- a/tools/memshr/bidir-hash.h
+++ b/tools/memshr/bidir-hash.h
@@ -43,22 +43,22 @@ typedef struct vbdblk {
#undef BIDIR_VALUE
#undef BIDIR_KEY_T
#undef BIDIR_VALUE_T
-static uint32_t fgprtshr_fgprt_hash(uint32_t h)
+static inline uint32_t fgprtshr_fgprt_hash(uint32_t h)
{
return h;
}
-static uint32_t fgprtshr_mfn_hash(uint64_t m)
+static inline uint32_t fgprtshr_mfn_hash(uint64_t m)
{
return (uint32_t)m;
}
-static int fgprtshr_fgprt_cmp(uint32_t h1, uint32_t h2)
+static inline int fgprtshr_fgprt_cmp(uint32_t h1, uint32_t h2)
{
return (h1 == h2);
}
-static int fgprtshr_mfn_cmp(uint32_t m1, uint32_t m2)
+static inline int fgprtshr_mfn_cmp(uint32_t m1, uint32_t m2)
{
return (m1 == m2);
}
diff -r 46ec38b96a22 -r 95ab84b43c99 tools/memshr/interface.c
--- a/tools/memshr/interface.c
+++ b/tools/memshr/interface.c
@@ -51,9 +51,6 @@ void memshr_set_domid(int domid)
void memshr_daemon_initialize(void)
{
- void *shm_base_addr;
- struct fgprtshr_hash *h;
-
memset(&memshr, 0, sizeof(private_memshr_info_t));
if((SHARED_INFO = shm_shared_info_open(1)) == NULL)
next prev parent reply other threads:[~2012-03-30 8:25 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 8:25 [PATCH 00 of 18] tools: fix bugs and build errors triggered by -O2 -Wall -Werror Olaf Hering
2012-03-30 8:25 ` [PATCH 01 of 18] tools/blktap: fix access errors in convert_dev_name_to_num Olaf Hering
2012-04-02 13:47 ` Ian Jackson
2012-04-02 14:04 ` Ian Jackson
2012-04-02 14:42 ` Olaf Hering
2012-04-02 14:44 ` Olaf Hering
2012-04-02 15:04 ` Ian Campbell
2012-04-02 15:08 ` Olaf Hering
2012-04-02 15:16 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 02 of 18] tools/blktap: fix params and physical-device parsing Olaf Hering
2012-04-02 14:38 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 03 of 18] tools/blktap: fix access error in img2qcow.c Olaf Hering
2012-03-30 8:25 ` [PATCH 04 of 18] tools/blktap: fix access error in qcow2raw.c Olaf Hering
2012-03-30 8:25 ` [PATCH 05 of 18] tools/blktap2: fix build errors caused by Werror in vhd_journal_write_entry Olaf Hering
2012-04-02 13:55 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 06 of 18] tools/blktap2: fix out of bounds access in block-log.c Olaf Hering
2012-04-02 14:31 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 07 of 18] tools/blktap2: fix build errors caused by Werror in tdqcow_get_parent_id Olaf Hering
2012-04-02 13:52 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 08 of 18] tools/blktap2: fix access error in img2qcow.c Olaf Hering
2012-03-30 8:25 ` [PATCH 09 of 18] tools/blktap2: fix access error in qcow2raw.c Olaf Hering
2012-03-30 8:25 ` [PATCH 10 of 18] tools/libvchan: fix build errors caused by -Werror in node-select.c Olaf Hering
2012-04-02 13:59 ` Ian Jackson
2012-04-02 14:40 ` Olaf Hering
2012-04-02 19:54 ` Olaf Hering
2012-04-03 8:23 ` Ian Campbell
2012-04-03 9:07 ` Olaf Hering
2012-04-03 10:27 ` Ian Jackson
2012-04-03 10:20 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 11 of 18] tools/libxl: fix build errors caused by Werror in disk_eject_xswatch_callback Olaf Hering
2012-04-02 13:53 ` Ian Jackson
2012-04-02 19:58 ` Olaf Hering
2012-04-03 8:30 ` Ian Campbell
2012-04-03 9:11 ` Olaf Hering
2012-04-03 9:24 ` Ian Campbell
2012-04-03 10:28 ` Ian Jackson
2012-04-03 10:21 ` Ian Jackson
2012-03-30 8:25 ` Olaf Hering [this message]
2012-04-02 14:39 ` [PATCH 12 of 18] tools/memshr: fix build errors caused by Werror Ian Jackson
2012-03-30 8:25 ` [PATCH 13 of 18] tools/xenpaging: fix build errors caused by -Werror Olaf Hering
2012-04-02 14:01 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 14 of 18] tools/libvchan: fix build errors caused by Werror in io.c Olaf Hering
2012-04-02 14:33 ` Ian Jackson
2012-04-02 14:37 ` Olaf Hering
2012-04-02 14:39 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 15 of 18] tools/blktap2: remove static string table from header file Olaf Hering
2012-04-02 14:32 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 16 of 18] tools/blktap2: fix build errors caused by Werror, remove blkif_op_name Olaf Hering
2012-04-02 14:06 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 17 of 18] tools/blktap2: remove unused labels Olaf Hering
2012-04-02 14:32 ` Ian Jackson
2012-03-30 8:25 ` [PATCH 18 of 18] tools/blktap2: fix build errors caused by Werror, remove unused variables Olaf Hering
2012-03-30 12:44 ` Olaf Hering
-- strict thread matches above, loose matches on Subject: below --
2012-04-02 20:15 [PATCH 00 of 18] [v2] tools: fix bugs and build errors triggered by -O2 -Wall -Werror Olaf Hering
2012-04-02 20:15 ` [PATCH 12 of 18] tools/memshr: fix build errors caused by Werror Olaf Hering
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=95ab84b43c99e4c9a82c.1333095929@probook.site \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/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).