Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp185255ybh; Mon, 20 Jul 2020 13:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ6bUP9dVM/oMFttn1OSDjUUMhY1l/6cCYqd3Ywz+kkKwSRzgO9PUHauwolhg5Erih7zyT X-Received: by 2002:a17:906:9408:: with SMTP id q8mr21688622ejx.496.1595278317943; Mon, 20 Jul 2020 13:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595278317; cv=none; d=google.com; s=arc-20160816; b=XFuY2wfix1L5gmpCtn6sjsz4Ns5CPZj/JsMblivYFwFMFpJJgYHl3JqNOSaLB/dzO8 T8BHL4+nog10imNY87WG2IzlcW/HoIUCPmoI4U7d4Kj2hjT98NNWz3LGpIxsMy74+wSX kL3Oe9KQ363Uf6VzY8APmLfq4tmwrqUwfOUGR9WrR9W+NbiJlsd8d3O65bZWX3HSKbHN U0d/450dmeGOlQY3EarsX6crLh4odCbEgRnTrXUCem0/Yw0y19qX3MqvIxuuyUO10nX3 jQVRepru5VIfAnOtYXUT+apV8f5t4WUnIiQhVSiVgiKyI9Zr7z25Hd87I4bz+v71nUZt LVpQ== 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=N5jd+pSQ0JxE9XvTtwZnQjvUf1dPBeQ5IDjxob8l6P0=; b=Q3Um5JhM9HD7ScR3iloFUyKUIZ8I3xZ/vYLfIitvBrMifonb8uxNeEEXX6v5hz8t7E mJAQpx0vtvCW33bOrlcXE2qhnFn2cR+Bd00o60JOL2vvvwTC/JXD9KHdvb0EobQQmFr4 9gk+Xib6p07Ns0rD6mxg0WEqeGq6li48CiEzfTpzzS0Iv4wjqAZV3Fb1h2GHEphkserL +ZQXr6k6e5d+VOj2H01Vkw5yc40xDh+E1GvjinxhBpM8lLzpU01DGAbuzoyxzH8muBrc Rg493eAHFxdosQ6RGYxr5+xdDBa2BIJL12stPSck0u+lN65jezTMDE8CzJzTU6LexU2N l5vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Gs4QCxzA; 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 dt21si10841772ejb.402.2020.07.20.13.51.34; Mon, 20 Jul 2020 13:51:57 -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=Gs4QCxzA; 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 S1729464AbgGTUuR (ORCPT + 99 others); Mon, 20 Jul 2020 16:50:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728911AbgGTUuO (ORCPT ); Mon, 20 Jul 2020 16:50:14 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7D43C0619D2 for ; Mon, 20 Jul 2020 13:50:14 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id dl10so1946115qvb.20 for ; Mon, 20 Jul 2020 13:50:14 -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=N5jd+pSQ0JxE9XvTtwZnQjvUf1dPBeQ5IDjxob8l6P0=; b=Gs4QCxzAMdw5XWTuxVJdzIGkIbn4dOs7Gz4o7ij6qiPF8ER3jysihQyoF1b/vFzRts ffGrHYjBkDaNmgb5P8bJRBzqvoSFsBDm/F3vmQjm7aoBDy6UfdjdzrEVRQYCecrzwcJm 0lG/zuG02JAnlHqVUKQC2AaCWF8NglY9Bha9cIP4IbFktuEFtgBtf3slFupsiNR8sZ38 GE4O6ffwyB/FfBZOVz/ysNXecEECcj+A3Tkio2kiJ5SKRbtDimRd517xVt1EUfdBEPsc HtOOh7XBBNmxRV1S6x9Xb4IetySmOfo2GTRGk8R+3ohYlqwrcOq9Z0ILMPFuHw4MhKcg PNUw== 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=N5jd+pSQ0JxE9XvTtwZnQjvUf1dPBeQ5IDjxob8l6P0=; b=psQFn9oOCZ4rfxKSvrSWc4UlGSnHWDNEehlHvXV8Pfg4CQfnuJpQmjDvnzs2EoeGxE VXiQYIGb94TbWQd7szLsFbDcPGqteTIsJNYBFtz+VGu4oCD9C9qaQjzI8Oc+obMqTEW2 RvykjDPCf48JR1i5/FWaHrgym2fEpoYa+TGcrXcOy5yf/0Zf6ZpQJ76VbaOvAXIpz2+l 6qC09MrF6ym40maDaEvuzAdWHw2ahO5fAI5rldkX/uQGwwo2GSVXfPnt+eKCirblGy7S r4MSGwLBB+iXzlCurBY25fo12gLgmnb5dfhKtLDzo19cy3wmEmHhKsDDo+feNK5iDeqb MzKw== X-Gm-Message-State: AOAM533n3Lzg3PiqgAV60AptyTHEXDaPO5Gh67oqJ8Cm3dh7U9IH9dh3 KbLZ6N1s9oVSvfaJKxCY3NuWCVaUsgBAolKdJ2A= X-Received: by 2002:ad4:4903:: with SMTP id bh3mr23645134qvb.17.1595278213791; Mon, 20 Jul 2020 13:50:13 -0700 (PDT) Date: Mon, 20 Jul 2020 13:49:19 -0700 In-Reply-To: <20200720204925.3654302-1-ndesaulniers@google.com> Message-Id: <20200720204925.3654302-6-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 05/11] x86/percpu: Remove "e" constraint from XADD 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 The "e" constraint represents a constant, but the XADD instruction doesn't accept immediate operands. Tested-by: Nick Desaulniers Reviewed-by: Nick Desaulniers Acked-by: Linus Torvalds Acked-by: Peter Zijlstra (Intel) Signed-off-by: Brian Gerst Signed-off-by: Nick Desaulniers --- arch/x86/include/asm/percpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 2a24f3c795eb..9bb5440d98d3 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -220,7 +220,7 @@ do { \ break; \ case 8: \ asm qual ("xaddq %0, "__percpu_arg(1) \ - : "+re" (paro_ret__), "+m" (var) \ + : "+r" (paro_ret__), "+m" (var) \ : : "memory"); \ break; \ default: __bad_percpu_size(); \ -- 2.28.0.rc0.105.gf9edc3c819-goog