Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2526235ybl; Thu, 9 Jan 2020 14:26:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwEt0WYy+UUPSJvxsBwAQ30v6Wm7dSZth7mq7E2rBu76Q9iIte05sGmV3AwN8P8zMmvbWhx X-Received: by 2002:a05:6830:1e09:: with SMTP id s9mr95971otr.139.1578608780994; Thu, 09 Jan 2020 14:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578608780; cv=none; d=google.com; s=arc-20160816; b=OT317iDI/bnJ5qUJ64rEaS+DtWm17QqUBthbVokE5hxGeewKQ4pG7dLUplZYukW6jm FrhKfERgyZnmIuK7ZItRsV7wgbz/MwACM0xrtX8j0d+0v9QAwFxf02mh/+d3ITg6qpz1 pQ1NK7e01dMRyH1Y1gcbmHl4uNfGfdFyME5t5bqLjHwS29xm0YwHK7cVufAcH2DBQqgI FP5XbP0kdexdW8xqFECOasKeYG2I181SPLDaIQKVureAjV/zo5YSumeOddKptJUIVEFp FxjWPJ6RvLQKUPy6AawI7svoGxKQ9Kog5bfRyn6BRjQ4Xjk/th9WT5GWBu/7Jg9v/zVc /hIA== 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:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=wQKyV4hchxA8vAaskzTMo6rQ0ADMS4EwXBW8giwEik8=; b=gXRVbbdhzvDW5GGpjqFxcmhezi0Cw/Vo7Ee0K1hKctxSZ1liLqDB8AJP2b5vMZUADu +sFFX33Tx90OvXgL/L/mOeNOo/EoO8cilmGv3CLkITE3znoWyWsOAUlIZwsbGoCFPBgy oO4C73BGjledSzxATHjoFQ9nQkuHQ9+4t2XKMa8/IPh9QZfyuLtMJ8N9n2p1a0P+N6vO S1zYezYj27BZfJ7d6IKPuF6JzV1U1MN44tYc29a8QKSkaaTVKP79JRBHaNFF0GpaAkqX xgipJy0FACpHFOUZD61OjMORcTEwjl08aMxNLcrVsnziwjDlxTu5FRvGDfiSEH6gdNS8 k15g== ARC-Authentication-Results: i=1; mx.google.com; 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 v124si4379493oib.173.2020.01.09.14.26.09; Thu, 09 Jan 2020 14:26:20 -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; 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 S1727945AbgAIWZL convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Jan 2020 17:25:11 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:55923 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgAIWZK (ORCPT ); Thu, 9 Jan 2020 17:25:10 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ipgEU-00015w-Bl; Thu, 09 Jan 2020 23:24:50 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id ABF59105BCE; Thu, 9 Jan 2020 23:24:49 +0100 (CET) From: Thomas Gleixner To: Edwin Zimmerman , "edwin\@211mainstreet.net" , x86@kernel.org, Matthew Garrett , linux-kernel@vger.kernel.org Cc: Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Junichi Nomura , Erik Schmauss , Josh Boyer Subject: Re: [PATCH] x86/boot: fix cast to pointer compiler warning In-Reply-To: References: Date: Thu, 09 Jan 2020 23:24:49 +0100 Message-ID: <87v9pk9sjy.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Edwin Zimmerman writes: > 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) ^^^^^^^^ This is whitespace damaged, please fix your mail setup. Try to send the patch to yourself and check whether it applies. Thanks, tglx