Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2100383imu; Thu, 10 Jan 2019 08:16:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN4g8QIixw2DJHNdrUzL7ggzqnvn/J0DJNAaYGhuP3V3eqW0QkoSfH+ibeqlbvQqIqSLoh7K X-Received: by 2002:a65:41c2:: with SMTP id b2mr9880311pgq.67.1547137011632; Thu, 10 Jan 2019 08:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547137011; cv=none; d=google.com; s=arc-20160816; b=flhws1QpdNdthAXndTla+IzOVkDvQ1JuD3/pY4gttmEX9wztBTZgS7D3YWEfAe3wGX cKer34LYQXL5u3/mOcagYQZhoIMokks/PcoLSRqRGD0JbRMHIevCtrnUaSTx74Eg64Lm xvVz9E6ftjDlr64u2xAkMlUBjlws/VS0/s9K/sFHlSZ7lzjytWR5r6AGTjAkSbG0Y3KM RFQfu0/UTXCDYRp6PrDGSdLb7TA0a0IFYiuqvZaNyV80xLyH2kGjN6xKftm4s6eSPxMS 9g30992uK24yNpyHwMJEje2GjRIXPEQbesMkmC4fvWcQxcdhUFbH5zFUy0te8fgtjkvV 01hA== 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=VUvr+uOsF4uIHgaRC7SQiueSUY+bgOovMoeNmWabRmKv/VUnPqWk6ITv2Vt0H3bLnm UVJwhlC8/8ovB/B4C+nd93QtuLCyzVIi9SodT5xC4p/JCOBiH4wgw9sYYyDI7ed2NRNa p7enW28J/te9v4RNyvYPz6Y46/VBo6iYEWpbKLl1piZveZGvTELys129EUpjMK/87R00 oxbdOTirbUYrQc3KWq5q3sPol5TnqwfvL8Kd5jjp51mrv/l+PE9yk41Ljl/FE9hvNkJt OQBNqtIJ0cJFjWul2qjEaI4QvUWkzWLVYn+uYRyayUpSyoWCP9+b5bSRqjOeFLrCtz1t Rngw== 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-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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e37si2439829plb.172.2019.01.10.08.16.35; Thu, 10 Jan 2019 08:16:51 -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=@linaro.org header.s=google header.b=BhccrWiv; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728250AbfAJOOU (ORCPT + 99 others); Thu, 10 Jan 2019 09:14:20 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42113 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728201AbfAJOOU (ORCPT ); Thu, 10 Jan 2019 09:14:20 -0500 Received: by mail-lf1-f66.google.com with SMTP id l10so8375081lfh.9 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=ML9YKBEE0jWduThAb2NqcK6rAd9WvOh8b+ZobO1A8NwnJrX8dnillPL5dgoIdRKNHX 2/bkH2cQlTK2ywXtY/xROr/j2yX9jph19I8NZel10nl74T6d7HFE3R5Exz5zUXwRlooy 62eX7vkqdVJHY7fFvZAFPOoVZ1t8RZSCd64/jgyZm0Ip/tZivm+iNqGK4TbQMWAWUet4 8o96NeAp3OXBhW6gKQ49u9EY/7s/LbsXadPh5cli4gbmvBtBk75TOlZo2xcta548/Q9O w6GcdmDpzaxb4zhcwXUl7F0CQ6nBqJplUiqs3emysBm9K61JNIlAhM6kORGsR5V6WhH7 2AlQ== X-Gm-Message-State: AJcUukek5eNoKiOQ242dPrS2WmXpDYzdfXZbq01EH6mN/PwtpgKdEWOm OG1mdmmYVbCHQBKsLrY8LFv8cw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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) { -- 2.19.2