From patchwork Thu Jan 10 14:14:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 155178 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1942340jaa; Thu, 10 Jan 2019 06:14:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN7trCv6ePO+kxRKbHclOIxvXiWv65QK+QlDbs4OMZwrfSbrh9eyUDknDUzFaKQiyPUBOBJU X-Received: by 2002:a63:5922:: with SMTP id n34mr4746565pgb.435.1547129662598; Thu, 10 Jan 2019 06:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547129662; cv=none; d=google.com; s=arc-20160816; b=uvznZkITWmDs6EiyIFCeMGPpvFOUmQZvuYhofIxLi0WqRdaQZ1ZYDjh0urIvAO7qTX rj2zSvNmoIrhlBESKhfs2reV6Lr84XgSlRrXxiZ5y8EDBT+fhXO9zqkOmxLFyUt4Ln6M OnF3Ig979ng7dlLXgMvE94lnJZUbLbkAzv9LBTjM5RzWn8nAsxg0LxpwZ0E1x8oGkaUT W1O2Cda2DuEOxg/Jj1shJrTwrHnqMP8PIyI9y8hlOqIQMqiDjY29bV0hFA34BxjP1oGU ABCKHzRVSzitZ8wDZKZdbEIcl18Btz6E1n539BdKlxXGeijybB+KQ8FW8z8x/ntW+iJ0 j+/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=G3EXLib4pk9BOkcP0QKT2IxPQGjWHTI4hPiULav+BkM=; b=tEJgkVDfF1RCDsWbEPZo/NgRfsWJd0l5BniJXAblU8IGBggC2NBibnNZYGTnkMcb6J xoyZssII05Y7Of8PmDZW5LJlnqY1QiQlm2LA83BoAkiDUQO8xqwl+Gqm4QSGWUpc57AA nW09+3NUGN6AQuT4WjvYypoegfDVB6L8aSeFMQIGRX07Lmf7lRGpqwAOPNp4DXMmwO2j H2Xl00EPpi0x1MLnAxcjAAf5+1JXSuEUkUuY9LzrUJIx6ucVMGYDnscB+VtbAF5r+JMW Y5i52eBxnFb/NsaLuBhrCehkQ7Oxcrsv8yIPyo0K8CUB5Fdqanqv+cJc3PouzHXBdRbG +RuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BhccrWiv; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si11308200pgp.348.2019.01.10.06.14.21; Thu, 10 Jan 2019 06:14:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@linaro.org header.s=google header.b=BhccrWiv; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728195AbfAJOOU (ORCPT + 15 others); Thu, 10 Jan 2019 09:14:20 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36891 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728206AbfAJOOU (ORCPT ); Thu, 10 Jan 2019 09:14:20 -0500 Received: by mail-lf1-f66.google.com with SMTP id y11so8411518lfj.4 for ; Thu, 10 Jan 2019 06:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=G3EXLib4pk9BOkcP0QKT2IxPQGjWHTI4hPiULav+BkM=; b=BhccrWivKE51+P1IgXEKGy4lltmX6UeZllCsxqGBOFucWbiuSnnZdmSdoS+Ro5qNXa TUDylUCuW4kBOq6aXYdfLbPgojff9io6Ka2gCYidLpnYBeyWrB7AvR+EskFoksMKXtOK 4T7UvDAfbb9ym4mm/2o1VvdSxbJGdlFZDlO1M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G3EXLib4pk9BOkcP0QKT2IxPQGjWHTI4hPiULav+BkM=; b=V6A6QsDNcMCItKV3mVvsqbWHVDLU7IKz/m43JxbsBivMgEKNRGF3VirZM/1NIiSAap 3qfdVYDU4xSa6b8XmEpVvmVAIUgOG6yjDJSNLcOBNS+rsJcfjba71mejJz+34Q1b+Vwx 44SWxe4q7+hbq5Tey3i7+UFazP9oeEaLU43UGrGOros1GfJVsBQBrAefBeu3XwPwjsBh RmmSsw4M0YaZGP/RzncZBJVPQlyqlbT6PNOpbpX9PIb/sOUMLlcaiy6AALazy7IsZ3jD sw+/UgB5HLf4RWrmDzktkUVTwftfq93dM88zsR4vZyoK5MI0HFG15SZX88pUd08i1fer 7FXQ== X-Gm-Message-State: AJcUukdeddfbFBfSMiZG2URjqfS2PtieDbfGAOeDNA/bd3yxzcEiK7LQ R1efm+I5R65KwAc9H3F+S57D/A== X-Received: by 2002:a19:c801:: with SMTP id y1mr5657180lff.53.1547129657871; Thu, 10 Jan 2019 06:14:17 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id l63sm14410367lfl.76.2019.01.10.06.14.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 06:14:17 -0800 (PST) From: Anders Roxell To: robdclark@gmail.com, airlied@linux.ie, daniel@ffwll.ch Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Anders Roxell Subject: [PATCH] drm/msm: avoid unused function warning Date: Thu, 10 Jan 2019 15:14:03 +0100 Message-Id: <20190110141403.20295-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Arnd Bergmann 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 --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) -- 2.19.2 diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index fd75870eb17f..6aefcd6db46b 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 @@ -1248,6 +1235,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) {