Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp801469imu; Tue, 11 Dec 2018 07:48:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/VXLHD1lzeTjvBqTFyKSc0sftvefoKX8LDDheI/eranQKJ30T10z+2C/VhBkzfyrnDsDO2r X-Received: by 2002:a17:902:28c1:: with SMTP id f59mr16487591plb.37.1544543326412; Tue, 11 Dec 2018 07:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543326; cv=none; d=google.com; s=arc-20160816; b=ppyyCUJxWEsFilHjnOWObB51yqh/k0rUSABk0t97MFmOANbN+jeUlWfmaM61cq9iuE +N2NVjXmY5stBf1p7x7DT0jMKmWGUPPWd47LN4nsXgxfiguQFxm0QK6FJux48of8f1LN IRaEcga7chrR2kxpcNCVifBxE8sBOp5j6AIT3U8S9Q9YKg1ZFaLzWZp6K0WvAIz+qGBG aF+c0n+9ETtLvSorQYjSW+NkCQLXtF1D6ququn75NRFLGE58uw8ATmHlG5nA+231Fz03 ue0seyDMvNrYv+XcTjtVzBjcrR6A/EPcdrc+dxhXXnGX1zjGuglEu9Xdx0WKXlDk4/ru GGig== 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=uN0jJ6+sDk/7q6ipDcAe8TeWfOn3DNTOz2FCzcZfZa4=; b=UMgP4g/+eBkIVUmpXKqC5UKi+y4S3A6pnpk/1JpF8c2YwmU6R0k7xSOfW9fLxNpUtk pfk2eSliHh81vkjDyXKI/kctZVnV0CsZ6kvuRfnQYMOVrSwTjBExZMcIMKbYVx6A/iGI xzKxZQYNpQJiVMBfuBqYhNxvz7J86A08eswDfmaJGwmSr3vS4HHzAtimCCPhgCVb697k WtVPkyPNVK7zzOkhUR4LhlsEJALxsMm8pvLCB3Xn+e9MjzsVI7/QivHDgfSQ/XFd7iok TO3+MuegM7ZXafFyQ1SQfM/7VgSY1U45NmsOxjoXx/MfIK/0+zhg/0hP/T4KmIOf/+/Q cjXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ttqzROOI; 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 t11si12183486plo.293.2018.12.11.07.48.31; Tue, 11 Dec 2018 07:48:46 -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=ttqzROOI; 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 S1728166AbeLKPpn (ORCPT + 99 others); Tue, 11 Dec 2018 10:45:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:34070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728141AbeLKPpl (ORCPT ); Tue, 11 Dec 2018 10:45:41 -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 E64CB20989; Tue, 11 Dec 2018 15:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543140; bh=cK5EfRJFFw7ThmOL2iOfweOKs3wO9uYh9IKeFciNPbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ttqzROOIfb7mvJOAlQtD6aSZny6dA9So9G381uOw2RFFZZaMKKkAjdQ0K1esKqowp gf5DsJpgbalCJg/RnyCmTdIMHIzVgV25i/UVgc+D/b3k6kY3aAzDpowsNVqf/Y9f22 mbsZqPH9YE51Wu9TTa5b2YQvABuJdxkI9C8nh1bY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Daniel Vetter Subject: [PATCH 4.4 28/91] drm: gma500: fix logic error Date: Tue, 11 Dec 2018 16:40:47 +0100 Message-Id: <20181211151608.108744786@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@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 4.4-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; } }