Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp185579ybh; Mon, 20 Jul 2020 13:52:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr0KKnknYh8bt7+/8H2G9+r/Cd3rKvu2aGKc14MArX1WRfBCk1xBceC/ZfbRRm+k63Hip+ X-Received: by 2002:aa7:db06:: with SMTP id t6mr23299419eds.369.1595278363826; Mon, 20 Jul 2020 13:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595278363; cv=none; d=google.com; s=arc-20160816; b=0kJzjVTRVRd7+/VtVP+HqkOph6ND5B1Cg9a1LuvBJe++JYHyGAO7J1eYKpH14JX20i 3GedAUXFm/yf9K/npqsbkcvCa7EDdYaq0R52j52lwOMJ7qH+0tQ/zfF/yMQLGBnWoeh9 5SVCxpy//xpZbancNiTXOPeObjlz7ifuFQFh6Dg8TmPVKjPF6/bl3I3x2VvYwcvCMbP5 0eZPchSE6robaUOAXas0pY74spiU5fjfN+C3YXXIW/LRT6rRJlmuTUoTTENpftnSwiLW RObdaUpGApCWB46RlonGgPTCXNzWTx17RvU5pw8t26hgogBLsFRNXJVu17zsLJMeJ1O1 o5Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=+s/g7aIJprAPntFnrImPLRWCyu/2UEeG13Ydv/LyQTw=; b=h3Af9v/MQPAa7J3CbgOzfMxhOxzZYV0UAjF35w1hHtGeQtPZrNjmvGd6TIVf9OnR6f +VPsivJ4CMqHDpUzZGgc+yl8ZLxdhlX9DIInB1Mph1OW/Bmn2nZRd4pYmPceNxV+r5Lz BH8kg33B7Y8VvC1qjtQsg+rU0jAAAq3zrUniFfRQZKdmhcWrq7XsAJjGiqYnWIZgZH5Q 7Cjz34Co73HqlERB5QcsCvBoOHLtzjWkg5yZmOP04nTObGwYpE6zStGk/GbA30M8TPPJ hb8Ah0O3hVfhYVWVsJcxwQr4WTOpnemyHzUG5PyIZUEMekjNxk68QE7TCfxO7S/xpBPz qQiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ut+dWC7S; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si11680693ejf.218.2020.07.20.13.52.20; Mon, 20 Jul 2020 13:52:43 -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=pass header.i=@google.com header.s=20161025 header.b=Ut+dWC7S; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729611AbgGTUuh (ORCPT + 99 others); Mon, 20 Jul 2020 16:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728604AbgGTUug (ORCPT ); Mon, 20 Jul 2020 16:50:36 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65C0DC061794 for ; Mon, 20 Jul 2020 13:50:36 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id t7so484711pjl.1 for ; Mon, 20 Jul 2020 13:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=+s/g7aIJprAPntFnrImPLRWCyu/2UEeG13Ydv/LyQTw=; b=Ut+dWC7SOOcNdFNw2LrNCEVgHBKJWfSVEgetFHfc6+Vdc98YTcX/dfZWQXKq3sj42+ PUT4Rxi7Ehl1ZDKzUSbN0DeghSA5fYtqZFven9K+OT1yRBcu+Nswfly26Wif6g13r2LR FmFv+cp7DpLGRbfnWj/n0fNLq49rzqwE4PxI/sWLYkBmrUWisFuN6iGBukZpWKVuau5Q 82U8atwWp0QMUhOj4tNctutdQ8fCsfXEEi3COMyen//uRV8jmzkuE9z2kT9yEBMZS6T+ XSIwRjLFFt2SVkWPQdSvv4D/WgBeKKtDFpGh4AfTi2b9xUZX+mgdQ9T+tMxDDzkPihdk HLVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=+s/g7aIJprAPntFnrImPLRWCyu/2UEeG13Ydv/LyQTw=; b=UJfaAdjEPCeDlmBzQOCPmBWPwiyMLnfHd8f8aP93heaDp904TKmXmvqhbNjSSY6DBm sDA08dMDGP0hFP6ihAz/DJDkr5t9lfJCeD3jXNaXjYmnlWUPaXlXlwEYVUciirMJVMfq /vvimRab3jTNmIhhDqsHAt95Rgsm0Do1NIc38lznWApGFF9xqIGBU9QzjnMhx2L3QVzB LOwuvaW2OLqmioHAPN/l28LzcOOMdSEyKKHTgsEqbfthLqcOb7eekRMVWgRIKTe3Hg/N 2zKPs6MJPAIZqsB0x5d0T/VX3lJ0kGFum7E8PwzgsIPkF4SyR83/67bQYBYNRxQHYvCy J9Qw== X-Gm-Message-State: AOAM5312e76mhMeE+p8HoMFKgeFelVK4Ex8q86S35jK5UFeXKSUV7Sdy I+/G2SMOdRptb60a6Mo2RSUJxptGpIMtIb8sKh0= X-Received: by 2002:a17:90a:bf09:: with SMTP id c9mr1119491pjs.221.1595278235781; Mon, 20 Jul 2020 13:50:35 -0700 (PDT) Date: Mon, 20 Jul 2020 13:49:24 -0700 In-Reply-To: <20200720204925.3654302-1-ndesaulniers@google.com> Message-Id: <20200720204925.3654302-11-ndesaulniers@google.com> Mime-Version: 1.0 References: <20200720204925.3654302-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog Subject: [PATCH v3 10/11] x86/percpu: Remove unused PER_CPU() macro From: Nick Desaulniers To: Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: Dennis Zhou , Tejun Heo , Christoph Lameter , x86@kernel.org, "H. Peter Anvin" , Al Viro , Andrew Morton , Peter Zijlstra , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Brian Gerst , Nick Desaulniers , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brian Gerst Also remove now unused __percpu_mov_op. Tested-by: Nick Desaulniers Reviewed-by: Nick Desaulniers Acked-by: Peter Zijlstra (Intel) Acked-by: Linus Torvalds Signed-off-by: Brian Gerst Signed-off-by: Nick Desaulniers --- 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 cf2b9c2a241e..a3c33b79fb86 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 */ -- 2.28.0.rc0.105.gf9edc3c819-goog