Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp972978ybl; Fri, 24 Jan 2020 13:00:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwwmHgc7Jh3I6SEVTXM1fL9ydOzWpUCEoyd42rwI4g1trre/7TyGb7tUEZgLsQSiH9Gd89z X-Received: by 2002:a9d:62d9:: with SMTP id z25mr3870991otk.249.1579899615917; Fri, 24 Jan 2020 13:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899615; cv=none; d=google.com; s=arc-20160816; b=nkyZ75Ecpl5nR1EZeZuyuFR0refe+V97I4UtveEnpq8G0E/Zhhpd++vAmbMkROeHmd AMwiFbrNMeCpMCdnnidBSZmRnrh5l6zi9t2aqv51M5MW5Tjq4Qj4yXCb0AwwY8AVVw+X TCagNKOJO+fawexJ+Yfx0eJNAntntjtViO4x04+sGcbnEyDW2Y8cNaj+nlVndz5WROeg 1x0K3uLDZgJcrhW1WPuJy8cBE3aBofurDsmoj0MuqkA91Cz9CfFmHywpmJzgJld5NVRp mluCkibzDoUL2bw2RmbbcgPlmEEOJXyOSKgyia8vyYglzMQTdZUNjLm6zoEuOj8ecXfn P17A== 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:subject:cc:to:from:dkim-signature; bh=VeYdzHBTXvWykrU+9dPvzQoIrSk/36JuoL4dl6ucfKw=; b=s/BsZ12MI9fZjffKbwjCbptjgJsv4pCofjcyHEkCkDTDdxzDf/FfpdHiYhDpF2Mg9j f4bjxEULa0XrIIWn+mWMJIQt1WuGcjNgp80plPN0ARu4EjkKsSXWLplTuf+PTr5AP7RY xnlN8aXUsHyvipKGpBvc7Uqq9KaGOaw1OA3Z8YMv0fJE2cuM8LyMxSuddc0Dzn8wi93W A4oD7vdMKJi/mODE0ZC9VokFfPFujbWb9u0kDbQswZ2rWzRtgHQxIzPrPbXkYVVxUuT5 XW93jbE8xl6cvrxiZCNZkS+8ic3c2dM6mNTAyYBWrEeI945GL9fqUPJ4E0v8EWl80xYq e8GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fUE53ebr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si1475687oth.312.2020.01.24.13.00.04; Fri, 24 Jan 2020 13:00:15 -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=@gmail.com header.s=20161025 header.b=fUE53ebr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390916AbgAXSSP (ORCPT + 99 others); Fri, 24 Jan 2020 13:18:15 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:35276 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387407AbgAXSSP (ORCPT ); Fri, 24 Jan 2020 13:18:15 -0500 Received: by mail-pj1-f65.google.com with SMTP id q39so193462pjc.0 for ; Fri, 24 Jan 2020 10:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VeYdzHBTXvWykrU+9dPvzQoIrSk/36JuoL4dl6ucfKw=; b=fUE53ebrr8thaaisHxNd6ye4r1UTyIesGmw7CWE4nJB5glAzKUqHqhmPzZia8oZYz7 1A41t6GPozSzJuddkbiYVBl7yoi7QTn60s1Vaa7Hz06roL0d6YE1f0PE9Es88FOca2HP IK4ai98U29vXovpGBzcD25Glq8Iz/U/KFJOuX7SHTMHQXGGeP6BfnRRvsZUBNM83ppFx mNwgi5TFTA6Wt+rojcsz5dQt7PgjIoQ/9J37UilSy8C6KpDCYNTsMjALEseE1VgO94Q0 eJEcX9PcEJuK6bURK/4Nn4Y/5YPt9c4+XvwHqUuea1HwkwBznWKBolvQYFDvOySdRk3b PwEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VeYdzHBTXvWykrU+9dPvzQoIrSk/36JuoL4dl6ucfKw=; b=eDZvIQ/qFuZMm/2m0GnyEMwuoCVCCzRMBdxCXDOMwLwzPonV2q86mzdpGj/dn5W9t9 rnkKqnK4pE0F2v/4sOzn2N/boeTffAWN8WAU9SVy/Gbi9sw3clDIiYuc4UPi+MUqxtW7 XJrf+7Amjl7Q60RX8UZCDAS4nnnrnqbZkJhUloxrTOCK3WHeEn58d2EGE7RKIVU1Ovfv 31cRqkf9yzHGLS9aiTkX4iVYM4XN8iFbv+B069Ukjp5qkJdI8g+V+x+GjQCGX4dITtWQ M+6E4Fw5KGGpDk6AF95tI7OUVUxXt3LqTY5Vy5JUTxpGX57XCxTfF/D40Xys4DG7nPo8 LE1A== X-Gm-Message-State: APjAAAVcno3iPHYuDt8uwy3l3f60eRhK/NvJe0HtG/tjMnvABBQ4ycbf L91bQPEd/AkmWbvsRY8qXrc= X-Received: by 2002:a17:902:848f:: with SMTP id c15mr4837693plo.182.1579889894356; Fri, 24 Jan 2020 10:18:14 -0800 (PST) Received: from gnu-efi-2.localdomain ([172.58.35.93]) by smtp.gmail.com with ESMTPSA id c22sm6967400pfo.50.2020.01.24.10.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 10:18:13 -0800 (PST) Received: from gnu-efi-2.localdomain (localhost [IPv6:::1]) by gnu-efi-2.localdomain (Postfix) with ESMTP id 7E3FD100AB8; Fri, 24 Jan 2020 10:18:11 -0800 (PST) From: "H.J. Lu" To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Yu-cheng Yu Subject: [PATCH] x86: Don't clare __force_order in kaslr_64.c Date: Fri, 24 Jan 2020 10:18:11 -0800 Message-Id: <20200124181811.4780-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Yu-cheng Yu --- 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 748456c365f4..9557c5a15b91 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; -- 2.24.1