From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eySVf-0008JD-NX for qemu-devel@nongnu.org; Tue, 20 Mar 2018 21:25:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eySVc-0004ud-JP for qemu-devel@nongnu.org; Tue, 20 Mar 2018 21:25:47 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34932 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eySVc-0004tW-EV for qemu-devel@nongnu.org; Tue, 20 Mar 2018 21:25:44 -0400 Date: Wed, 21 Mar 2018 09:25:30 +0800 From: Fam Zheng Message-ID: <20180321012530.GB12771@lemon.usersys.redhat.com> References: <1521556695-35907-1-git-send-email-mst@redhat.com> <152157445744.177.10520299969738107726@71c20359a636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152157445744.177.10520299969738107726@71c20359a636> Subject: Re: [Qemu-devel] [PATCH] postcopy-ram: add a stub for postcopy_request_shared_page List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com, peter.maydell@linaro.org, dgilbert@redhat.com, quintela@redhat.com On Tue, 03/20 12:34, no-reply@patchew.org wrote: > /tmp/qemu-test/src/migration/postcopy-ram.c:787:41: error: 'struct PostCopyFD' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > int postcopy_request_shared_page(struct PostCopyFD *pcfd, RAMBlock *rb, > ^~~~~~~~~~ > /tmp/qemu-test/src/migration/postcopy-ram.c:787:5: error: no previous prototype for 'postcopy_request_shared_page' [-Werror=missing-prototypes] > int postcopy_request_shared_page(struct PostCopyFD *pcfd, RAMBlock *rb, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors Is a "#include ..." line missing? Fam