From patchwork Fri Mar 24 21:28:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 9644019 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 37358602C9 for ; Fri, 24 Mar 2017 21:29:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 295272787C for ; Fri, 24 Mar 2017 21:29:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E19D28159; Fri, 24 Mar 2017 21:29:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFFBA2787C for ; Fri, 24 Mar 2017 21:29:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966648AbdCXV3r (ORCPT ); Fri, 24 Mar 2017 17:29:47 -0400 Received: from mga07.intel.com ([134.134.136.100]:24506 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966478AbdCXV3l (ORCPT ); Fri, 24 Mar 2017 17:29:41 -0400 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 24 Mar 2017 14:29:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,216,1486454400"; d="scan'208";a="838257215" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by FMSMGA003.fm.intel.com with ESMTP; 24 Mar 2017 14:29:37 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1crWo9-000MPY-GL; Sat, 25 Mar 2017 05:31:41 +0800 Date: Sat, 25 Mar 2017 05:28:46 +0800 From: kbuild test robot To: Daniel Vetter Cc: kbuild-all@01.org, Intel Graphics Development , linux-arm-msm@vger.kernel.org, DRI Development , Ben Skeggs , Mario Kleiner , Daniel Vetter , Alex Deucher , Daniel Vetter , freedreno@lists.freedesktop.org, Christian =?iso-8859-1?Q?K=F6nig?= Subject: [PATCH] drm/vblank: fix boolreturn.cocci warnings Message-ID: <20170324212846.GA30377@lkp-ne04.lkp.intel.com> References: <201703250550.yxBdRqLM%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170322083617.13361-16-daniel.vetter@ffwll.ch> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/gpu/drm/nouveau/nouveau_display.c:154:8-9: WARNING: return of 0/1 in function 'nouveau_display_scanoutpos' 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: Daniel Vetter Signed-off-by: Fengguang Wu --- nouveau_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -151,7 +151,7 @@ nouveau_display_scanoutpos(struct drm_de } } - return 0; + return false; } static void