Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp185040ybl; Tue, 7 Jan 2020 16:51:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzu0Dufj6XPAhbx4yYxfXKxY3wK4JxP22rxu7B/CKAov8LytburHVoVb/dWJ9k8bcmtorBF X-Received: by 2002:aca:f555:: with SMTP id t82mr1056013oih.103.1578444716269; Tue, 07 Jan 2020 16:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578444716; cv=none; d=google.com; s=arc-20160816; b=gTkw/wzM31u4V5qsA9L5FZe6HIiGYtDdkVH6NRvj0MNjKKL4PjHvEWxClznfP5MWqH uXI1yvZV7nAX8rBI2l145jbI7tQwAgMwCIpE4uwf9wVF2sx/tlAtqS0n+3db2EHoDY6O QILaAonMy5iEHiNz0Qz50uR8zaYpkFpNMn2lp3DwijeYwkQVuFn6qOYIwOs4M0QoQQDx iTJN40bn4hvaupEBoqikzcaZzvG5haKjKK1kUpvbSU8YYDaJJnwIdbLyAKQI/0aYlaKZ wvTIJhic7PPNq/m9od8FTYSnciBI6smb0OfeW6gXp0rg3DV+SG7OhDupW7y1RI13pO0K BcdA== 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:mime-version:user-agent:date:message-id :cc:to:subject:from:dkim-signature; bh=CvMeBons7S28jmhBTmYc6WWNwdjk4SyzYKXXN9B3/vs=; b=W6V6AeGN29L6iIIk7Fl+lmLO3aam7q48TvpXvC8x+fqNyjEGUXG2SS1sFAsd1rgg06 jNUucMvJcd7Pnjl/Ns5gKoSA8a+kTF0ZMEfwlyN9sHK39OxWhpTvHxqDG1iPF8z3TP2Z FFOtrsXgvYK8L/wbbRbGZaKtAIp+b1y6oJjpUDatngAD5gAOS2nkhI/EFa1kaYEwQ+Vv tneS+NsPscxfxEuQDxDpK0BOFw3AKGFsjaly1OVcq7JM+S+5ZDgdx1yMABh+74yHoQ+E JsZ3taigdoUcaknjzBkuuaBgli+g6c7oZ4rTL14MgKuu5UNaU4x4lfDLC3wdf/XlKzQr 8BPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emypeople.us header.s=mail header.b="Q/E89Q0c"; 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 t2si781369otq.196.2020.01.07.16.51.43; Tue, 07 Jan 2020 16:51:56 -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="Q/E89Q0c"; 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 S1726295AbgAHAuy (ORCPT + 99 others); Tue, 7 Jan 2020 19:50:54 -0500 Received: from mail.emypeople.net ([216.220.167.73]:32829 "EHLO mail.emypeople.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgAHAuy (ORCPT ); Tue, 7 Jan 2020 19:50:54 -0500 X-Greylist: delayed 740 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Jan 2020 19:50:53 EST DKIM-Signature: a=rsa-sha256; t=1578443912; x=1579048712; s=mail; d=emypeople.us; c=relaxed/relaxed; v=1; bh=CvMeBons7S28jmhBTmYc6WWNwdjk4SyzYKXXN9B3/vs=; h=From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Q/E89Q0cycQthkFA97Vx4bbEU/Gzi5/+gb4Y5Jnstad5/8Y5MU4QuUWp+XPS6KzyTsvN+H/5AdAgZXq6bh6dH8zQ3juzXt4dC5aTb9W89mzRJMldHXFVF1iTHQ5RUAVwyqN1g7E0wPtwrYTlhQ0B2l8kgNGuRgp1LQuClv+9gNo= Received: from [192.168.1.2] ([10.12.2.17]) by mail.emypeople.net (12.2.0 build 2 RHEL7 x64) with ASMTP id 202001071938317657; Tue, 07 Jan 2020 19:38:31 -0500 From: Edwin Zimmerman Subject: [PATCH] x86/boot: fix cast to pointer compiler warning To: 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 , Edwin Zimmerman , Zhenzhong Duan , Josh Boyer Message-ID: <8dd48f03-4d7c-25bb-2a2f-27461c0004ba@211mainstreet.net> Date: Wed, 8 Jan 2020 00:38:28 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 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 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) -- 2.17.1