Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp694515ybh; Tue, 10 Mar 2020 06:36:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsgDs4MeWnvMvBBKuC1kdjwJDU/9j+yy+sa3b5cG9o3n0FWHgCO9bf4E1IVXZGThhZUs6ZL X-Received: by 2002:aca:8ce:: with SMTP id 197mr1118981oii.35.1583847391866; Tue, 10 Mar 2020 06:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583847391; cv=none; d=google.com; s=arc-20160816; b=zfoJYjy4DTJxvFFicdRQqJKHrZtYvQ0GjnHyZPMbYyqldXmdCp4LfN5hCf3Abu0k17 TETeNjibbeLW0cCiqSrdf/2vutlDDiT6PMC1IaXn9Llp6mbdRs53x9PS0cVcEv+6sqPB Na/8tmdie+tkfNHEZYkC5tbxKufG+GtF2uLkQeLrkHD/hixRRWm6DoO6VcM8qPF3iAtB 7PcT6KrqXHlsvmbysounGleSMzbkIF2yOcKoARk6eJPjUNSvXTXShmBIkYR3PPp9UjrC mJCBZhcT19OV2HmvGOrgk9Lxhw5rUNbFjgAMbQ7nptiP1mtsRSltuZcnhfLTpT9UMP8y Fnng== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+dzcA6wci7uPDvCHHJm7BJyAQeY9vPo7DUxekswCwJw=; b=Kcc+lE99kyyTGg8//3aOUAQKvuUYonXPAoOA0IXVL9GpqimzGDjyad1sWCv5pgTPdm tJZ52chYr3QcAkwxo0Tb0pINagwj2puhfRjehq9qzJF2fz2kce31zlqmx17rwyo1dZKT 2ABlHL7iJHOUuiLgNA5D8WgTNeYmogma3vjwaVsSaA5XNeRhW4+fKeUfW3NoFpmecr5l PPGJV4Fdcyn9n7fwgWOzn4I7XdknyLqB7Tr8ZxXfxih0myNASLcL+2DF607FvZpBv9w0 m+p1LkIlePw9Vd+IpXhtbrn7EgaZ7HHrkyMMFlHmAZKijNX6PLTZXNeCZMy5CKjQYTbE rRNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oQbNqbXG; 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 z2si5146556oix.100.2020.03.10.06.36.17; Tue, 10 Mar 2020 06:36:31 -0700 (PDT) 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=@kernel.org header.s=default header.b=oQbNqbXG; 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 S1728029AbgCJMqe (ORCPT + 99 others); Tue, 10 Mar 2020 08:46:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:49758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbgCJMq3 (ORCPT ); Tue, 10 Mar 2020 08:46:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FD7324691; Tue, 10 Mar 2020 12:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844389; bh=iX2h9xIM0kJfdo1vtwCYCI/uuVOptRR5Y8/LX5Tsfas=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oQbNqbXGy37wqauy8434gX2+FAQa5YdaLGnb5rZdQxjPn47Re7tsY8V/MuoyNK06v LKjTtd0IzX4PALNQ4XSeeGZwBokoGM/zfPRhbH8BDbkfDFwCm4eXt+wujpLY5qlfJu efLcLVGtIDl7M+NWOp6xBXH5c8Vrnr/tE/+ZQxYA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "H.J. Lu" , Borislav Petkov , Sasha Levin Subject: [PATCH 4.9 62/88] x86/boot/compressed: Dont declare __force_order in kaslr_64.c Date: Tue, 10 Mar 2020 13:39:10 +0100 Message-Id: <20200310123621.868809541@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310123606.543939933@linuxfoundation.org> References: <20200310123606.543939933@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: H.J. Lu [ Upstream commit df6d4f9db79c1a5d6f48b59db35ccd1e9ff9adfc ] 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 Signed-off-by: Sasha Levin --- arch/x86/boot/compressed/pagetable.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/boot/compressed/pagetable.c b/arch/x86/boot/compressed/pagetable.c index 56589d0a804b1..2591f8f6d45f2 100644 --- a/arch/x86/boot/compressed/pagetable.c +++ b/arch/x86/boot/compressed/pagetable.c @@ -25,9 +25,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; -- 2.20.1