Message ID | 20201116174112.1833368-35-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | 8b6864e3e13806ab715c4af03ed34fba0dbfecb5 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3506733ils; Mon, 16 Nov 2020 09:42:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJynC+BmdOR8lP1I6GvDXiZSphOGhIiqffxzZOpDQBrZnJDniYKafc0rRbEy058R58b3vJ8i X-Received: by 2002:a17:90a:7e94:: with SMTP id j20mr16338336pjl.187.1605548543928; Mon, 16 Nov 2020 09:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548543; cv=none; d=google.com; s=arc-20160816; b=tdo61XV0gcRaY5DLOk35KXoysKiC8ptg9SNGO7i/89cWGDlQnhWsIM6qeDZIDZdhH4 n11mBd+GrIoB4FDTL0rn7rXYmGnmNfg2GueeBv3uEyiFOCt9TdsxFgIBL5UZjUgorm+o +ZvLEGPTakFmqt2HC0e5YQQt0kaIYgyGQ4Wc6ZISQHITCDKJxl0w//f8h2upQfuNGdHH +hF6Howftd3bDyfgWilBAeLhNPXO1sFtczx0o5Sm1HNghmBhS347tLQNUjK0oPLG6S+u zRrB2svChrMfg4JwpIl91ih5h2i5dJqvbOeu6TE2028RizSLpnG1owFiWyKq2dvPyJfr fCLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=Oul2aWizvscPS+p7u5r1PGX55dQVRfmVPo710KTLPu8=; b=Gy28okMciWU5ll3bKdp4TgvanaYtzNiDkHMoNpt8k35b7YAzZar7YVrNY/MijizgI7 mlKEgt1zLdftsz3O2aommhVXhSkzagLItHXFXN+a1uoGdnldZkuH+I/XACzS1iBF3Tjk OLfMtggq/Q29XDQS3z3lVwejyQJQ+ZhdEUYWvIJx7biwnzWTDEVJiBT8JucEWVI7TQdO jzq1Z+zTdqNOadjx1NzJiTstUeVKLpV3wllKSriAXVSwqgU3Lj+BY1leNouR3fdgmu7H NPdwkw7bRh38tAo1LvJfYAfdyryXUJB2H1HWs3xBY3aL7wOUyIUlq3pibV/t9Kv2iwfN LA+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KYfB0p1J; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s28si4843866pgn.279.2020.11.16.09.42.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KYfB0p1J; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 669856EA0C; Mon, 16 Nov 2020 17:42:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 991896EA03 for <dri-devel@lists.freedesktop.org>; Mon, 16 Nov 2020 17:42:09 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 19so58312wmf.1 for <dri-devel@lists.freedesktop.org>; Mon, 16 Nov 2020 09:42:09 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=CdkaNwQj8NyYLTZAwxAzCnUjBubyLoQ1IDILNJ47mBc=; b=KYfB0p1J8ty+Ajm53YV2GUUYUG37fGMs+sTFghOyy81qeMcYCCBI0/1BHv2PUUIjDE YJYsC/JCj7JtTZj3LyeZyJ1ma6n7LJCEiHH/ECiJExw5fRbRQdumA6Nqr77uK6bjFOuI BdrOz9vOe7aKsV8/DI8+LaFvwRQe2SdAvBaMINlVnHFLwMn2zrcuItOO7epWpzEzcjjy LL8GNS3NJxYFhMeaQpdHZhvjk7TSm74KER7gMmo4vmP71LM3IdxdizLCIdPV2MH7hQ17 JfRc3KXZvX7Yqz6mbHZE9RjWwh5uzsQrwJoHLX7oWExRQ5v6vbpRbZzjuFUDhyOTxtV2 42Uw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CdkaNwQj8NyYLTZAwxAzCnUjBubyLoQ1IDILNJ47mBc=; b=BijZSMvPxntCmdJgRABAE7I7kpOj6sIQ2l9FIN0bZvbt97xUt448GbfnvO3iA2gbTz odX39OfinhswnHoypopnCt5GMl03PYKRCbejMoRjm2lPwjIIG9Q7x1c7Px7a4OaOX/T5 fzKC0DwYSW5lU1S7ON9m+qseLMjwubEV/MDJTAc/bfdA2qN75/nwS8oVBTilAzr77+1n +qM+bcso3KE+gHLjS8vXbY6aZ2k2aXERUJnpM3LvTC/C+zrmiElD5ky24o8JA1x0TJ+x DOsPzJ0UO55s9Vv/wEHHLZ2Bw0iHm9EBNy7jHGd8DbtyYP+8IlxseJhzSh3t+9twnN9c FDbw== X-Gm-Message-State: AOAM531lAKsJSIaKzfbm/iobPyYgO2/Y44ArlEMtzjvIEpNM834FEsHy qceT3/RbN9SnpRUv5JOfw3SS3A== X-Received: by 2002:a7b:c145:: with SMTP id z5mr17523wmi.164.1605548528328; Mon, 16 Nov 2020 09:42:08 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42:07 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 34/42] drm/v3d/v3d_drv: Remove unused static variable 'v3d_v3d_pm_ops' Date: Mon, 16 Nov 2020 17:41:04 +0000 Message-Id: <20201116174112.1833368-35-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116174112.1833368-1-lee.jones@linaro.org> References: <20201116174112.1833368-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU (non-Radeon)
|
expand
|
diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c index 2da0c1180bc69..42d401fd244e3 100644 --- a/drivers/gpu/drm/v3d/v3d_drv.c +++ b/drivers/gpu/drm/v3d/v3d_drv.c @@ -38,42 +38,6 @@ #define DRIVER_MINOR 0 #define DRIVER_PATCHLEVEL 0 -#ifdef CONFIG_PM -static int v3d_runtime_suspend(struct device *dev) -{ - struct drm_device *drm = dev_get_drvdata(dev); - struct v3d_dev *v3d = to_v3d_dev(drm); - - v3d_irq_disable(v3d); - - clk_disable_unprepare(v3d->clk); - - return 0; -} - -static int v3d_runtime_resume(struct device *dev) -{ - struct drm_device *drm = dev_get_drvdata(dev); - struct v3d_dev *v3d = to_v3d_dev(drm); - int ret; - - ret = clk_prepare_enable(v3d->clk); - if (ret != 0) - return ret; - - /* XXX: VPM base */ - - v3d_mmu_set_page_table(v3d); - v3d_irq_enable(v3d); - - return 0; -} -#endif - -static const struct dev_pm_ops v3d_v3d_pm_ops = { - SET_RUNTIME_PM_OPS(v3d_runtime_suspend, v3d_runtime_resume, NULL) -}; - static int v3d_get_param_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) {
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/v3d/v3d_drv.c:73:32: warning: ‘v3d_v3d_pm_ops’ defined but not used [-Wunused-const-variable=] Cc: Eric Anholt <eric@anholt.net> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/v3d/v3d_drv.c | 36 ----------------------------------- 1 file changed, 36 deletions(-)