Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp197978imj; Thu, 14 Feb 2019 18:29:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IaXPTKyeLoAP3L9DibyrfD/dW3IdpLEgr+ZYKsQg87Qe4z47InP7qVoAnAO3DA4ReOpzJXC X-Received: by 2002:a63:fc49:: with SMTP id r9mr2994821pgk.209.1550197790823; Thu, 14 Feb 2019 18:29:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550197790; cv=none; d=google.com; s=arc-20160816; b=J4He7vFLZ1Wpz/TDUiH4vsURPe+2+24w651KNQLNaX3EnTaegHFVFwyezn3eRv6NjA O7cPkA2EVAjd1g5dt2BxpcQJUoU4KohIj5MwNgkGHZ44BktpsGf9I6ocVXb0aGUtOksS Lg2AS44RSyQ2NFTLbP7ZOmy+4n48N/sPYXqddtc63bGpbu7XYsG/bNCBHuzMoauyV5L+ qD7uPv8PtaHgyYFYvRdoyRPhSgaeGpTBwXls7iTBusVzjIsgqF5FuZDZkQoMw6ztvie4 WDbk++M7AAvzrIDXaapVxqQD2NWd9C7NG41csoOrHuqkJF0kxRJB2/i0L8QiUutDZoza /Ynw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V+knyEeB1wvNy01j4dN1UTWbIF8EQ0q+NjZAitjKBmU=; b=t2QFqBspZBtBe7I9zYe7EwFFp1igAoVh6igz145DGPZGn6cqDzcqcb1toil6g5H1mN 06xEfGljWWrvY0n4H/arCoCbPxeTDNmbe0A4qHcB9paJIISiXjKDH6MVhCOtEEH501fc DJYWSNqfvDvrO/nLwjK98jH8kiUiSWuRbC5ngyMbqv5VsfXAOnWgJuN5qefim1SEikh9 jhd0RpuayHOGYcwsDn4tx7YmQn3wGPUtOPpOkyOieC2ZwXJB1aH4Q6nh+Q+ohdX30FiP 2PPgEraF4CQUOwzpb2e9zVs6akpWBh+EJiE/lv/PgTLl3XVqxFJv4WC103MsSRvztRB6 09yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1lFH/P+c"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si3975827pgg.571.2019.02.14.18.29.34; Thu, 14 Feb 2019 18:29:50 -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="1lFH/P+c"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731965AbfBOCKx (ORCPT + 99 others); Thu, 14 Feb 2019 21:10:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:50956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731924AbfBOCKv (ORCPT ); Thu, 14 Feb 2019 21:10:51 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF8B821B68; Fri, 15 Feb 2019 02:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196650; bh=taHRrWg463N4CcT0ZVY0mg81gGQl/3TpkBfJW4XrlFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1lFH/P+cw2ZtAx3SnBRe27qu+CsTYnetYRdxsu4TIQuuPMiEyat8LwOlvHEl5RKd7 N2YaFVjlV7yf0Uvxx8C4bMe/H5m9zGa52KP3bMF8azXS2w8eonZ4aGBVLgFt2YPQ+W HXEIWTW60wNRXFqJIw1JsS8iM1PujkY5oxewMbPo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Anders Roxell , Rob Clark , Sasha Levin , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.20 64/77] drm/msm: avoid unused function warning Date: Thu, 14 Feb 2019 21:08:42 -0500 Message-Id: <20190215020855.176727-64-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit a840f690d3c6f2f27425ca7e7bd2d635cdec07d7 ] drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c:368:13: error: 'dpu_plane_danger_signal_ctrl' defined but not used [-Werror=unused-function] Fixes: 7b2e7adea732 ("drm/msm/dpu: Make dpu_plane_danger_signal_ctrl void") Signed-off-by: Arnd Bergmann Signed-off-by: Anders Roxell Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index f549daf30fe6..1d155a7cb08c 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c @@ -365,19 +365,6 @@ static void _dpu_plane_set_qos_ctrl(struct drm_plane *plane, &pdpu->pipe_qos_cfg); } -static void dpu_plane_danger_signal_ctrl(struct drm_plane *plane, bool enable) -{ - struct dpu_plane *pdpu = to_dpu_plane(plane); - struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); - - if (!pdpu->is_rt_pipe) - return; - - pm_runtime_get_sync(&dpu_kms->pdev->dev); - _dpu_plane_set_qos_ctrl(plane, enable, DPU_PLANE_QOS_PANIC_CTRL); - pm_runtime_put_sync(&dpu_kms->pdev->dev); -} - /** * _dpu_plane_set_ot_limit - set OT limit for the given plane * @plane: Pointer to drm plane @@ -1271,6 +1258,19 @@ static void dpu_plane_reset(struct drm_plane *plane) } #ifdef CONFIG_DEBUG_FS +static void dpu_plane_danger_signal_ctrl(struct drm_plane *plane, bool enable) +{ + struct dpu_plane *pdpu = to_dpu_plane(plane); + struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); + + if (!pdpu->is_rt_pipe) + return; + + pm_runtime_get_sync(&dpu_kms->pdev->dev); + _dpu_plane_set_qos_ctrl(plane, enable, DPU_PLANE_QOS_PANIC_CTRL); + pm_runtime_put_sync(&dpu_kms->pdev->dev); +} + static ssize_t _dpu_plane_danger_read(struct file *file, char __user *buff, size_t count, loff_t *ppos) { -- 2.19.1