From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4FDAC33C99 for ; Wed, 8 Jan 2020 01:18:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 950E82075A for ; Wed, 8 Jan 2020 01:18:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="A+B5sqPy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726481AbgAHBSi (ORCPT ); Tue, 7 Jan 2020 20:18:38 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:49374 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgAHBSi (ORCPT ); Tue, 7 Jan 2020 20:18:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wFeUtLqDdYfoqnLCIvPcr81nQOqlnYLhlf7CgTcrnRU=; b=A+B5sqPyBKp8iqaRhlI6QKCzh zUGSenX3ypX9Ieh3x7EHksAgO05rukUMrsrCezSPCvdIJdSjhYRa4CQIBBs1RpE4tSCa50N6q80SC vK7os45y2eIM34SJj7phNilcisdeV5qOJxjSpmeI5Bw0bblhJWGxPy4+oMqt999JzkI1zQaugl4L9 WesFlBwRg9cbkWqrZ+kVcqippSgtyjYpUFvgodqZdYjk6zoYI+86pDztogbLEOg/Ad7LvOmFgvfvd juF22BUjoYYwwl4fDnNsKxgoByhTJSGwEfZ/8NNJtmguCf1GpKUtqppZMXQTmMONN2rPdqfVsiL95 FThAOCmMA==; Received: from [2601:1c0:6280:3f0::ed68] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iozzH-0000EC-PV; Wed, 08 Jan 2020 01:18:19 +0000 Subject: Re: [PATCH] x86/boot: fix cast to pointer compiler warning To: Edwin Zimmerman , 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> From: Randy Dunlap Message-ID: <0be4cdcc-a1f8-36a9-69f2-bac02c8f9a9f@infradead.org> Date: Tue, 7 Jan 2020 17:18:18 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <8dd48f03-4d7c-25bb-2a2f-27461c0004ba@211mainstreet.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- ~Randy