Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp490434imm; Thu, 30 Aug 2018 04:09:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYtPIBIZtgYhkPcJfzz2TUft5fit1u5HqfvmrbcwdTp4U8bw5qEMCq2KHuOZoNIA5TEDcT1 X-Received: by 2002:a63:af17:: with SMTP id w23-v6mr7962869pge.47.1535627355251; Thu, 30 Aug 2018 04:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535627355; cv=none; d=google.com; s=arc-20160816; b=eSmDgt9gO9cf2Gk32qTqTOzTU8HEnt+DO6cqZsMIamKA3c2V0U+S92n3AOO84J7R4f 18THJhueEbFpbOAltHXPOWQeY2KxjkUBrY4PjP/0gw4d3c30lz1RRLbi47quguAdTVfH xH9WqF9NVi/1mtqkmLvlsKzW3+MgySVZFtzo/LVkxXeMfUEQQJoksdC8WKKDIatBQ/fz Yrv94Rdc4af3W0qMSioDPDT7LC8OHSKnxwrPJp+bpfPWwlHTG8fgpNt5okcrWbfNh7/I NoMrjes5QiumF8XcGjyfaOFgVXX1wwMAnYZgXUxtEhj1QqyT1qtwXzHMSLswzBiHa3Wa zzEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=d4PerrFpvHz2ri9zUp7vSHw7lFdeEuC8yglG7MUi1Ds=; b=QaHxtvsv2WdTIi2ik12ebxBo1CvNf0BW7KmpcqJqMlAtxoIf0Rd+wdRl5SK5uKIvJC 0ke4uXsfSYc/YPWSjVrVnIxAMfyrvFUBTeDHQlv+cg068RAMyBFeaNf02ia8aJ7iI35m jO/vJs7GXb6Q3nOSq4SmPbbVrUzVP+kGw6aUqNWuuKjDOUWH93izAEI0sZ9xLfOF8MdB NDYCklSqs5+5whf2fwE+GN4XHVFM1MQF+cneDvpvFl063aMvKW57dL77EQ29I7ai7kcV hAlOgvMkDI7jq4sAiXmx2bSIqIyV0lZ6L11FIHwqTkD+RmBWhfTqcrCpLNA0l5vvD9yp cFBw== 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 p3-v6si5952080plk.295.2018.08.30.04.09.00; Thu, 30 Aug 2018 04:09:15 -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 S1728556AbeH3PJI (ORCPT + 99 others); Thu, 30 Aug 2018 11:09:08 -0400 Received: from terminus.zytor.com ([198.137.202.136]:44949 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728361AbeH3PJI (ORCPT ); Thu, 30 Aug 2018 11:09:08 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w7UB7RVb1731422 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Aug 2018 04:07:28 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w7UB7Rw11731419; Thu, 30 Aug 2018 04:07:27 -0700 Date: Thu, 30 Aug 2018 04:07:27 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Uros Bizjak Message-ID: Cc: ubizjak@gmail.com, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de Reply-To: ubizjak@gmail.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de In-Reply-To: <20180814165951.13538-1-ubizjak@gmail.com> References: <20180814165951.13538-1-ubizjak@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/asm: Use CC_SET()/CC_OUT() in __gen_sigismember() Git-Commit-ID: 26e609eccd37967d3681662433086894830c5d62 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 26e609eccd37967d3681662433086894830c5d62 Gitweb: https://git.kernel.org/tip/26e609eccd37967d3681662433086894830c5d62 Author: Uros Bizjak AuthorDate: Tue, 14 Aug 2018 18:59:51 +0200 Committer: Thomas Gleixner CommitDate: Thu, 30 Aug 2018 13:02:31 +0200 x86/asm: Use CC_SET()/CC_OUT() in __gen_sigismember() Replace open-coded set instructions with CC_SET()/CC_OUT(). Signed-off-by: Uros Bizjak Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20180814165951.13538-1-ubizjak@gmail.com --- arch/x86/include/asm/signal.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/signal.h b/arch/x86/include/asm/signal.h index 5f9012ff52ed..33d3c88a7225 100644 --- a/arch/x86/include/asm/signal.h +++ b/arch/x86/include/asm/signal.h @@ -39,6 +39,7 @@ extern void do_signal(struct pt_regs *regs); #define __ARCH_HAS_SA_RESTORER +#include #include #ifdef __i386__ @@ -86,9 +87,9 @@ static inline int __const_sigismember(sigset_t *set, int _sig) static inline int __gen_sigismember(sigset_t *set, int _sig) { - unsigned char ret; - asm("btl %2,%1\n\tsetc %0" - : "=qm"(ret) : "m"(*set), "Ir"(_sig-1) : "cc"); + bool ret; + asm("btl %2,%1" CC_SET(c) + : CC_OUT(c) (ret) : "m"(*set), "Ir"(_sig-1)); return ret; }