From patchwork Mon Nov 9 21:18:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320988 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp3000508ejb; Mon, 9 Nov 2020 13:19:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqYRuGYnUA0AfsaYxN6Tqa63b80FYk0RSRVfdo8qTV88QO5y/ZFFRI9jYe2yqysmFoIOtg X-Received: by 2002:aa7:9190:0:b029:18b:6556:1e62 with SMTP id x16-20020aa791900000b029018b65561e62mr15871680pfa.62.1604956780190; Mon, 09 Nov 2020 13:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956780; cv=none; d=google.com; s=arc-20160816; b=Y9513FvA6Cftli2ah6g1Qw2eR3wvkhlU8pqBMtrVznyuj2JkhVPtBm9CE52dgEcZWW ovg+lZlwXVPivuI/oywZjVSdzMyxbBwplUuIFrPZXrwsb3dOCfzcifxaJKeb3nzE/6mY EnvyFZ9sXiD/mAmnOoo9+KzaCMQ4uXAfWgA28A+VTzqlBS99oQ/lRoBlqy9QnyAL04RP HVUW5jMRFigu+Fws5ZLAJsdM/NvIlgtGi+1f6+aiGZZO/jYKnuAmO5PvP0h3Ah6dDwjW i+6RtFvmENoZPDHDG0Y4jz6z+MLjpR0u+RNEWqBdXeULupgEC9v1Iz4DGxOcClhTV/Ai ucYQ== 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=dAa3hfookhzV5akOlyrIGlErVP8B0jtVE3nHRW89EcQ=; b=LLoAw7zB5ewK2o59TSikqDV+0DRqn+yuUNlhZ83WR0DsIfN261v6hpBuKuwLsqwdH8 mrgVDRrAZ/1UdVmd+mu6C6KgsdHjz+pbtgyIlz9SMVcDlueVU9/jZtHn90wADI4jdWNi u6vMMXkIZcfb5BK8cY1smon+q300oEfzXpPb7eyQxYdzMhKejr0tINiAtMQ+tQHmkGvp pQPrBLVF778CM9g2cEE1id3f0MJmst/jkVshGxfqi/lQQHdGqosjJKRZ3PLUliGtal7g bfTycuG8odZ0and6ZZDkngGBdUKsxBVD0c1+1ZpSJfiBKv48Kp+fdurcAWguO6bLFn8W uZug== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aCa++B8s; 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id h10si3050786plt.252.2020.11.09.13.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:39 -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=aCa++B8s; 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 55720895B6; Mon, 9 Nov 2020 21:19:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 92418895B9 for ; Mon, 9 Nov 2020 21:19:36 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id c9so935751wml.5 for ; Mon, 09 Nov 2020 13:19:36 -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=f19bG5OlKZrzXa9sIoz5zZmJ+HLtlGgA3VlLSxdphFA=; b=aCa++B8skb7N4286tYGRf0uVCE5RA7rp82ko+LOn4nj7tYdW1Try+em3OvGh7LqyHJ MRu9QWNM2UQmP4ba30mnVaQj4DEhUYiDtJAvbyg6Z4WqzCMSMMBCywL5BuHEKRLTQ3Nt 2X145Ci6pyLdMT7zFdh2R7fTC99dcrsXD0EYw9LuP3OsGdalYW3SAGUiCeNOmz/E9yEK mchlHxBojyQih21VMFDS9OpCNNLApP66gmN4r2PoS0bM6GwOpg6mRa2jMWrpl7BtEGXH FFXqxiP6DlTTZZGtyKGVzWqpe9Tq3bxgTloLVFtq3gA13n/n1cc5NsUa3HUiCib0YktV cJBA== 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=f19bG5OlKZrzXa9sIoz5zZmJ+HLtlGgA3VlLSxdphFA=; b=fsMloOsmPrmKF6+jOVlgAaSwDf2SGHIjeeHhBme6lFaZTmXsg8t7pC5DXzBZVNmVao gexalIsv3LIOgXQNAq8xmZskAJOROw6DuCKvnrrtXL/NZpAOhxr/0SdRqGNc2epY6opF ZFz89d3RC/jlctXGvD6ZmBfTxyruJpoa2FK8NUogkkJ7rLheGJdDqFFN0BllaNd2iDgD 8Q9tlqYlBkj1mAu/NZwjTfVuarZJHJfQ8uy7K3xcn0Wt64pFGvW5zQ3P1mWv9zVrRXtA GN7ndaRi6oMuY2P8ZT/pREPC6zbAC7nxdEZNGidu9evkf0yJFfrK7tMmKvZuNGzyB3Yr ARbA== X-Gm-Message-State: AOAM532tyAscOnASKdQgmyvgtSUDW/q95SLupWPkjTGj1NZ+xbUKJqkU Gpt28fsscUXz8nI9qclDYtE3mQ== X-Received: by 2002:a1c:2905:: with SMTP id p5mr1138832wmp.187.1604956775281; Mon, 09 Nov 2020 13:19:35 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 71sm15170630wrm.20.2020.11.09.13.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 14/20] drm/radeon: Move 'radeon_pm_acpi_event_handler' prototype into shared header Date: Mon, 9 Nov 2020 21:18:49 +0000 Message-Id: <20201109211855.3340030-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109211855.3340030-1-lee.jones@linaro.org> References: <20201109211855.3340030-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/rv770.c:1138:6: warning: no previous prototype for ‘rv770_set_clk_bypass_mode’ [-Wmissing-prototypes] 1138 | void rv770_set_clk_bypass_mode(struct radeon_device *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_acpi.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 32a2c894ee3ff..1cbbaff7cede2 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -291,6 +291,7 @@ void radeon_pm_fini(struct radeon_device *rdev); void radeon_pm_compute_clocks(struct radeon_device *rdev); void radeon_pm_suspend(struct radeon_device *rdev); void radeon_pm_resume(struct radeon_device *rdev); +void radeon_pm_acpi_event_handler(struct radeon_device *rdev); void radeon_combios_get_power_modes(struct radeon_device *rdev); void radeon_atombios_get_power_modes(struct radeon_device *rdev); int radeon_atom_get_clock_dividers(struct radeon_device *rdev, diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/drivers/gpu/drm/radeon/radeon_acpi.c index 6cf1645e7a1a8..0eb594b56af8c 100644 --- a/drivers/gpu/drm/radeon/radeon_acpi.c +++ b/drivers/gpu/drm/radeon/radeon_acpi.c @@ -45,8 +45,6 @@ static inline bool radeon_atpx_dgpu_req_power_for_displays(void) { return false; #define ACPI_AC_CLASS "ac_adapter" -extern void radeon_pm_acpi_event_handler(struct radeon_device *rdev); - struct atif_verify_interface { u16 size; /* structure size in bytes (includes size field) */ u16 version; /* version */