Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp923531imm; Fri, 22 Jun 2018 07:34:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJVAVI14YjMXl+KnDPKIMKCVr+yKMiCwLqKHFNI9a2UGZMD7Qh8HNprBcqg8lks/oRd44vC X-Received: by 2002:a62:9fd1:: with SMTP id v78-v6mr2018415pfk.233.1529678043478; Fri, 22 Jun 2018 07:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529678043; cv=none; d=google.com; s=arc-20160816; b=x4nd0Kl9yNUzYqQ2eJDXnVbop0xYUxAcahtH4NlxlSBK6wmaJbRIJXqsY0w/qkeoav 5jhCpZJwIiRo5SD2mmd7Q31kZkArcd4getIjvVgFMlg0Tlc/L7zJHbC+13LOOIkDkqCN XYWxSG+ev9/ICGb577j39PCDdpiDs7mlPHbAACxMKqD8+hETirkU9bnRTkDJ0BTP6z5i tjQRo7VjjVOiQwquQUgS33OW0NRoLU1d/0hntivRcLBvgs6TBjOE1BynPH50AAB7xGek 8m1zXARK0dZksXpLYX8I93CF/WwwHL4HZA7Jy1vQ+D76bQNS80M5u2O/OpO7WjOe1MDp aujw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=2HOLLq2SjCw9ewYT8BKI4Fujq2/jnkqLMsJdCxIVEkI=; b=hPXF9GEDA6rJd4i2xswyIyX6JPt/U7ifePA44af2u29+WWin6kHSi6rMOEFatEtvPR muRUWWECmPsFL1Ey6BGRSdcqWkOqQD9CokgizIoY5VsHgDoha5NfGOmmnmpx+cLo2Rv1 ll5lxD95kLneDRGG5y8119XP+wW7OkwjppmLZ+So8iUU3MqActqzU47FCAc+Y/bJmIn7 Wet4VWoqjseZifrOeVSnPAcQE0U7LRmOaNVawJPQID8kqnSdEet/Xad1wMVgArSfkUCK H7sn66cr0UfwdG27KelZYTXQS+Z/djL2r3KxQ/e4roQrnQFJbyXDukLOdXYbOac/Ua+b KPTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 h3-v6si7708531pld.114.2018.06.22.07.33.49; Fri, 22 Jun 2018 07:34:03 -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; 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 S933499AbeFVOcs (ORCPT + 99 others); Fri, 22 Jun 2018 10:32:48 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:41824 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754218AbeFVOcr (ORCPT ); Fri, 22 Jun 2018 10:32:47 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fWN78-0006at-Tw; Fri, 22 Jun 2018 16:32:39 +0200 Date: Fri, 22 Jun 2018 16:32:38 +0200 (CEST) From: Thomas Gleixner To: "Chang S. Bae" cc: Andy Lutomirski , "H . Peter Anvin" , Ingo Molnar , Andi Kleen , Dave Hansen , Markus T Metzger , Ravi Shankar , LKML Subject: Re: [PATCH v4 5/7] x86/segments/64: Rename PER_CPU segment to CPU_NUMBER In-Reply-To: <1529536506-26237-6-git-send-email-chang.seok.bae@intel.com> Message-ID: References: <1529536506-26237-1-git-send-email-chang.seok.bae@intel.com> <1529536506-26237-6-git-send-email-chang.seok.bae@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Jun 2018, Chang S. Bae wrote: > diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c > index 5b8b556..833e229 100644 > --- a/arch/x86/entry/vdso/vma.c > +++ b/arch/x86/entry/vdso/vma.c > @@ -359,7 +359,10 @@ static void vgetcpu_cpu_init(void *arg) > d.p = 1; /* Present */ > d.d = 1; /* 32-bit */ > > - write_gdt_entry(get_cpu_gdt_rw(cpu), GDT_ENTRY_PER_CPU, &d, DESCTYPE_S); > + write_gdt_entry(get_cpu_gdt_rw(cpu), > + GDT_ENTRY_CPU_NUMBER, > + &d, > + DESCTYPE_S); There is no value in using 4 lines for something which fits in one. Other than that. Reviewed-by: Thomas Gleixner