From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S977902AbdDXU4F (ORCPT ); Mon, 24 Apr 2017 16:56:05 -0400 Received: from terminus.zytor.com ([65.50.211.136]:37787 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S977238AbdDXUzz (ORCPT ); Mon, 24 Apr 2017 16:55:55 -0400 Date: Mon, 24 Apr 2017 13:54:42 -0700 From: tip-bot for kbuild test robot Message-ID: Cc: bp@suse.de, fenghua.yu@intel.com, riel@redhat.com, fengguang.wu@intel.com, yu-cheng.yu@intel.com, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, dave.hansen@linux.intel.com Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, bp@suse.de, fenghua.yu@intel.com, fengguang.wu@intel.com, riel@redhat.com, mingo@kernel.org, yu-cheng.yu@intel.com In-Reply-To: <20170306004553.GA25764@lkp-wsm-ep1> References: <20170306004553.GA25764@lkp-wsm-ep1> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] x86/fpu: Fix boolreturn.cocci warnings Git-Commit-ID: 9908f0103652690a7a17f3da415859320e88edc3 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 9908f0103652690a7a17f3da415859320e88edc3 Gitweb: http://git.kernel.org/tip/9908f0103652690a7a17f3da415859320e88edc3 Author: kbuild test robot AuthorDate: Mon, 6 Mar 2017 08:45:53 +0800 Committer: Thomas Gleixner CommitDate: Mon, 6 Mar 2017 11:52:47 +0100 x86/fpu: Fix boolreturn.cocci warnings arch/x86/kernel/fpu/xstate.c:931:9-10: WARNING: return of 0/1 in function 'xfeatures_mxcsr_quirk' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Rik van Riel Signed-off-by: Fengguang Wu Cc: Fenghua Yu Cc: Rik van Riel Cc: Dave Hansen Cc: Yu-cheng Yu Cc: kbuild-all@01.org Cc: tipbuild@zytor.com Cc: Borislav Petkov Link: http://lkml.kernel.org/r/20170306004553.GA25764@lkp-wsm-ep1 Signed-off-by: Thomas Gleixner --- arch/x86/kernel/fpu/xstate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index 2e89383..b269492 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c @@ -928,12 +928,12 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, static inline bool xfeatures_mxcsr_quirk(u64 xfeatures) { if (!(xfeatures & (XFEATURE_MASK_SSE|XFEATURE_MASK_YMM))) - return 0; + return false; if (xfeatures & XFEATURE_MASK_FP) - return 0; + return false; - return 1; + return true; } /*