Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp214106ybl; Tue, 7 Jan 2020 17:31:07 -0800 (PST) X-Google-Smtp-Source: APXvYqx/kgq2wva3lAM93/dT2bG0kGzWE7YdmUNDmMnDUJh9+4sBrYC8k0L5SZv9vxvpEhett4qj X-Received: by 2002:a9d:7e8a:: with SMTP id m10mr2233823otp.27.1578447067649; Tue, 07 Jan 2020 17:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578447067; cv=none; d=google.com; s=arc-20160816; b=v4+yvttyX1NoRw3E+9JIv7KVbFUpJtQgaKKRigpY5ihlYSo4KR2h8zk++QEV+/HEHo X838OJF/dUcO/sfey7fRp5ssfJM2oEgrQmlH13zbZiEYwVjyW2XCRd+riIM9oRJRskvL aeEJJ4MtSQZbbJ4tld69gT4846rC6RSeZW8VGNZ9BMUP8coeN9UT6QV3q85wU2nuBGGy fErR1NPnpl9x/XuWEj4CJZIgmQ0WWXPekOA8ksIbwFNnrXhIgh185R0QRSHrZ2nKty/p NMnXXDWYPL+aGtUJmer7kz0JKT4MXP96DQbQJqEJ2ZoDqzzSR3l0JT92Y71Zy1CRo9es 0SBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=22iFXTU4vD4bDSj9yiGlaXhxfpRMPEDgH7sSp1HcqfQ=; b=j+c/bx04J7BEq3SpWPxn9JRiI7vJHa74VLRlfoPn4nKrVX8G4dEA1sHorlgQ8V/LJk uq2H4b1oM7YkvFaAw583A4lLLm0IZqNQRP5/i4XXMPVCm/vTKXiOAPkmXK+R9V6eaqgo sCd8NmzdCcaQYwIBd919VOaBw1HmMZhmFCAzD4tME8qVn9J71tmFge36kqVTxqDBWrR9 5ghjtrTQQYXit/gWAecE9X16R9qdupaX9BGc1nXV74zYf12LjeljWSZ2SYxXennT/pmI jX838FBEV9qoKkU7tlk02ewivoJPbxnp6iD0kTuRxFoOh9iAO9ua6oSWg/4gtGGaaL2O Stuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emypeople.us header.s=mail header.b=D0iHptDq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si960849otu.77.2020.01.07.17.30.56; Tue, 07 Jan 2020 17:31:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@emypeople.us header.s=mail header.b=D0iHptDq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726276AbgAHBaU (ORCPT + 99 others); Tue, 7 Jan 2020 20:30:20 -0500 Received: from mail.emypeople.net ([216.220.167.73]:36211 "EHLO mail.emypeople.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgAHBaT (ORCPT ); Tue, 7 Jan 2020 20:30:19 -0500 DKIM-Signature: a=rsa-sha256; t=1578447018; x=1579051818; s=mail; d=emypeople.us; c=relaxed/relaxed; v=1; bh=22iFXTU4vD4bDSj9yiGlaXhxfpRMPEDgH7sSp1HcqfQ=; h=From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References; b=D0iHptDqb0nyOGjN68cPlUFSIQOZSDQ7hfW2fNmuDTvbhiRDpaLQIwBtl/TjDtfIaAyqc5F/N2dfNNS+kzxvaZXeJt/5iCA+w2fEcQeDL5GeyWb52On4e6dXOVb/pdppkPMAWsrgcgMh0OD7O88TOYkx+zS+b/RzVQkhoRoCvrA= Received: from [192.168.1.2] ([10.12.2.17]) by mail.emypeople.net (12.2.0 build 2 RHEL7 x64) with ASMTP id 202001072030183254; Tue, 07 Jan 2020 20:30:18 -0500 Subject: Re: [PATCH] x86/boot: fix cast to pointer compiler warning To: Randy Dunlap , x86@kernel.org, Matthew Garrett , linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Chao Fan , Junichi Nomura , Erik Schmauss , Zhenzhong Duan , Josh Boyer References: <8dd48f03-4d7c-25bb-2a2f-27461c0004ba@211mainstreet.net> <0be4cdcc-a1f8-36a9-69f2-bac02c8f9a9f@infradead.org> From: Edwin Zimmerman Message-ID: <049a6ca0-5f0d-0187-85d4-6d5f1e78af55@211mainstreet.net> Date: Wed, 8 Jan 2020 01:30:14 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <0be4cdcc-a1f8-36a9-69f2-bac02c8f9a9f@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/7/2020 8:18 PM, Randy Dunlap wrote: > On 1/7/20 9:38 PM, Edwin Zimmerman wrote: >> Fix cast-to-pointer compiler warning >> >> arch/x86/boot/compressed/acpi.c: In function ‘get_acpi_srat_table’: >> arch/x86/boot/compressed/acpi.c:316:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] >> rsdp = (struct acpi_table_rsdp *)get_cmdline_acpi_rsdp(); >>         ^ >> Fixes: 41fa1ee9c6d6 ("acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down") >> Signed-off-by: Edwin Zimmerman >> --- >> arch/x86/boot/compressed/acpi.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/x86/boot/compressed/acpi.c b/arch/x86/boot/compressed/acpi.c >> index 25019d42ae93..5d2568066d58 100644 >> --- a/arch/x86/boot/compressed/acpi.c >> +++ b/arch/x86/boot/compressed/acpi.c >> @@ -313,7 +313,7 @@ static unsigned long get_acpi_srat_table(void) >> * stash this in boot params because the kernel itself may have >> * different ideas about whether to trust a command-line parameter. >> */ >> - rsdp = (struct acpi_table_rsdp *)get_cmdline_acpi_rsdp(); >> + rsdp = (struct acpi_table_rsdp *)(long)get_cmdline_acpi_rsdp(); >> if (!rsdp) >> rsdp = (struct acpi_table_rsdp *)(long) >> > Lots of whitespace damage. Probably your email client or some > intermediary. Email client, sorry.  Will resend.