From patchwork Tue Sep 28 12:30:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cox X-Patchwork-Id: 214872 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8SDIkSL008128 for ; Tue, 28 Sep 2010 13:18:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753975Ab0I1NSp (ORCPT ); Tue, 28 Sep 2010 09:18:45 -0400 Received: from mga09.intel.com ([134.134.136.24]:52831 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753862Ab0I1NSp (ORCPT ); Tue, 28 Sep 2010 09:18:45 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 28 Sep 2010 06:18:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.57,247,1283756400"; d="scan'208";a="558671414" Received: from unknown (HELO localhost.localdomain) ([10.255.14.107]) by orsmga002.jf.intel.com with ESMTP; 28 Sep 2010 06:18:44 -0700 From: Alan Cox Subject: [PATCH] acpi: Fix the ERST warning To: linux-acpi@vger.kernel.org Date: Tue, 28 Sep 2010 13:30:35 +0100 Message-ID: <20100928123029.9667.22883.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Sep 2010 13:18:47 +0000 (UTC) diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c index a4904f1..37d7a05 100644 --- a/drivers/acpi/apei/erst.c +++ b/drivers/acpi/apei/erst.c @@ -270,8 +270,8 @@ static int erst_exec_move_data(struct apei_exec_context *ctx, rc = __apei_exec_read_register(entry, &offset); if (rc) return rc; - memmove((void *)ctx->dst_base + offset, - (void *)ctx->src_base + offset, + memmove((void *)(unsigned long)ctx->dst_base + offset, + (void *)(unsigned long)ctx->src_base + offset, ctx->var2); return 0;