Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp219292ybl; Tue, 7 Jan 2020 17:38:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyMMspvx9LhmG+sUfrxZgCapG1KBWZU5vWwkD4E60rHRbTw7T9EY4IwTbn5OLVaDx9Vh10Y X-Received: by 2002:aca:c509:: with SMTP id v9mr1115626oif.151.1578447538411; Tue, 07 Jan 2020 17:38:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578447538; cv=none; d=google.com; s=arc-20160816; b=zO7/EyERXZn9Y/KVQZP8ScQkLNU+hPcw2RxL5ILFYni8Ndw4oppJlUqP905rSpyvD3 tUX+Q+BhQyckQqobAOkVbXEBR13XnWeZkoUXz49cRgbXnJQBH692YfY1kNOYByRFuUoB qU3N68r4YR8yS92EYZL5g+OsxuZ88+dMeuW0z/YIzL44IiQJWMU6P5wG2Vomf+SqqyEp rSewBqcuz/XxkiZNriZURTdeGUUW8ad6X2ujeVtUPEfc+f94a0Ap3vjigYlZOfH2m49w mf4femU+Xi8jD5kYnlGX+rEhyFTwSwbuDdIcXROYmaMDnonKNuE2y+JIZdjrJG56HdW6 I9PA== 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=+Bh7e64VCYd/NSVgocQRT13URD/Qwkq0QPx0oEFUOCk=; b=KQR6rBrSPnFzJ1HFqgdI1YP1Co6F9W5JU6hzqj7pvMLoWFc/R5B9mRAOxxL3OQ4CzW fooKKaugCnpI/YFmnPQhs8Ja4ghfY6p7bcyTF73nYppz89yiLRiQGrisDvtFUJk1Tkzz Scyy7BdK6JAAIuhyeYIdG3+XyZlc8SWf6TciQPU+W66k8PPvq/f5uN+SU1FnWEjyDcoc WY6WUagbe6SjDcTcQIVjR8LM8DtwH1xehp3tiEDE8azHxPooLuMhNNG2V1rTS5WHqDuV zeL+0++f8jZ9pE5Zd0cVwYuG1pUjsA6c5F+TFU37j1qk62RlskD7Kkd2FcI04pA8EG3Z 9U8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emypeople.us header.s=mail header.b="AYKveQ/7"; 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 l17si906155otk.218.2020.01.07.17.38.45; Tue, 07 Jan 2020 17:38:58 -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="AYKveQ/7"; 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 S1726276AbgAHBiF (ORCPT + 99 others); Tue, 7 Jan 2020 20:38:05 -0500 Received: from mail.emypeople.net ([216.220.167.73]:46145 "EHLO mail.emypeople.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgAHBiF (ORCPT ); Tue, 7 Jan 2020 20:38:05 -0500 DKIM-Signature: a=rsa-sha256; t=1578447482; x=1579052282; s=mail; d=emypeople.us; c=relaxed/relaxed; v=1; bh=+Bh7e64VCYd/NSVgocQRT13URD/Qwkq0QPx0oEFUOCk=; h=From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AYKveQ/75sMvasMOP7DmTZrWPtcUCjzeFpY/oPb5yfNgTyq6yvKZ2JGumE4yIJ5q3367cR5btgJAPwCyNDTFK63kOq9eGa6xjIIi5lvxl+Db/2KoJ87R5zj2gjHeeiwXR4fSA1auvARcnV8vB0LR8dx1ru/12higkrKZsoPiVzA= Received: from [192.168.1.2] ([10.12.2.17]) by mail.emypeople.net (12.2.0 build 2 RHEL7 x64) with ASMTP id 202001072038024099; Tue, 07 Jan 2020 20:38:02 -0500 From: Edwin Zimmerman Subject: [PATCH] x86/boot: fix cast to pointer compiler warning To: "edwin@211mainstreet.net" , x86@kernel.org, Matthew Garrett , linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Junichi Nomura , Erik Schmauss , Josh Boyer Message-ID: Date: Wed, 8 Jan 2020 01:37:58 -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