Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbdGRJ4B (ORCPT ); Tue, 18 Jul 2017 05:56:01 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:10315 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbdGRJz6 (ORCPT ); Tue, 18 Jul 2017 05:55:58 -0400 Subject: Re: [PATCH v2 2/5] ACPI / boot: Correct address space of __acpi_map_table() To: Andy Shevchenko , Geert Uytterhoeven References: <20170717102404.27191-1-andriy.shevchenko@linux.intel.com> <20170717102404.27191-3-andriy.shevchenko@linux.intel.com> <1500369795.29303.63.camel@linux.intel.com> CC: "Rafael J . Wysocki" , Linux PM list , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "the arch/x86 maintainers" , "linux-kernel@vger.kernel.org" , ACPI Devel Maling List From: Hanjun Guo Message-ID: <596DDB04.7080202@huawei.com> Date: Tue, 18 Jul 2017 17:55:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1500369795.29303.63.camel@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.17.188] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.596DDB20.0151,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: ab9f76bdbb90183a3a99432d02b7e1b3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1365 Lines: 38 On 2017/7/18 17:23, Andy Shevchenko wrote: > 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. Ah, sorry, there are some delays when I got this email..., forget about my comments on patch 5. Thanks Hanjun