Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp797937imu; Tue, 11 Dec 2018 07:45:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UyDlGvSWZzVJQ2Nuy/BuuAAyEs/rT1R2reI6WZrUP750MeXLtZIriyauhmpBZxT4PAgBby X-Received: by 2002:a17:902:365:: with SMTP id 92mr15655057pld.327.1544543134705; Tue, 11 Dec 2018 07:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543134; cv=none; d=google.com; s=arc-20160816; b=GgA2W8dpvtGuH1Te6l46rVDVwWxNc9/dEi4V7jKbe0VDGTPl+Vbg0sySplLAAyWBs4 ++sCedzi9RAsJ7ZB2J4J6amhsC2eNAu4RXKe8FITWXxBt2pc2DaxgdLdzM+i8qM5iRrA KvIPXzqMx0qHLepFVvuwYKYF8E4XZ4DTPMC5GxaTpr8o6Bb2Jrv5CyOQR/YLIgTmioJU +jkdohDXudhXmA0PEYSLtUCu9a8l6Y7Hm5Zgvx2BZ6hTD7iof9Ub6nyitvcsiTo55ie+ BujKtn/qz/8pYOuaykCdIg3bQgil3AS74acocs5zThuyNZWEtY5to4PEh8+Y3/b8Veo4 dBRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XsNRNcmCRltrRovJ0JU+HWObs2Jw2wvESC1TnyspSrM=; b=gG195djKe30lejd2fAdsj0rBs1FSZPgba7VAzh9fkk4c+ppH43gAeARUBEnJrT67c6 eI6nbTZqeguStnMgICbyOj5gpknBuno0iOcifwZePKcP/XBHo0Np1NfTy+p0F3oWiVyC HF9LXM+MNBbs2ug2AY/MU7G0JNkOc5phTsHg1Y8uuIpAMyuysm96iBKVuLsk2jKWdu3j aafqJ5v+XLOETEcbqeRaP8NWEe06U5PFsGKFSXdL1DcLiMtU/dFu8S+mS/I4QJ8XRq1H HrepzvW9XzqYkAiCHawm5mJnQMzh4cDDSrH6qe5f/V6rJjxQE31ReylWa3oT0r3CIlpA ilRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wJl54abN; 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 k33si13175574pld.374.2018.12.11.07.45.19; Tue, 11 Dec 2018 07:45:34 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=wJl54abN; 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 S1727380AbeLKPm4 (ORCPT + 99 others); Tue, 11 Dec 2018 10:42:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:59334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727341AbeLKPmy (ORCPT ); Tue, 11 Dec 2018 10:42:54 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A00E920880; Tue, 11 Dec 2018 15:42:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544542974; bh=cZ2P5ReJFiqngoEhU4a2wjefi8jA0ALBkKWLxtToRpo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wJl54abNOmUaWcTRL+DqejURRVIRXsdugsZvA8iRgdFMzNc2k2wJsTy3rZ9I6jOuw 3BDT0zOJ/b4XWd0kaafcGd0e1O4zRGX892JhKPAEUcahqxoyPELXjGGbf0z/EtZKcC m2qBeAF7vwyNdHjmEKzySghsui3irmokoz9JQe2M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Daniel Vetter Subject: [PATCH 3.18 19/54] drm: gma500: fix logic error Date: Tue, 11 Dec 2018 16:41:07 +0100 Message-Id: <20181211151547.051788639@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151546.010073210@linuxfoundation.org> References: <20181211151546.010073210@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 67a3b63a54cbe18944191f43d644686731cf30c7 upstream. gcc-8 points out a condition that almost certainly doesn't do what the author had in mind: drivers/gpu/drm/gma500/mdfld_intel_display.c: In function 'mdfldWaitForPipeEnable': drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: error: bitwise comparison always evaluates to false [-Werror=tautological-compare] This changes it to a simple bit mask operation to check whether the bit is set. Fixes: 026abc333205 ("gma500: initial medfield merge") Signed-off-by: Arnd Bergmann Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20170905074741.435324-1-arnd@arndb.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/gma500/mdfld_intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/gma500/mdfld_intel_display.c +++ b/drivers/gpu/drm/gma500/mdfld_intel_display.c @@ -99,7 +99,7 @@ void mdfldWaitForPipeEnable(struct drm_d /* Wait for for the pipe enable to take effect. */ for (count = 0; count < COUNT_MAX; count++) { temp = REG_READ(map->conf); - if ((temp & PIPEACONF_PIPE_STATE) == 1) + if (temp & PIPEACONF_PIPE_STATE) break; } }