Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1223920ybh; Thu, 23 Jul 2020 03:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS+7ffKx8PLboAOCeL7+gRQiU1BCM2FM+0L9CESIC7fhs2DYcpvqr1UA5UeO+quEtkhEMU X-Received: by 2002:a50:e60d:: with SMTP id y13mr3465317edm.225.1595501059324; Thu, 23 Jul 2020 03:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595501059; cv=none; d=google.com; s=arc-20160816; b=kPqRNLZSJB/zk7I5NGr7ctRvI0UsVFUbqZuKFvYZrJ1lMBRFNQ8CGOvc4tiPe6SlWA j0AJd7IsIgmr8nt/B3yswgvsvQlMOfFaBsDNQB9dRyN4aEVj3/YvFGLecVDSZWZKxFHT 2vfHcXpBT7pqv5VYBPuS6Joe09h2WHCs3JxwyLOx4TEFmvFTs7gfyf9Z28JtW0/41xK0 AuMOiuKNnS7V9FbX9bkc7RFROP1uUkmA3NEGHAIC5qsjbRSOoFY5rUWVlDh+eiVvdW51 yBfVF3KO22TxXHBXcnkEuHQLTs6uMkaA3KF+4nB6exP5cUQEHXulX/CjAExmkX8NWoHq B6eA== 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:dkim-signature :dkim-signature:date; bh=PjRMxxMM9TBa/UfITkjAyJ00bWb8BxFGRi6jwcVsxJ8=; b=heFT3dZIbXzn6f9lBxZRaIC3ytpjFEt6lZOvQarhtmQTBR5L1ZwVhhadGS/tfAq3n+ JKxlMaG6+8yjSfS4rrESOHt5ynbhKoruZvE2AQOQIO0BwHppjsZNeQ5GrTa0mdwTmC1P P464xsnsbG8yvx7pp4hbxJsvYhzSJWjyWWnNdTKJvU7l9AJXqNqWye6mp9H1XXfn9QVs VZeuj/RN1X/PgOaB3Yo12rI4sf3eFsGfmyG6t+l8aChPd5yxRkfXb4b2wC8/ObgB6jl9 rPkgfWvYzxjSoNLE++kuorO8IclNeBsplzjxtibxvaJWwNOgy4/ZdDJC96a2KwKSRQJ5 lW/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=e4fY2fVh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=oP+5EMFM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq5si817766ejb.188.2020.07.23.03.43.56; Thu, 23 Jul 2020 03:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=e4fY2fVh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=oP+5EMFM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728466AbgGWKnn (ORCPT + 99 others); Thu, 23 Jul 2020 06:43:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:57052 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728428AbgGWKnm (ORCPT ); Thu, 23 Jul 2020 06:43:42 -0400 Date: Thu, 23 Jul 2020 10:43:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595501020; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PjRMxxMM9TBa/UfITkjAyJ00bWb8BxFGRi6jwcVsxJ8=; b=e4fY2fVh7a+XqFiqztPwF/iU0vDVLBeo0owX7auSh3J6nLWMKhS3mA8XQCJGOG952xhwui bfJza2P2bpGoGAhDyK1HTQMudRov8oTTICPhKUXFW7qaf0mO1JmYkBNBRewx60+dyyt9k0 6ilV+LFIu3KFz7EUv3iR7sGO4pEfW4QYOwLMsZQdNEFnl2YqTpjkDz9FJT9iBEiUMxH8Aa hzw5mV9xiVVlb8GydAXxcohSOsfoWqKR7en+g8RgSRZ7/rbHvEzu4+DGCf7bPtSUdju/p4 UNSlIPJvw/15EOuFhnY5yngPEqUSrZPKsgY/Y7DB+t2MMmJ2T+YzGG74Upm7Zg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595501020; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PjRMxxMM9TBa/UfITkjAyJ00bWb8BxFGRi6jwcVsxJ8=; b=oP+5EMFMQpVPMz9Xzfxcao73BjjVhxYbXJSkBC43zwqdrpSH/3W6LjAwvQsxzsLmTURIIT aZ6CjrQqEGlg+UDg== From: "tip-bot2 for Brian Gerst" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/asm] x86/percpu: Remove unused PER_CPU() macro Cc: Brian Gerst , Nick Desaulniers , Thomas Gleixner , Sedat Dilek , "Peter Zijlstra (Intel)" , Linus Torvalds , Dennis Zhou , x86 , LKML In-Reply-To: <20200720204925.3654302-11-ndesaulniers@google.com> References: <20200720204925.3654302-11-ndesaulniers@google.com> MIME-Version: 1.0 Message-ID: <159550101949.4006.12408546212089697314.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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/asm branch of tip: Commit-ID: 4719ffecbb0659faf1fd39f4b8eb2674f0042890 Gitweb: https://git.kernel.org/tip/4719ffecbb0659faf1fd39f4b8eb2674f0042890 Author: Brian Gerst AuthorDate: Mon, 20 Jul 2020 13:49:24 -07:00 Committer: Thomas Gleixner CommitterDate: Thu, 23 Jul 2020 11:46:43 +02:00 x86/percpu: Remove unused PER_CPU() macro Also remove now unused __percpu_mov_op. Signed-off-by: Brian Gerst Signed-off-by: Nick Desaulniers Signed-off-by: Thomas Gleixner Tested-by: Nick Desaulniers Tested-by: Sedat Dilek Reviewed-by: Nick Desaulniers Acked-by: Peter Zijlstra (Intel) Acked-by: Linus Torvalds Acked-by: Dennis Zhou Link: https://lkml.kernel.org/r/20200720204925.3654302-11-ndesaulniers@google.com --- arch/x86/include/asm/percpu.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index cf2b9c2..a3c33b7 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -4,33 +4,15 @@ #ifdef CONFIG_X86_64 #define __percpu_seg gs -#define __percpu_mov_op movq #else #define __percpu_seg fs -#define __percpu_mov_op movl #endif #ifdef __ASSEMBLY__ -/* - * PER_CPU finds an address of a per-cpu variable. - * - * Args: - * var - variable name - * reg - 32bit register - * - * The resulting address is stored in the "reg" argument. - * - * Example: - * PER_CPU(cpu_gdt_descr, %ebx) - */ #ifdef CONFIG_SMP -#define PER_CPU(var, reg) \ - __percpu_mov_op %__percpu_seg:this_cpu_off, reg; \ - lea var(reg), reg #define PER_CPU_VAR(var) %__percpu_seg:var #else /* ! SMP */ -#define PER_CPU(var, reg) __percpu_mov_op $var, reg #define PER_CPU_VAR(var) var #endif /* SMP */