Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp206755ybl; Tue, 7 Jan 2020 17:20:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyBOD0HaShjJlmTzFxF4MQnVbGETL4pC38NA5iW8a165g2XWmzCpVYdLdGDTpj2wQKHUo2Y X-Received: by 2002:a9d:70d9:: with SMTP id w25mr2441317otj.231.1578446430725; Tue, 07 Jan 2020 17:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578446430; cv=none; d=google.com; s=arc-20160816; b=xaPnH/CA4+Mek04onis8xzZ5CBOQKFWF4ApvR2fsIk1532EVxKa0XRU03zVyDIUVqk UaOWAzA7tUtgAzK2gLD/qPy10OLNlKG7EJtP+PAmlNrnapKUEshju5qpV90bhvzYN9IF ZDuoHo3sIuM9G8U6xGIjC1aPnuF8UAhiuK/YjrEQspOeS78GSOmKs8T+xNmvnrP8dh/O mJtOxP8WEbqZsuixJcNJPE8c1sZcCo3pOS6gR4wDVlWapJYA0YeCi6WGI6uK8XHJAHWG 580bXMtw72gc9VaZuxr9rL9y1pwF8C5bJhqtUmf/R0zexjxVz6jFL1ybcJw4bxhDXNGS fYHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wFeUtLqDdYfoqnLCIvPcr81nQOqlnYLhlf7CgTcrnRU=; b=J6ci7+VlEWNXmrA3f9Ayn6icAVEDNPZIGzT946oDWcJlCYlxvcHCmI54HNlbj3zTEp iLmkWRjXFX3vPuGO5eqYzG/mjgIJawJHwkzIBUTIr1ZJKFuVQq2/g4/tM27XUHILotGN YRunT7q3HGlotD7gsBosg2ZiemK4nEPMfqgZOwKih5ceARhv9soBC1FsYeDqDEuxezzg OiiSWI7sxMEOllPeBhNi/U5qdXtxRvpMeFGamHKSJDUuhJ886XVNWrff9/qNtZ+DaJdU M3qNpx3/NeHjlU5sP2/RVz8dszhxDx5MBf8SFrXNclrxFgdf97lOQ8SXmQdOXoipc9zc 1GJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=A+B5sqPy; 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 k9si956564oih.157.2020.01.07.17.20.18; Tue, 07 Jan 2020 17:20:30 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=A+B5sqPy; 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 S1726368AbgAHBSi (ORCPT + 99 others); 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