From patchwork Thu Jun 19 02:50:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 4380501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 860E29F26E for ; Thu, 19 Jun 2014 03:03:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7C4320383 for ; Thu, 19 Jun 2014 03:02:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D6ECD200F4 for ; Thu, 19 Jun 2014 03:02:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E0BB6E0CF; Wed, 18 Jun 2014 20:02:55 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 910 seconds by postgrey-1.34 at gabe; Wed, 18 Jun 2014 20:02:54 PDT Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0186.outbound.protection.outlook.com [207.46.163.186]) by gabe.freedesktop.org (Postfix) with ESMTP id 9522C6E0CF for ; Wed, 18 Jun 2014 20:02:54 -0700 (PDT) Received: from DM2PR03CA004.namprd03.prod.outlook.com (10.141.52.152) by BY2PR0301MB0629.namprd03.prod.outlook.com (25.160.125.27) with Microsoft SMTP Server (TLS) id 15.0.959.24; Thu, 19 Jun 2014 02:47:41 +0000 Received: from BY2FFO11FD057.protection.gbl (2a01:111:f400:7c0c::106) by DM2PR03CA004.outlook.office365.com (2a01:111:e400:2414::24) with Microsoft SMTP Server (TLS) id 15.0.959.24 via Frontend Transport; Thu, 19 Jun 2014 02:47:40 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD057.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Thu, 19 Jun 2014 02:47:40 +0000 Received: from victor.ap.freescale.net (victor.ap.freescale.net [10.192.241.62]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s5J2lbin014601; Wed, 18 Jun 2014 19:47:38 -0700 From: Liu Ying To: Subject: [PATCH] drm/fb-helper: Return correct type to match drm_fb_helper_debug_enter() prototype Date: Thu, 19 Jun 2014 10:50:31 +0800 Message-ID: <1403146231-28970-1-git-send-email-Ying.Liu@freescale.com> X-Mailer: git-send-email 1.7.9.5 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(979002)(6009001)(199002)(189002)(85306003)(85852003)(95666004)(48376002)(104016002)(68736004)(81342001)(19580405001)(87286001)(19580395003)(80022001)(104166001)(92726001)(6806004)(92566001)(26826002)(64706001)(93916002)(86362001)(31966008)(97736001)(99396002)(102836001)(87936001)(20776003)(47776003)(88136002)(4396001)(84676001)(44976005)(77982001)(83322001)(50226001)(21056001)(76482001)(79102001)(50986999)(62966002)(89996001)(50466002)(83072002)(46102001)(74502001)(77156001)(74662001)(81542001)(36756003)(105606002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR0301MB0629; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02475B2A01 Received-SPF: Fail (: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Ying.Liu@freescale.com; X-OriginatorOrg: freescale.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The return type of drm_fb_helper_debug_enter() is int, so we should return '0' instead of 'false'. Signed-off-by: Liu Ying --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index d5d8cea..8daa4ad 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -200,7 +200,7 @@ int drm_fb_helper_debug_enter(struct fb_info *info) int i; if (list_empty(&kernel_fb_helper_list)) - return false; + return 0; list_for_each_entry(helper, &kernel_fb_helper_list, kernel_fb_list) { for (i = 0; i < helper->crtc_count; i++) {