Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp184494ybh; Mon, 20 Jul 2020 13:50:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznB0h7Sg7M+O31sUlmsQ4yIdQrav70UiWP7Z3y6C81JurAMkvhPzQkkA6afXnoyIclPY0r X-Received: by 2002:a17:906:94c6:: with SMTP id d6mr23366686ejy.389.1595278220559; Mon, 20 Jul 2020 13:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595278220; cv=none; d=google.com; s=arc-20160816; b=M0LXnPH7Q3unvJt9u2QxzSb53loZ1uk87uWmENxD/g0Z6FFhUpgdQvuAlGGfg2IOCE AMGL/kpfBsJgKTSi2nxZQi100PjT23Jt6S9kd8mkgVWtc/iEMIkk+0z4vDdfqKYUpqy+ MMyC/+ZJ3a+MHAzp0JPpBmF+94mk3YWMkqMhD8VpXR/mfhqogo32TL/VRiR8gs2Te3hs 7xnFHcnHrYLxFUrsphzOrpXEqLi0QgONiHxswVh/XKbeNDtdfLKbUSQ2FoGJJaaRp6BP 5e55ACXvUhNzzmJnuVxW6+uQsfwBoT55P45yb3WW8mFiYD+1mFnOrN1tN0q3mORXdw7k ou9A== 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:mime-version :message-id:date:dkim-signature; bh=+pPzES3PiEk8bblwLpPCONxYimek8jAllUnsW6FPf6o=; b=qWfl/hrX5KdNlGlrZ/VgHqzmlZR/lreRJuPWr/iYS0RzFh9jEJItEOt2Bxy88at0PL 51RQJUtkMoUfHvbx8FHcnHgVbpwGlgdVXiBjGsil6/UQKOv3t4Up8kQWd1WcUS6ceyMs 5abZ/HauNLocrzg5VTHCutXPdjJ5P/4H06Pf2UJN3MkvGjbys4AF9K1hZbwL+p+iRe9i 2ExJafThr77dQYqwb+7qMuGi0pjIkWbM4Q8rFX6EoxvyI4uGO88ImNvMcW53EQ/HWj5p CceGqPDxILmLEM71fPRB2nqtrm93xWDEtqsGbvcGJwrK3lhmyMFC8tsXXgI0uP/QXsWM w5Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HvRlhxIJ; 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 zh8si12379680ejb.305.2020.07.20.13.49.57; Mon, 20 Jul 2020 13:50:20 -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=HvRlhxIJ; 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 S1729142AbgGTUtk (ORCPT + 99 others); Mon, 20 Jul 2020 16:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgGTUtk (ORCPT ); Mon, 20 Jul 2020 16:49:40 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65D7DC061794 for ; Mon, 20 Jul 2020 13:49:40 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id k127so22910459ybk.11 for ; Mon, 20 Jul 2020 13:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=+pPzES3PiEk8bblwLpPCONxYimek8jAllUnsW6FPf6o=; b=HvRlhxIJOH1Eoi90pKXPeBZxtRPQmDlRcCJidDxM59G1Inl4l8GQt/GbZxa53xULLV x5uTAg+82iRIYu8a3pdbG0c2FyVrWNxjJnB3x361C4/BdAo8DP6SrJynoT6+s6wQJqAX f9Hjed8+51P97a4nw7biGwp70LmUSfGaCF0tJidSLznCc0Kg5/VcwuAT/tD6nOqKUitm hEZxcyIggoEm8spU3oSu3VwEjYnQSmYxlnYC5PRW8eYCBpGcR1Gkdo/nO/SiHIBNIfFq kp9JDnZOwZCpUs+HGMuysXk3rXcHX8vMZbp+m/YLt74TCoKJeGHBf8Cg7cqfg0Mbu9yy BK/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=+pPzES3PiEk8bblwLpPCONxYimek8jAllUnsW6FPf6o=; b=Dn3XewJuDcFAp4k0UY/ujd9SCXlp9TnUseLWN8cPIIik3gjjPErlzHKHbs0u4iBwxs GcNuXb9T8VB86BlWxwM1AMYs3ul/BfFOh5E72hdeTHXLgdtd5JHfE5VsGvHfnfFI8WSr Gl/IACi3pigHi+dqopO0TYIGarLot5gSfsNKJRK2X8w8pU+bKo4EHyQT3CXkxUTNiIOS NlwLFiIJedLg8s0RSGdHi0NismWuNSHDC0JA9cU4B1KkovWHl3oW4p9R6ddkLfP8mfBW QNTRttOtY76i2SoU3j3Eg6sCEI4J4DaME9su+couUTgUWnbGhgMbmSzl0AnhMwZ3yo3j OABQ== X-Gm-Message-State: AOAM5326MSmampfH7ThUG6g89Lfeog7/aX4H5jq/h5R26fjInZtQDhLB kOPjvOFBaSF9HjLRB7EgXnb/lg36rsKq4jCoA4o= X-Received: by 2002:a25:3b93:: with SMTP id i141mr35680756yba.28.1595278179480; Mon, 20 Jul 2020 13:49:39 -0700 (PDT) Date: Mon, 20 Jul 2020 13:49:14 -0700 Message-Id: <20200720204925.3654302-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog Subject: [PATCH v3 00/11] i386 Clang support 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, Nick Desaulniers 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 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