Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5955587ybv; Tue, 18 Feb 2020 07:09:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzlTWEKDS7lQ4XlkqylrklNVMKyz4x+l/+sR+INNpPltTrKNP2v4uT8reFZmwj+RKc9W52x X-Received: by 2002:aca:55cc:: with SMTP id j195mr1551846oib.22.1582038547741; Tue, 18 Feb 2020 07:09:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582038547; cv=none; d=google.com; s=arc-20160816; b=rel7O/ClppgBb5Z7ZnFf0qbWGRQxJqgDzgPDxMxrtcyMhTj7XupEcV6c893ZarJh1S VEI58Allx4jlBE08N5jI7GMfZnISwoyRggPxhkygHxjxWHX0/AsBgjO604UFUDHZ7iTT yGwTDFMKDnFGBa3K8aSvpXKCRfLchZfgYe7kEZpZ12MIZsGaAzre+BT9ABK2lSvOXW48 +2sBDxrMB2a+cfXrittdP/AbKjHeIvM/bNwGz+umq/RK1Vj6a39a1egL2I/nqmiSN28F 2psRKzujW3ppq8cbGPdHs3Ef1h5/3R0dWD6VfBmIxhwXPB4NQ8si4pq/86QkCKvIWMSr hYhQ== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=/Rx11+J8bqB/NZQ8woYBGJxjJWtw9UYLDRRCcCAkm9k=; b=p2eitqZCOt5orso8fDEsm52ftB1rJINHFHY3Hn+FnjXJ4On2HURCvT5c7WobN4f/FQ uqdVk6orJLfkh08Otv7ELXbdvhan4GPaDxfoiW+e9c+/ah48DXFVaVY2trZ4EEynMf/e QgnKf1Ckaz/4IaY39JUyEn2nKZnNEVrIa7P3xqXwaLE957hNHV5/RssIuh0rA9qEEBv7 ULZXLFMXsKhe9N3DtmpVuhKVxN8m6yx3ufdmJ9Rvm9ZrhdJm2b8OevsTvsoyZ+Z7Xax3 xFTJ22lPK+Qec7UUbb7KhcGoH66v3pEwDX0UENOoM5vJf76Oxve9E86qFUUZkZBbUNP/ QNOg== 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 l23si1722678otj.302.2020.02.18.07.08.53; Tue, 18 Feb 2020 07:09:07 -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 S1726717AbgBRPHa (ORCPT + 99 others); Tue, 18 Feb 2020 10:07:30 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:36326 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbgBRPH3 (ORCPT ); Tue, 18 Feb 2020 10:07:29 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j44T7-0006Db-N0; Tue, 18 Feb 2020 16:07:25 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5887D1C20BD; Tue, 18 Feb 2020 16:07:25 +0100 (CET) Date: Tue, 18 Feb 2020 15:07:24 -0000 From: "tip-bot2 for H.J. Lu" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/boot] x86/boot/compressed: Don't declare __force_order in kaslr_64.c Cc: "H.J. Lu" , Borislav Petkov , x86 , LKML In-Reply-To: <20200124181811.4780-1-hjl.tools@gmail.com> References: <20200124181811.4780-1-hjl.tools@gmail.com> MIME-Version: 1.0 Message-ID: <158203844496.13786.14610614257521764500.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following commit has been merged into the x86/boot branch of tip: Commit-ID: 970b41399925e34fdf5783a53fe8cc73f04fec37 Gitweb: https://git.kernel.org/tip/970b41399925e34fdf5783a53fe8cc73f04fec37 Author: H.J. Lu AuthorDate: Thu, 16 Jan 2020 12:46:51 -08:00 Committer: Borislav Petkov CommitterDate: Tue, 18 Feb 2020 14:40:53 +01:00 x86/boot/compressed: Don't declare __force_order in kaslr_64.c GCC 10 changed the default to -fno-common, which leads to LD arch/x86/boot/compressed/vmlinux ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition of `__force_order'; \ arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first defined here make[2]: *** [arch/x86/boot/compressed/Makefile:119: arch/x86/boot/compressed/vmlinux] Error 1 Since __force_order is already provided in pgtable_64.c, there is no need to declare __force_order in kaslr_64.c. Signed-off-by: H.J. Lu Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20200124181811.4780-1-hjl.tools@gmail.com --- arch/x86/boot/compressed/kaslr_64.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr_64.c b/arch/x86/boot/compressed/kaslr_64.c index 748456c..9557c5a 100644 --- a/arch/x86/boot/compressed/kaslr_64.c +++ b/arch/x86/boot/compressed/kaslr_64.c @@ -29,9 +29,6 @@ #define __PAGE_OFFSET __PAGE_OFFSET_BASE #include "../../mm/ident_map.c" -/* Used by pgtable.h asm code to force instruction serialization. */ -unsigned long __force_order; - /* Used to track our page table allocation area. */ struct alloc_pgt_data { unsigned char *pgt_buf;