Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp28491ybh; Tue, 21 Jul 2020 15:29:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsams5wJBxZpmrBAjkLbAv7tC7qj+/eTWxMzNying+of5+mwiNtkrgb7Vj69tNf+ynY7wz X-Received: by 2002:a05:6402:1ca6:: with SMTP id cz6mr26800553edb.171.1595370594905; Tue, 21 Jul 2020 15:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595370594; cv=none; d=google.com; s=arc-20160816; b=Jol46+oFLJ2XapWsVrZCt0Mii32ZBCpC6HUkp80ogidJZBOVZRjmc+iQr4f0Un3RAQ GFbsQpdoVGQR4BSqeCF00ChnQS5aZJhfEWIZoHvJeGrekcISsX+DDK0sYnvE2R1dIXfk Z+aSu9vFAdUcnboG3t87x/mLI0ffxT38RKsQi3Z/9FJnz75gPUW+9aeqedbUlht7A05u ALN8pKwPq/KfbMOT25hcQMi5HODR0xwenIe7k4/z40YrY0dhhgpV6Clqba5uoImDUS3G 7yx35TKss2+rSEuFd8ZalYJup6/Hd3vbM/TM9ckifWkDe4W0P1qSCxiPLYie0U6mNiGW 1fVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fwAi8CKhNi9kUtBAHHmNZzLLaAUQLEIM0QwmpiKPOJ0=; b=JZVHiGqAB4qtT/kpVMSkA1EzWEXssNzHw+toGwmwKYkfperJA/cpggaLjSJkf08c62 0oofWEqRYO4rxuPDoZyPfLkdZ00GEGIRVQHCLSuphabxqymKKUEZ+jMRONOSuOm9jAMF sW+7xQVsOs4jDQ5Ad1lKQXuUwyHhY55vVwzQx0d3wPb7yaJ0F/FnQg6e2WNWROPhxWwj k3eWVmyGLRVVdLnzajMdUbyRyRpdmHnj9pxGZsIh5AqZ/IvRkELljHsL4CWYwPmNuknI 0XElf5NNv+kQup/HriutXJ21wkY0pPTl46Ms4QInlcc/5OKkueBqPSe6z1PLD5GlDOcK yP4A== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be25si13436641edb.319.2020.07.21.15.29.09; Tue, 21 Jul 2020 15:29:54 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgGUW16 (ORCPT + 99 others); Tue, 21 Jul 2020 18:27:58 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:34204 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgGUW15 (ORCPT ); Tue, 21 Jul 2020 18:27:57 -0400 Received: by mail-vs1-f66.google.com with SMTP id d198so126283vsc.1 for ; Tue, 21 Jul 2020 15:27:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fwAi8CKhNi9kUtBAHHmNZzLLaAUQLEIM0QwmpiKPOJ0=; b=T6kKJ/zSnD2xOohrgrpmM22op5Z1L3EVg+o1j8M/KkCJDC7pI040R+l4n16uhqxcQe EqX0fxOoeAfIRAazMrKrfFcCWGVIGtU2z1ekLBAlCdYcwPF4GCfuTm2DYHD2sdez/Nvp VTHSj2G+gthiQdTCN+2y6SHmGmQfzW7RjejQC+lS6qaYHz0JLMzK37VwlPfzo3fIuNRj wtnmySkvLWpO2mghT1bwXC0i2fwoZe15S20dtPSF04QeG4mVuZdNRYKEtjS2BElhVJEC UUdnR/ENtj1JIOc9b+UAz+4crONw1fLAxqlMj/ez0+0bhl4t26aVnMBeDdagjJr056Jy bn2w== X-Gm-Message-State: AOAM531lQmjFewzfYYv03Puk1+mltybseZnK4aUeMO1XkgB5cG98MbAF 2vfakixvytcGCsLmsm+dGIk= X-Received: by 2002:a67:e046:: with SMTP id n6mr22949972vsl.6.1595370476473; Tue, 21 Jul 2020 15:27:56 -0700 (PDT) Received: from google.com (239.145.196.35.bc.googleusercontent.com. [35.196.145.239]) by smtp.gmail.com with ESMTPSA id v63sm3603321vkf.45.2020.07.21.15.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 15:27:55 -0700 (PDT) Date: Tue, 21 Jul 2020 22:27:54 +0000 From: Dennis Zhou To: Nick Desaulniers Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , 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 Subject: Re: [PATCH v3 00/11] i386 Clang support Message-ID: <20200721222754.GA820494@google.com> References: <20200720204925.3654302-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720204925.3654302-1-ndesaulniers@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 20, 2020 at 01:49:14PM -0700, Nick Desaulniers wrote: > Resend of Brian's v2 with Acks from Peter and Linus collected, as well > as the final patch (mine) added. The commit of the final patch discusses > some of the architectural differences between GCC and Clang, and the > kernels tickling of this difference for i386, which necessitated these > patches. > > Brian Gerst (10): > x86/percpu: Introduce size abstraction macros > x86/percpu: Clean up percpu_to_op() > x86/percpu: Clean up percpu_from_op() > x86/percpu: Clean up percpu_add_op() > x86/percpu: Remove "e" constraint from XADD > x86/percpu: Clean up percpu_add_return_op() > x86/percpu: Clean up percpu_xchg_op() > x86/percpu: Clean up percpu_cmpxchg_op() > x86/percpu: Clean up percpu_stable_op() > x86/percpu: Remove unused PER_CPU() macro > > Nick Desaulniers (1): > x86: support i386 with Clang > > arch/x86/include/asm/percpu.h | 510 +++++++++++---------------------- > arch/x86/include/asm/uaccess.h | 4 +- > 2 files changed, 175 insertions(+), 339 deletions(-) > > -- > 2.28.0.rc0.105.gf9edc3c819-goog > This looks great to me! I applied it to for-5.9. Thanks, Dennis