From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVRKN-0007dh-Ll for qemu-devel@nongnu.org; Thu, 25 Apr 2013 14:55:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVRKG-0006HX-Lj for qemu-devel@nongnu.org; Thu, 25 Apr 2013 14:55:31 -0400 Received: from mail-oa0-f47.google.com ([209.85.219.47]:59136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVRKG-0006HL-Gn for qemu-devel@nongnu.org; Thu, 25 Apr 2013 14:55:24 -0400 Received: by mail-oa0-f47.google.com with SMTP id n9so3144812oag.6 for ; Thu, 25 Apr 2013 11:55:23 -0700 (PDT) From: Anthony Liguori In-Reply-To: <1366316544-1428-6-git-send-email-lersek@redhat.com> References: <1366316544-1428-1-git-send-email-lersek@redhat.com> <1366316544-1428-6-git-send-email-lersek@redhat.com> Date: Thu, 25 Apr 2013 13:55:21 -0500 Message-ID: <87r4hyxwx2.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v4 5/7] hw/acpi: export acpi_checksum() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek , mst@redhat.com, qemu-devel@nongnu.org Laszlo Ersek writes: > Again, this enables reuse when preparing per-table fw_cfg blobs later. > > Signed-off-by: Laszlo Ersek > Acked-by: Michael S. Tsirkin Reviewed-by: Anthony Liguori Regards, Anthony Liguori > --- > include/hw/acpi/acpi.h | 2 ++ > hw/acpi/core.c | 2 +- > 2 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h > index bc7e107..7e51110 100644 > --- a/include/hw/acpi/acpi.h > +++ b/include/hw/acpi/acpi.h > @@ -180,4 +180,6 @@ typedef struct acpi_table_std_header { > } QEMU_PACKED AcpiTableStdHdr; > > extern const AcpiTableStdHdr acpi_dfl_hdr; > + > +int acpi_checksum(const uint8_t *data, int len); > #endif /* !QEMU_HW_ACPI_H */ > diff --git a/hw/acpi/core.c b/hw/acpi/core.c > index 36a4d03..3be7e09 100644 > --- a/hw/acpi/core.c > +++ b/hw/acpi/core.c > @@ -69,7 +69,7 @@ static void acpi_register_config(void) > > machine_init(acpi_register_config); > > -static int acpi_checksum(const uint8_t *data, int len) > +int acpi_checksum(const uint8_t *data, int len) > { > int sum, i; > sum = 0; > -- > 1.7.1