From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968183AbdIZIhO (ORCPT ); Tue, 26 Sep 2017 04:37:14 -0400 Received: from terminus.zytor.com ([65.50.211.136]:35485 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964889AbdIZIhJ (ORCPT ); Tue, 26 Sep 2017 04:37:09 -0400 Date: Tue, 26 Sep 2017 01:30:09 -0700 From: tip-bot for kbuild test robot Message-ID: Cc: mingo@kernel.org, ebiggers3@gmail.com, riel@redhat.com, luto@amacapital.net, bp@suse.de, tglx@linutronix.de, peterz@infradead.org, oleg@redhat.com, fenghua.yu@intel.com, torvalds@linux-foundation.org, yu-cheng.yu@intel.com, dave.hansen@linux.intel.com, fengguang.wu@intel.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, hpa@zytor.com, bp@alien8.de Reply-To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, fengguang.wu@intel.com, bp@alien8.de, hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de, luto@amacapital.net, bp@suse.de, ebiggers3@gmail.com, mingo@kernel.org, riel@redhat.com, dave.hansen@linux.intel.com, torvalds@linux-foundation.org, yu-cheng.yu@intel.com, oleg@redhat.com, fenghua.yu@intel.com In-Reply-To: <20170923130016.21448-23-mingo@kernel.org> References: <20170306004553.GA25764@lkp-wsm-ep1> <20170923130016.21448-23-mingo@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/fpu] x86/fpu: Fix boolreturn.cocci warnings Git-Commit-ID: 4f8cef59bad29344aca0e2e6b0ad18dadd078fd0 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: 4f8cef59bad29344aca0e2e6b0ad18dadd078fd0 Gitweb: http://git.kernel.org/tip/4f8cef59bad29344aca0e2e6b0ad18dadd078fd0 Author: kbuild test robot AuthorDate: Sat, 23 Sep 2017 15:00:05 +0200 Committer: Ingo Molnar CommitDate: Sun, 24 Sep 2017 13:04:35 +0200 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 Signed-off-by: Fengguang Wu Signed-off-by: Thomas Gleixner Cc: Andrew Morton Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Borislav Petkov Cc: Dave Hansen Cc: Eric Biggers Cc: Fenghua Yu Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Peter Zijlstra Cc: Rik van Riel Cc: Yu-cheng Yu Cc: kbuild-all@01.org Cc: tipbuild@zytor.com Link: http://lkml.kernel.org/r/20170306004553.GA25764@lkp-wsm-ep1 Link: http://lkml.kernel.org/r/20170923130016.21448-23-mingo@kernel.org Signed-off-by: Ingo Molnar --- 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 41c5225..fda1109 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c @@ -929,12 +929,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; } /*