Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751768AbdGRJXW (ORCPT ); Tue, 18 Jul 2017 05:23:22 -0400 Received: from mga14.intel.com ([192.55.52.115]:9457 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbdGRJXT (ORCPT ); Tue, 18 Jul 2017 05:23:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,377,1496127600"; d="scan'208";a="1152638622" Message-ID: <1500369795.29303.63.camel@linux.intel.com> Subject: Re: [PATCH v2 2/5] ACPI / boot: Correct address space of __acpi_map_table() From: Andy Shevchenko To: Geert Uytterhoeven Cc: "Rafael J . Wysocki" , Linux PM list , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , the arch/x86 maintainers , "linux-kernel@vger.kernel.org" , Hanjun Guo , ACPI Devel Maling List Date: Tue, 18 Jul 2017 12:23:15 +0300 In-Reply-To: References: <20170717102404.27191-1-andriy.shevchenko@linux.intel.com> <20170717102404.27191-3-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1299 Lines: 36 On Tue, 2017-07-18 at 11:03 +0200, Geert Uytterhoeven wrote: > Hi Andy, > > On Mon, Jul 17, 2017 at 12:24 PM, Andy Shevchenko > wrote: > > Sparse complains about wrong address space used in > > __acpi_map_table() > > and in __acpi_unmap_table(). > > > > arch/x86/kernel/acpi/boot.c:127:29: warning: incorrect type in > > return expression (different address spaces) > > arch/x86/kernel/acpi/boot.c:127:29:    expected char * > > arch/x86/kernel/acpi/boot.c:127:29:    got void [noderef] * > > arch/x86/kernel/acpi/boot.c:135:23: warning: incorrect type in > > argument 1 (different address spaces) > > arch/x86/kernel/acpi/boot.c:135:23:    expected void [noderef] > > *addr > > arch/x86/kernel/acpi/boot.c:135:23:    got char *map > > > > Correct address space to be in align of type of returned and passed > > parameter. > > > > Signed-off-by: Andy Shevchenko > > --- > >  arch/arm64/kernel/acpi.c    | 4 ++-- > > Thanks for the update! > I can confirm this fixes the arm64 build for me. Thanks to you and thanks to kbuild bot to check for ia64! I will send v3 soon with fixed this part and extended patch 5. -- Andy Shevchenko Intel Finland Oy