Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp751060ybg; Mon, 1 Jun 2020 13:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0eSDQo2T+kpT+ksp+T1lyNrOy1hdLRxe+Uk6SoV+t2dNbyaZjNLf4nARmtAkp9q8G/Ijg X-Received: by 2002:a17:906:703:: with SMTP id y3mr21382157ejb.61.1591043374838; Mon, 01 Jun 2020 13:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591043374; cv=none; d=google.com; s=arc-20160816; b=kgjBTAUui3cCH8Dyop9q2jR1ct59rD/zgva0xmHmKXAGqwF9eqlUFYgBIuTQ404ZqF ncWfVztX+Lzismznk1i2iFybLCIvp477ObuBe/ekFHr5+c/C+wGVXYz+KYOowVfr5h9H 8CQWOS7PAKpEGrVcaQAICaVNVw1GEitbsDsg9sqDL9rQX4fWPnhkgx6ZjQX0d7UFGURV FORUwqvuJAuI8n/XHjSeb1u1QsEXIrsS/g503miooGwmbFwKIR556dQfWwgRDXAKa7pt ege9wwRFj2oSWXvwuuAfTWexn6wc3jSXcUlSxWoxF6WSJj6XM0VPgxxj9iB3bjfi7p6+ 6GDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XKKBckStpKkgOLaANSaIoovtMS+K8cLCAUvbu3vJ8yo=; b=HwPUW/VxImOw92Mt9uLTTKtNfl/BkvAlrD9f2FWZzEN3BPzNYCVhe35g7KRkYZEDgp afNTGIhoKuij6ws65I4DqOA666/6iGcyMBDwMFGACpAF0Odf7J7Sw2YVMn9BlKNc5Uru EF8HCUhlafy1dJPdaXQj9V0DeGpEvgmAiJUmeRk62Ah4YjKtxGzhRGTfEjUKYcuGwdWq ag9HC+Cnygl76Qr3HMeKSRntBirzVUQ8VpBN4+cdiLBVoPEEBvw+wDCZNtM8Cc+MYkz8 l/U613qj7TdXF5lbw51OkROQ+DHeDMyiuEuvCYtETHYrgga0jjUPN7vG/cLPTPBu3VPp 0gEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mFIhRfDm; 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 j12si361861ejs.213.2020.06.01.13.29.11; Mon, 01 Jun 2020 13:29:34 -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=mFIhRfDm; 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 S1728272AbgFAU1D (ORCPT + 99 others); Mon, 1 Jun 2020 16:27:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgFAU1C (ORCPT ); Mon, 1 Jun 2020 16:27:02 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6FFDC061A0E for ; Mon, 1 Jun 2020 13:27:02 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id v2so3982200pfv.7 for ; Mon, 01 Jun 2020 13:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XKKBckStpKkgOLaANSaIoovtMS+K8cLCAUvbu3vJ8yo=; b=mFIhRfDmLZ17ZUUQxO0CmHH+nP8iwupfef6nehsU6hibPTW/SJ9tyY3lvKr4sCWgcR +aqHS2drNMNX61zyZ73UP1s7NgMJb/u60tj84s+nPOr6LWyOzc3wm4MA7IwkwdeI9o3c GELFZ/077srhAheqAqDXNeZSWPBPNjtZReL/gHHHGMHLBA6hdPhS1M8A/YY13WT+wq0G eqimLl88ttdozi2xlmw9G/Cd8g+GKzdS970Z69AohgJdygAUosIwAi5Fahks4oqIt0b5 VBbP/0cdIK8PvyqVBife4VwO29/WhDd707/BwzJo9TTvuOnySmQ8ByPNUPJxLlpOTbj2 rudQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XKKBckStpKkgOLaANSaIoovtMS+K8cLCAUvbu3vJ8yo=; b=souADfQN7QDNnyLrad2/j4idSIOFgwj7eihEMIMmll0rZccF6S+jbnawgORIYcNH27 zBwUgndx9bc6FAea9NitjbLYX+Q+8Pq4ppeGbLoxuz3rkPtT7XP0fiEqnL0bHk4FrsmV DtdSZ7RMbLgxM+tPAlagFULCLQp6REaDCMWcA2MNgbJp4fiQhNkuDLZhPZ2iF99GKEww fi4qan7hYURoPPPal4qoupl/uhRBhDSxPCbmc9eDpQullEmf5ABrwWIAuG4bkeQFHdVq H4GNIp7M5YATtaaIjBzeW46BIHSN2B9bzz8C+ihBB37WE61Cha+ADCPSBq2EZsCAQcXP 7uRQ== X-Gm-Message-State: AOAM533ECeL8epkBWeG+3OY5y3xXvDvJ+ooIB4nEnPhNo1MpnrVTxb8+ iZ2srVvs3NQLzO2FWek0CH9AMABQwoqE5r0PzfH2gA== X-Received: by 2002:a62:7e95:: with SMTP id z143mr4810212pfc.108.1591043221983; Mon, 01 Jun 2020 13:27:01 -0700 (PDT) MIME-Version: 1.0 References: <20200530221127.459704-1-brgerst@gmail.com> <20200530221127.459704-11-brgerst@gmail.com> In-Reply-To: <20200530221127.459704-11-brgerst@gmail.com> From: Nick Desaulniers Date: Mon, 1 Jun 2020 13:26:50 -0700 Message-ID: Subject: Re: [PATCH v2 10/10] x86/percpu: Remove unused PER_CPU() macro To: Brian Gerst Cc: LKML , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Peter Zijlstra 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 On Sat, May 30, 2020 at 3:11 PM Brian Gerst wrote: > > Also remove now unused __percpu_mov_op. > > Signed-off-by: Brian Gerst This cleanup looks unrelated to the series, and can be sent separately if needed. Reviewed-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.25.4 > -- Thanks, ~Nick Desaulniers